aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIEnums.h
blob: c68b6740427d12354f946ea7347d0f5fcdd2c691 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
#pragma once

// Defines the fixed groups for UI (lower numbers ticked first, rendered last (ie on top))
enum EUIGroup
{
	eUIGroup_Fullscreen,
	eUIGroup_Player1,
#ifndef __PSVITA__
	eUIGroup_Player2,
	eUIGroup_Player3,
	eUIGroup_Player4,
#endif

	eUIGroup_COUNT,

	eUIGroup_PAD, // Special case to determine the group from the pad (default)
};

// Defines the layers in a UI group (lower numbers ticked first, rendered last (ie on top))
enum EUILayer
{
#ifndef _CONTENT_PACKAGE
	eUILayer_Debug,
#endif
	eUILayer_Tooltips,
	eUILayer_Error,
	eUILayer_Alert,
	eUILayer_Fullscreen, // Note: Fullscreen in this context doesn't necessarily mean fill the whole screen, but fill the whole viewport for this group. Enables processes that don't interefere with normal scene stack
	eUILayer_Popup,
	eUILayer_Scene,
	//eUILayer_Chat,
	eUILayer_HUD,

	eUILayer_COUNT,
};

// Defines the scenes and components that can be added to a layer
// If you add to the enums below, you need to add the scene name in the right place in CConsoleMinecraftApp::wchSceneA
enum EUIScene
{
	eUIScene_PartnernetPassword = 0,
	eUIScene_Intro,
	eUIScene_SaveMessage,
	eUIScene_MainMenu,
	eUIScene_FullscreenProgress,
	eUIScene_PauseMenu,
	eUIScene_Crafting2x2Menu,
	eUIScene_Crafting3x3Menu,
	eUIScene_FurnaceMenu,
	eUIScene_ContainerMenu,
	eUIScene_LargeContainerMenu,// for splitscreen
	eUIScene_InventoryMenu,
	eUIScene_DispenserMenu,
	eUIScene_DebugOptions,
	eUIScene_DebugTips,
	eUIScene_HelpAndOptionsMenu,
	eUIScene_HowToPlay,			
	eUIScene_HowToPlayMenu,
	eUIScene_ControlsMenu,
	eUIScene_SettingsOptionsMenu,
	eUIScene_SettingsAudioMenu,
	eUIScene_SettingsControlMenu,
	eUIScene_SettingsGraphicsMenu,
	eUIScene_SettingsUIMenu,
	eUIScene_SettingsMenu,		
	eUIScene_LeaderboardsMenu,
	eUIScene_Credits,
	eUIScene_DeathMenu,
	eUIComponent_TutorialPopup,
	eUIScene_CreateWorldMenu,
	eUIScene_LoadOrJoinMenu,
	eUIScene_JoinMenu,
	eUIScene_SignEntryMenu,
	eUIScene_InGameInfoMenu,
	eUIScene_ConnectingProgress,
	eUIScene_DLCOffersMenu,
	eUIScene_SocialPost,
	eUIScene_TrialExitUpsell,
	eUIScene_LoadMenu,
	eUIComponent_Chat,
	eUIScene_ReinstallMenu,
	eUIScene_SkinSelectMenu,
	eUIScene_TextEntry,
	eUIScene_InGameHostOptionsMenu,
	eUIScene_InGamePlayerOptionsMenu,
	eUIScene_CreativeMenu,
	eUIScene_LaunchMoreOptionsMenu,
	eUIScene_DLCMainMenu,
	eUIScene_NewUpdateMessage,
	eUIScene_EnchantingMenu,
	eUIScene_BrewingStandMenu,
	eUIScene_EndPoem,
	eUIScene_HUD,
	eUIScene_TradingMenu,
	eUIScene_AnvilMenu,
	eUIScene_TeleportMenu,

#ifdef _XBOX
//	eUIScene_TransferToXboxOne,
#endif

