aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIScene_HelpAndOptionsMenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/Common/UI/UIScene_HelpAndOptionsMenu.h')
-rw-r--r--Minecraft.Client/Common/UI/UIScene_HelpAndOptionsMenu.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/UIScene_HelpAndOptionsMenu.h b/Minecraft.Client/Common/UI/UIScene_HelpAndOptionsMenu.h
new file mode 100644
index 00000000..203011d3
--- /dev/null
+++ b/Minecraft.Client/Common/UI/UIScene_HelpAndOptionsMenu.h
@@ -0,0 +1,50 @@
+#pragma once
+
+#include "UIScene.h"
+
+#define BUTTON_HAO_CHANGESKIN 0
+#define BUTTON_HAO_HOWTOPLAY 1
+#define BUTTON_HAO_CONTROLS 2
+#define BUTTON_HAO_SETTINGS 3
+#define BUTTON_HAO_CREDITS 4
+#define BUTTON_HAO_REINSTALL 5
+#define BUTTON_HAO_DEBUG 6
+#define BUTTONS_HAO_MAX BUTTON_HAO_DEBUG + 1
+
+class UIScene_HelpAndOptionsMenu : public UIScene
+{
+private:
+ UIControl_Button m_buttons[BUTTONS_HAO_MAX];
+ UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
+ UI_MAP_ELEMENT( m_buttons[BUTTON_HAO_CHANGESKIN], "Button1")
+ UI_MAP_ELEMENT( m_buttons[BUTTON_HAO_HOWTOPLAY], "Button2")
+ UI_MAP_ELEMENT( m_buttons[BUTTON_HAO_CONTROLS], "Button3")
+ UI_MAP_ELEMENT( m_buttons[BUTTON_HAO_SETTINGS], "Button4")
+ UI_MAP_ELEMENT( m_buttons[BUTTON_HAO_CREDITS], "Button5")
+ UI_MAP_ELEMENT( m_buttons[BUTTON_HAO_REINSTALL], "Button6")
+ UI_MAP_ELEMENT( m_buttons[BUTTON_HAO_DEBUG], "Button7")
+ UI_END_MAP_ELEMENTS_AND_NAMES()
+
+ bool m_bNotInGame;
+public:
+ UIScene_HelpAndOptionsMenu(int iPad, void *initData, UILayer *parentLayer);
+ virtual ~UIScene_HelpAndOptionsMenu();
+
+ virtual EUIScene getSceneType() { return eUIScene_HelpAndOptionsMenu;}
+
+ virtual void updateTooltips();
+ virtual void updateComponents();
+
+protected:
+ // TODO: This should be pure virtual in this class
+ virtual wstring getMoviePath();
+
+public:
+ virtual void handleReload();
+
+ // INPUT
+ virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
+
+protected:
+ void handlePress(F64 controlId, F64 childId);
+}; \ No newline at end of file