Load Game: fixed game list being empty with long filenames on small resolutions

For some reason, without horizontal_scrollbar_mode = "never", the game didn't utilize the
window scrollbar and instead simply failed to place the listbox content grid. This resolves that,
as well as reducing the the filename truncate size so names fit fine on 800x600 without said
window scrollbar. Also, it ensures a horizontal scrollbar won't appear in the leaders list.
This commit is contained in:
Charles Dang 2016-08-30 21:42:45 +11:00
parent 9608e92209
commit 14c44d0ea9
2 changed files with 4 additions and 1 deletions

View file

@ -158,6 +158,7 @@
[listbox]
id = "leader_list"
has_minimum = "false"
horizontal_scrollbar_mode = "never"
[list_definition]
@ -290,6 +291,8 @@
[listbox]
id = "savegame_list"
definition = "default"
horizontal_scrollbar_mode = "never"
[header]
[row]

View file

@ -137,7 +137,7 @@ void tgame_load::pre_show(twindow& window)
string_map item;
std::string name = game.name();
utils::ellipsis_truncate(name, 50);
utils::ellipsis_truncate(name, 40);
item["label"] = name;
data.emplace("filename", item);