the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3// Defines the fixed groups for UI (lower numbers ticked first, rendered last (ie on top))
4enum EUIGroup
5{
6 eUIGroup_Fullscreen,
7 eUIGroup_Player1,
8#ifndef __PSVITA__
9 eUIGroup_Player2,
10 eUIGroup_Player3,
11 eUIGroup_Player4,
12#endif
13
14 eUIGroup_COUNT,
15
16 eUIGroup_PAD, // Special case to determine the group from the pad (default)
17};
18
19// Defines the layers in a UI group (lower numbers ticked first, rendered last (ie on top))
20enum EUILayer
21{
22#ifndef _CONTENT_PACKAGE
23 eUILayer_Debug,
24#endif
25 eUILayer_Tooltips,
26 eUILayer_Error,
27 eUILayer_Alert,
28 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
29 eUILayer_Popup,
30 eUILayer_Scene,
31 //eUILayer_Chat,
32 eUILayer_HUD,
33
34 eUILayer_COUNT,
35};
36
37// Defines the scenes and components that can be added to a layer
38// If you add to the enums below, you need to add the scene name in the right place in CConsoleMinecraftApp::wchSceneA
39enum EUIScene
40{
41 eUIScene_PartnernetPassword = 0,
42 eUIScene_Intro,
43 eUIScene_SaveMessage,
44 eUIScene_MainMenu,
45 eUIScene_FullscreenProgress,
46 eUIScene_PauseMenu,
47 eUIScene_Crafting2x2Menu,
48 eUIScene_Crafting3x3Menu,
49 eUIScene_FurnaceMenu,
50 eUIScene_ContainerMenu,
51 eUIScene_LargeContainerMenu,// for splitscreen
52 eUIScene_InventoryMenu,
53 eUIScene_DispenserMenu,
54 eUIScene_DebugOptions,
55 eUIScene_DebugTips,
56 eUIScene_HelpAndOptionsMenu,
57 eUIScene_HowToPlay,
58 eUIScene_HowToPlayMenu,
59 eUIScene_ControlsMenu,
60 eUIScene_SettingsOptionsMenu,
61 eUIScene_SettingsAudioMenu,
62 eUIScene_SettingsControlMenu,
63 eUIScene_SettingsGraphicsMenu,
64 eUIScene_SettingsUIMenu,
65 eUIScene_SettingsMenu,
66 eUIScene_LeaderboardsMenu,
67 eUIScene_Credits,
68 eUIScene_DeathMenu,
69 eUIComponent_TutorialPopup,
70 eUIScene_CreateWorldMenu,
71 eUIScene_LoadOrJoinMenu,
72 eUIScene_JoinMenu,
73 eUIScene_SignEntryMenu,
74 eUIScene_InGameInfoMenu,
75 eUIScene_ConnectingProgress,
76 eUIScene_DLCOffersMenu,
77 eUIScene_SocialPost,
78 eUIScene_TrialExitUpsell,
79 eUIScene_LoadMenu,
80 eUIComponent_Chat,
81 eUIScene_ReinstallMenu,
82 eUIScene_SkinSelectMenu,
83 eUIScene_TextEntry,
84 eUIScene_InGameHostOptionsMenu,
85 eUIScene_InGamePlayerOptionsMenu,
86 eUIScene_CreativeMenu,
87 eUIScene_LaunchMoreOptionsMenu,
88 eUIScene_DLCMainMenu,
89 eUIScene_NewUpdateMessage,
90 eUIScene_EnchantingMenu,
91 eUIScene_BrewingStandMenu,
92 eUIScene_EndPoem,
93 eUIScene_HUD,
94 eUIScene_TradingMenu,
95 eUIScene_AnvilMenu,
96 eUIScene_TeleportMenu,
97 eUIScene_HopperMenu,
98 eUIScene_BeaconMenu,
99 eUIScene_HorseMenu,
100 eUIScene_FireworksMenu,
101
102#ifdef _XBOX
103// eUIScene_TransferToXboxOne,
104#endif
105
106 // ****************************************
107 // ****************************************
108 // ********** IMPORTANT ******************
109 // ****************************************
110 // ****************************************
111 // When adding new scenes here, you must also update the switches in CConsoleMinecraftApp::NavigateToScene
112 // There are quite a few so you need to check them all
113 // Also update UILayer::updateFocusState
114
115#ifndef _XBOX
116 // 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
117 eUIComponent_Panorama,
118 eUIComponent_Logo,
119 eUIComponent_DebugUIConsole,
120 eUIComponent_DebugUIMarketingGuide,
121 eUIComponent_Tooltips,
122 eUIComponent_PressStartToPlay,
123 eUIComponent_MenuBackground,
124 eUIScene_Keyboard,
125 eUIScene_QuadrantSignin,
126 eUIScene_MessageBox,
127 eUIScene_Timer,
128 eUIScene_EULA,
129 eUIScene_InGameSaveManagementMenu,
130 eUIScene_LanguageSelector,
131#endif // ndef _XBOX
132
133#ifdef _DEBUG_MENUS_ENABLED
134 eUIScene_DebugOverlay,
135 eUIScene_DebugItemEditor,
136#endif
137#ifndef _CONTENT_PACKAGE
138 eUIScene_DebugCreateSchematic,
139 eUIScene_DebugSetCamera,
140#endif
141
142 eUIScene_COUNT,
143};
144
145// Used by the fullscreen progress scene to decide what to do when a thread finishes
146enum ProgressionCompletionType
147{
148 e_ProgressCompletion_NoAction,
149 e_ProgressCompletion_NavigateBack,
150 e_ProgressCompletion_CloseUIScenes,
151 e_ProgressCompletion_CloseAllPlayersUIScenes,
152 e_ProgressCompletion_NavigateToHomeMenu,
153 e_ProgressCompletion_AutosaveNavigateBack,
154 e_ProgressCompletion_NavigateBackToScene,
155};
156
157enum EToolTipButton
158{
159 eToolTipButtonA = 0,
160 eToolTipButtonB,
161 eToolTipButtonX,
162 eToolTipButtonY,
163 eToolTipButtonLT,
164 eToolTipButtonRT,
165 eToolTipButtonLB,
166 eToolTipButtonRB,
167 eToolTipButtonLS,
168 eToolTipButtonRS,
169 eToolTipButtonBack,
170 eToolTipNumButtons
171};
172
173enum EToolTipItem
174{
175 eToolTipNone = -1,
176 eToolTipPickupPlace_OLD = 0, // To support existing menus.
177 eToolTipExit,
178 eToolTipPickUpGeneric,
179 eToolTipPickUpAll,
180 eToolTipPickUpHalf,
181 eToolTipPlaceGeneric,
182 eToolTipPlaceOne,
183 eToolTipPlaceAll,
184 eToolTipDropGeneric,
185 eToolTipDropOne,
186 eToolTipDropAll,
187 eToolTipSwap,
188 eToolTipQuickMove,
189 eToolTipQuickMoveIngredient,
190 eToolTipQuickMoveFuel,
191 eToolTipWhatIsThis,
192 eToolTipEquip,
193 eToolTipClearQuickSelect,
194 eToolTipQuickMoveTool,
195 eToolTipQuickMoveArmor,
196 eToolTipQuickMoveWeapon,
197 eToolTipDye,
198 eToolTipRepair,
199 eNumToolTips
200};
201
202enum EHowToPlayPage
203{
204 eHowToPlay_WhatsNew = 0,
205 eHowToPlay_Basics,
206 eHowToPlay_Multiplayer,
207 eHowToPlay_HUD,
208 eHowToPlay_Creative,
209 eHowToPlay_Inventory,
210 eHowToPlay_Chest,
211 eHowToPlay_LargeChest,
212 eHowToPlay_Enderchest,
213 eHowToPlay_InventoryCrafting,
214 eHowToPlay_CraftTable,
215 eHowToPlay_Furnace,
216 eHowToPlay_Dispenser,
217
218 eHowToPlay_Brewing,
219 eHowToPlay_Enchantment,
220 eHowToPlay_Anvil,
221 eHowToPlay_FarmingAnimals,
222 eHowToPlay_Breeding,
223 eHowToPlay_Trading,
224
225 eHowToPlay_Horses,
226 eHowToPlay_Beacons,
227 eHowToPlay_Fireworks,
228 eHowToPlay_Hoppers,
229 eHowToPlay_Droppers,
230
231 eHowToPlay_NetherPortal,
232 eHowToPlay_TheEnd,
233#ifdef _XBOX
234 eHowToPlay_SocialMedia,
235 eHowToPlay_BanList,
236#endif
237 eHowToPlay_HostOptions,
238 eHowToPlay_NumPages
239};
240
241// Credits
242enum ECreditTextTypes
243{
244 eExtraLargeText = 0,
245 eLargeText,
246 eMediumText,
247 eSmallText,
248 eNumTextTypes
249};
250
251enum EUIMessage
252{
253 eUIMessage_InventoryUpdated,
254
255 eUIMessage_COUNT,
256};
257
258#define NO_TRANSLATED_STRING ( -1 ) // String ID used to indicate that we are using non localised string.
259
260#define CONNECTING_PROGRESS_CHECK_TIME 500