diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-02 16:13:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-03 21:50:05 +0300 |
commit | f651273ebf2a8b11aa01ed1434ecb613177ced6a (patch) | |
tree | c51d2bed1476270e27ad95c5a46e15af32eaccdd /src/gui/popupmanager.cpp | |
parent | 30846b7f68f1ad05a0719ae37f75fd2901a6545a (diff) | |
download | ManaVerse-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.gz ManaVerse-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.bz2 ManaVerse-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.xz ManaVerse-f651273ebf2a8b11aa01ed1434ecb613177ced6a.zip |
Add gui mode for dyecmd. Now only basic code added.
Diffstat (limited to 'src/gui/popupmanager.cpp')
-rw-r--r-- | src/gui/popupmanager.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui/popupmanager.cpp b/src/gui/popupmanager.cpp index 3749a6502..cca9cffd4 100644 --- a/src/gui/popupmanager.cpp +++ b/src/gui/popupmanager.cpp @@ -42,14 +42,18 @@ PopupManager::~PopupManager() void PopupManager::closePopupMenu() { +#ifndef DYECMD if (popupMenu) popupMenu->handleLink("cancel", nullptr); +#endif } void PopupManager::hideBeingPopup() { +#ifndef DYECMD if (beingPopup) beingPopup->setVisible(Visible_false); +#endif } void PopupManager::hideTextPopup() @@ -60,19 +64,27 @@ void PopupManager::hideTextPopup() void PopupManager::hidePopupMenu() { +#ifndef DYECMD if (popupMenu) popupMenu->setVisible(Visible_false); +#endif } bool PopupManager::isPopupMenuVisible() { +#ifndef DYECMD return popupMenu ? popupMenu->isPopupVisible() : false; +#else + return false; +#endif } void PopupManager::clearPopup() { +#ifndef DYECMD if (popupMenu) popupMenu->clear(); +#endif } bool PopupManager::isTextPopupVisible() @@ -82,5 +94,9 @@ bool PopupManager::isTextPopupVisible() bool PopupManager::isBeingPopupVisible() { +#ifndef DYECMD return beingPopup ? beingPopup->isPopupVisible() : false; +#else + return false; +#endif } |