diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-10 21:02:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-11 00:06:30 +0300 |
commit | 845f010511c88acd81da36d0e38b8ef12119d3e6 (patch) | |
tree | c21fa9be4372cdec8aa3f86fc90b1d6e939d824a /src/gui/windowmanager.cpp | |
parent | 4a8621b8f1e3c714136e662157295edaf47c0983 (diff) | |
download | mv-845f010511c88acd81da36d0e38b8ef12119d3e6.tar.gz mv-845f010511c88acd81da36d0e38b8ef12119d3e6.tar.bz2 mv-845f010511c88acd81da36d0e38b8ef12119d3e6.tar.xz mv-845f010511c88acd81da36d0e38b8ef12119d3e6.zip |
Add command like parameter --validate for validating client data.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 23 |
1 files changed, 23 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 |