summaryrefslogtreecommitdiff
path: root/engine-ocean/Game/Systems/UI/ButtonAction/showwindowaction.h
diff options
context:
space:
mode:
Diffstat (limited to 'engine-ocean/Game/Systems/UI/ButtonAction/showwindowaction.h')
-rw-r--r--engine-ocean/Game/Systems/UI/ButtonAction/showwindowaction.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/engine-ocean/Game/Systems/UI/ButtonAction/showwindowaction.h b/engine-ocean/Game/Systems/UI/ButtonAction/showwindowaction.h
new file mode 100644
index 0000000..781f093
--- /dev/null
+++ b/engine-ocean/Game/Systems/UI/ButtonAction/showwindowaction.h
@@ -0,0 +1,21 @@
+#ifndef SHOWWINDOWACTION_H
+#define SHOWWINDOWACTION_H
+#include "Game/Systems/UI/uisystem.h"
+#include <map>
+#include "buttonaction.h"
+
+class ShowWindowAction : public ButtonAction
+{
+public:
+ ShowWindowAction(std::map<std::string, std::shared_ptr<UIScreen>>& screens,
+ std::set<std::string>& shownScreens,
+ const std::string screenName);
+ void activate() override;
+ void deactivate() override;
+private:
+ std::set<std::string>& m_shownScreens;
+ std::string m_screenName;
+ std::map<std::string, std::shared_ptr<UIScreen>>& m_screens;
+};
+
+#endif // SHOWWINDOWACTION_H