Add a textbox filter to the add-on manager.
But currently give some false-positive because the filter apply on icons too. (will be fixed but already useful and not really a problem for general use)
This commit is contained in:
parent
a8b5ae78b8
commit
7906c126cc
1 changed files with 5 additions and 0 deletions
|
@ -1419,6 +1419,11 @@ void game_controller::download_addons(std::string host)
|
|||
gui::menu *addon_menu = new gui::menu(disp().video(), options, false, -1,
|
||||
gui::dialog::max_menu_width, &sorter, &addon_style, false);
|
||||
addon_dialog.set_menu(addon_menu);
|
||||
|
||||
gui::filter_textbox* filter = new gui::filter_textbox(disp().video(),
|
||||
_("Filter: "), options, addon_dialog, 300);
|
||||
addon_dialog.set_textbox(filter);
|
||||
|
||||
const int index = addon_dialog.show();
|
||||
if(index < 0) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue