aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIScene_SettingsUIMenu.h
blob: 8968bbe796ef5008562e9d2010fe61d583e93dc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once

#include "UIScene.h"

class UIScene_SettingsUIMenu : public UIScene
{
private:
	enum EControls
	{
		eControl_DisplayHUD,
		eControl_DisplayHand,
		eControl_DisplayDeathMessages,
		eControl_DisplayAnimatedCharacter,
		eControl_Splitscreen,
		eControl_ShowSplitscreenGamertags,
		eControl_UISize,
		eControl_UISizeSplitscreen
	};

	UIControl_CheckBox m_checkboxDisplayHUD, m_checkboxDisplayHand, m_checkboxDisplayDeathMessages, m_checkboxDisplayAnimatedCharacter, m_checkboxSplitscreen, m_checkboxShowSplitscreenGamertags; // Checkboxes
	UIControl_Slider m_sliderUISize, m_sliderUISizeSplitscreen; // Sliders
	UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
		UI_MAP_ELEMENT( m_checkboxDisplayHUD, "DisplayHUD")
		UI_MAP_ELEMENT( m_checkboxDisplayHand, "DisplayHand")
		UI_MAP_ELEMENT( m_checkboxDisplayDeathMessages, "DisplayDeathMessages")
		UI_MAP_ELEMENT( m_checkboxDisplayAnimatedCharacter, "DisplayAnimatedCharacter")
		UI_MAP_ELEMENT( m_checkboxSplitscreen, "Splitscreen")
		UI_MAP_ELEMENT( m_checkboxShowSplitscreenGamertags, "ShowSplitscreenGamertags")

		UI_MAP_ELEMENT( m_sliderUISize, "UISize")
		UI_MAP_ELEMENT( m_sliderUISizeSplitscreen, "UISizeSplitscreen")
	UI_END_MAP_ELEMENTS_AND_NAMES()

	bool m_bNotInGame;
public:
	UIScene_SettingsUIMenu(int iPad, void *initData, UILayer *parentLayer);
	virtual ~UIScene_SettingsUIMenu();

	virtual EUIScene getSceneType() { return eUIScene_SettingsUIMenu;}
	
	virtual void updateTooltips();
	virtual void updateComponents();

protected:
	// TODO: This should be pure virtual in this class
	virtual wstring getMoviePath();

public:
	// INPUT
	virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);

	virtual void handleSliderMove(F64 sliderId, F64 currentValue);
};