diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windowmanager.cpp | 23 | ||||
-rw-r--r-- | src/gui/windowmanager.h | 4 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index 4c414899f..62d2996c7 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -50,8 +50,11 @@ #include "gui/windows/chatwindow.h" #include "gui/windows/didyouknowwindow.h" +#include "gui/windows/equipmentwindow.h" #include "gui/windows/helpwindow.h" #include "gui/windows/setupwindow.h" +#include "gui/windows/skilldialog.h" +#include "gui/windows/questswindow.h" #include "gui/widgets/tabs/chat/chattab.h" @@ -146,6 +149,26 @@ void WindowManager::createWindows() CREATEWIDGETV0(textPopup, TextPopup); } +void WindowManager::createValidateWindows() +{ +#ifndef DYECMD + CREATEWIDGETV0(skillDialog, SkillDialog); + skillDialog->loadSkills(); + CREATEWIDGETV(beingEquipmentWindow, EquipmentWindow, + nullptr, nullptr, true); + CREATEWIDGETV0(questsWindow, QuestsWindow); +#endif // DYECMD +} + +void WindowManager::deleteValidateWindows() +{ +#ifndef DYECMD + delete2(skillDialog); + delete2(beingEquipmentWindow); + delete2(questsWindow); +#endif // DYECMD +} + void WindowManager::deleteWindows() { #ifndef DYECMD diff --git a/src/gui/windowmanager.h b/src/gui/windowmanager.h index 68cec0d83..8662f39a1 100644 --- a/src/gui/windowmanager.h +++ b/src/gui/windowmanager.h @@ -78,6 +78,10 @@ namespace WindowManager void deleteIcon(); void updateTitle(); + + void createValidateWindows(); + + void deleteValidateWindows(); } // namespace WindowManager #endif // GUI_WINDOWMANAGER_H |