mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
dbb93d6c08
1. Top-level menu names are now properly handled. 2. Changing "Any or All terms" option now immediately updates the results. 3. Reformatted menu.zs to have tabs instead of spaces.
33 lines
758 B
Text
33 lines
758 B
Text
//=============================================================================
|
|
//
|
|
// os_AnyOrAllOption class represents an Option Item for Option Search menu.
|
|
// Changing the value of this option causes the menu to refresh the search
|
|
// results.
|
|
//
|
|
//=============================================================================
|
|
|
|
class os_AnyOrAllOption : OptionMenuItemOption
|
|
{
|
|
os_AnyOrAllOption Init(os_Menu menu)
|
|
{
|
|
Super.Init("", "os_isanyof", "os_isanyof_values");
|
|
|
|
mMenu = menu;
|
|
|
|
return self;
|
|
}
|
|
|
|
override bool MenuEvent(int mkey, bool fromcontroller)
|
|
{
|
|
bool result = Super.MenuEvent(mkey, fromcontroller);
|
|
|
|
if (mKey == Menu.MKEY_Left || mKey == Menu.MKEY_Right)
|
|
{
|
|
mMenu.search();
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
private os_Menu mMenu;
|
|
}
|