diff options
Diffstat (limited to 'engines/wage/menu.cpp')
-rw-r--r-- | engines/wage/menu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp index b859867e9a..dfb042dd15 100644 --- a/engines/wage/menu.cpp +++ b/engines/wage/menu.cpp @@ -560,4 +560,10 @@ void Menu::enableCommand(int menunum, int action, bool state) { _items[menunum]->subitems[i]->enabled = state; } +void Menu::disableAllMenus() { + for (uint i = 1; i < _items.size(); i++) // Leave About menu on + for (uint j = 0; j < _items[i]->subitems.size(); j++) + _items[i]->subitems[j]->enabled = false; +} + } // End of namespace Wage |