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/windowmanager.cpp | |
parent | 30846b7f68f1ad05a0719ae37f75fd2901a6545a (diff) | |
download | manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.gz manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.bz2 manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.xz manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.zip |
Add gui mode for dyecmd. Now only basic code added.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index d61ffea6e..01cc2c670 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -32,16 +32,19 @@ #include "gui/gui.h" #include "gui/userpalette.h" +#include "gui/popups/textpopup.h" + +#ifndef DYECMD #include "gui/popups/beingpopup.h" #include "gui/popups/itempopup.h" #include "gui/popups/popupmenu.h" #include "gui/popups/spellpopup.h" #include "gui/popups/textboxpopup.h" -#include "gui/popups/textpopup.h" #include "gui/windows/didyouknowwindow.h" #include "gui/windows/helpwindow.h" #include "gui/windows/setupwindow.h" +#endif #include "gui/widgets/createwidget.h" #include "gui/widgets/desktop.h" @@ -95,21 +98,23 @@ void WindowManager::init() void WindowManager::createWindows() { userPalette = new UserPalette; +#ifndef DYECMD CREATEWIDGETV0(setupWindow, SetupWindow); CREATEWIDGETV0(helpWindow, HelpWindow); CREATEWIDGETV0(didYouKnowWindow, DidYouKnowWindow); CREATEWIDGETV0(popupMenu, PopupMenu); CREATEWIDGETV0(beingPopup, BeingPopup); - CREATEWIDGETV0(textPopup, TextPopup); CREATEWIDGETV0(textBoxPopup, TextBoxPopup); CREATEWIDGETV0(itemPopup, ItemPopup); CREATEWIDGETV0(spellPopup, SpellPopup); +#endif + CREATEWIDGETV0(textPopup, TextPopup); } void WindowManager::deleteWindows() { +#ifndef DYECMD delete2(textBoxPopup); - delete2(textPopup); delete2(beingPopup); delete2(itemPopup); delete2(spellPopup); @@ -120,6 +125,8 @@ void WindowManager::deleteWindows() delete2(userPalette); delete2(spellManager) delete2(spellShortcut) +#endif + delete2(textPopup); } void WindowManager::initTitle() @@ -196,9 +203,11 @@ void WindowManager::resizeVideo(int actualWidth, client->moveButtons(width); +#ifndef DYECMD Game *const game = Game::instance(); if (game) game->videoResized(width, height); +#endif if (gui) gui->draw(); |