Used minimum_value_label for player number filter slider

This commit is contained in:
Charles Dang 2016-08-23 01:08:07 +11:00
parent af340e6ae3
commit 0a94e68484
2 changed files with 2 additions and 5 deletions

View file

@ -1209,6 +1209,8 @@
minimum_value = 1
maximum_value = 9
step_size = 1
minimum_value_label = _ "Any"
[/slider]
[/column]

View file

@ -157,11 +157,6 @@ void tmp_create_game::pre_show(twindow& window)
// Note this cannot be in the keyboard chain or it will capture focus from other text boxes
window.keyboard_capture(&filter);
// For the num players filter, we want the first option to say 'any'. Since we're using the built-in slider
// label here, we need to use set_value_labels and sadly need to specify a label for every value :|
const std::vector<t_string> num_player_filter_display_values = {"any", "2", "3", "4", "5", "6", "7", "8", "9"};
find_widget<tslider>(&window, "num_players", false).set_value_labels(num_player_filter_display_values);
//
// Set up game types combobox
//