diff options
author | Marisa-Chan | 2014-11-12 15:34:55 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-11-12 15:34:55 +0600 |
commit | f658a5c8e6a92341efc7ec15ec0f875b1cc7eb93 (patch) | |
tree | 4c212a10de7da4b356834ed1c9e53d9ba7f96c7b | |
parent | fcbb3d0307d8423399a41cef8f8cbaec062018db (diff) | |
download | scummvm-rg350-f658a5c8e6a92341efc7ec15ec0f875b1cc7eb93.tar.gz scummvm-rg350-f658a5c8e6a92341efc7ec15ec0f875b1cc7eb93.tar.bz2 scummvm-rg350-f658a5c8e6a92341efc7ec15ec0f875b1cc7eb93.zip |
ZVISION: Implement methods for get state of menu items
-rw-r--r-- | engines/zvision/core/menu.h | 3 | ||||
-rw-r--r-- | engines/zvision/zvision.cpp | 6 | ||||
-rw-r--r-- | engines/zvision/zvision.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/engines/zvision/core/menu.h b/engines/zvision/core/menu.h index 7e6acf325c..c2ea822dd9 100644 --- a/engines/zvision/core/menu.h +++ b/engines/zvision/core/menu.h @@ -52,6 +52,9 @@ public: void setEnable(uint16 flags) { menu_bar_flag = flags; } + uint16 getEnable() { + return menu_bar_flag; + } protected: uint16 menu_bar_flag; ZVision *_engine; diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index b697405c63..c5d5fdc58b 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -459,6 +459,12 @@ void ZVision::menuBarEnable(uint16 menus) { _menu->setEnable(menus); } +uint16 ZVision::getMenuBarEnable() { + if (_menu) + return _menu->getEnable(); + return 0; +} + bool ZVision::ifQuit() { if (askQuestion(_stringManager->getTextLine(StringManager::ZVISION_STR_EXITPROMT))) { quitGame(); diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h index e1a94db618..8b9b67303e 100644 --- a/engines/zvision/zvision.h +++ b/engines/zvision/zvision.h @@ -186,6 +186,7 @@ public: void saveSettings(); void menuBarEnable(uint16 menus); + uint16 getMenuBarEnable(); bool ifQuit(); |