	// When adding new scenes here, you must also update the switches in CConsoleMinecraftApp::NavigateToScene
	// There are quite a few so you need to check them all

#ifndef _XBOX
	// Anything non-xbox should be added here. The ordering of scenes above is required for sentient reporting on xbox 360 to continue to be accurate
	eUIComponent_Panorama,
	eUIComponent_Logo,
	eUIComponent_DebugUIConsole,
	eUIComponent_DebugUIMarketingGuide,
	eUIComponent_Tooltips,
	eUIComponent_PressStartToPlay,
	eUIComponent_MenuBackground,
	eUIScene_Keyboard,
	eUIScene_QuadrantSignin,
	eUIScene_MessageBox,
	eUIScene_Timer,
	eUIScene_EULA,
	eUIScene_InGameSaveManagementMenu,
#endif // ndef _XBOX

#ifdef _DEBUG_MENUS_ENABLED
	eUIScene_DebugOverlay,
	eUIScene_DebugItemEditor,
#endif
#ifndef _CONTENT_PACKAGE
	eUIScene_DebugCreateSchematic,
	eUIScene_DebugSetCamera,
#endif

	eUIScene_COUNT,
};

// Used by the fullscreen progress scene to decide what to do when a thread finishes
enum ProgressionCompletionType
{
	e_ProgressCompletion_NoAction,
	e_ProgressCompletion_NavigateBack,
	e_ProgressCompletion_CloseUIScenes,
	e_ProgressCompletion_CloseAllPlayersUIScenes,
	e_ProgressCompletion_NavigateToHomeMenu,
	e_ProgressCompletion_AutosaveNavigateBack,
	e_ProgressCompletion_NavigateBackToScene,
};

enum EToolTipButton
{
	eToolTipButtonA = 0,
	eToolTipButtonB,
	eToolTipButtonX,
	eToolTipButtonY,
	eToolTipButtonLT,
	eToolTipButtonRT,
	eToolTipButtonLB,
	eToolTipButtonRB,
	eToolTipButtonLS,
	eToolTipNumButtons
};

enum EToolTipItem
{
	eToolTipNone = -1,
	eToolTipPickupPlace_OLD = 0,	// To support existing menus.
	eToolTipExit,
	eToolTipPickUpGeneric,
	eToolTipPickUpAll,
	eToolTipPickUpHalf,
	eToolTipPlaceGeneric,
	eToolTipPlaceOne,
	eToolTipPlaceAll,
	eToolTipDropGeneric,
	eToolTipDropOne,
	eToolTipDropAll,
	eToolTipSwap,
	eToolTipQuickMove,
	eToolTipQuickMoveIngredient,
	eToolTipQuickMoveFuel,
	eToolTipWhatIsThis,
	eToolTipEquip,
	eToolTipClearQuickSelect,
	eToolTipQuickMoveTool,
	eToolTipQuickMoveArmor,
	eToolTipQuickMoveWeapon,
	eToolTipDye,
	eToolTipRepair,
	eNumToolTips
};

enum EHowToPlayPage
{
	eHowToPlay_WhatsNew = 0,
	eHowToPlay_Basics,
	eHowToPlay_Multiplayer,
	eHowToPlay_HUD,
	eHowToPlay_Creative,
	eHowToPlay_Inventory,
	eHowToPlay_Chest,
	eHowToPlay_LargeChest,
	eHowToPlay_Enderchest,
	eHowToPlay_InventoryCrafting,
	eHowToPlay_CraftTable,
	eHowToPlay_Furnace,
	eHowToPlay_Dispenser,

	eHowToPlay_Brewing,
	eHowToPlay_Enchantment,
	eHowToPlay_Anvil,
	eHowToPlay_FarmingAnimals,
	eHowToPlay_Breeding,
	eHowToPlay_Trading,

	eHowToPlay_NetherPortal,
	eHowToPlay_TheEnd,
#ifdef _XBOX
	eHowToPlay_SocialMedia,
	eHowToPlay_BanList,
#endif
	eHowToPlay_HostOptions,
	eHowToPlay_NumPages
};

// Credits
enum ECreditTextTypes
{
	eExtraLargeText = 0,
	eLargeText,
	eMediumText,
	eSmallText,
	eNumTextTypes
};

#define NO_TRANSLATED_STRING	( -1 )			// String ID used to indicate that we are using non localised string.

#define CONNECTING_PROGRESS_CHECK_TIME 500