launcher: search text tweak

This commit is contained in:
milek7
2019-09-22 21:01:14 +02:00
parent 8dd71f1fe6
commit 7c444396ed

View File

@@ -167,6 +167,10 @@ std::shared_ptr<ui::skin_meta> ui::vehicles_bank::parse_meta(const std::string &
meta->texture_author = win1250_to_utf8(meta->texture_author);
meta->photo_author = win1250_to_utf8(meta->photo_author);
meta->search_lowered +=
ToLower("name:" + meta->name + ",id:" + meta->short_id + ",depot:" + meta->location +
",revdate:" + meta->rev_date + ",revcompany:" + meta->rev_company + ",texture:" + meta->texture_author + ",photo:" + meta->photo_author);
std::replace(std::begin(meta->location), std::end(meta->location), '_', ' ');
std::replace(std::begin(meta->rev_company), std::end(meta->rev_company), '_', ' ');
std::replace(std::begin(meta->texture_author), std::end(meta->texture_author), '_', ' ');
@@ -182,10 +186,6 @@ std::shared_ptr<ui::skin_meta> ui::vehicles_bank::parse_meta(const std::string &
stream >> meta->rev_year;
}
meta->search_lowered +=
ToLower(meta->name + meta->short_id + meta->location +
meta->rev_date + meta->rev_company + meta->texture_author + meta->photo_author);
return meta;
}