the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 73 lines 1.6 kB view raw
1#pragma once 2 3#include "UIScene.h" 4 5class UIScene_HowToPlayMenu : public UIScene 6{ 7private: 8 enum EControls 9 { 10 eControl_Buttons, 11 }; 12 13 enum eHTPButton 14 { 15 eHTPButton_WhatsNew = 0, 16 eHTPButton_Basics, 17 eHTPButton_Multiplayer, 18 eHTPButton_Hud, 19 eHTPButton_Creative, 20 eHTPButton_Inventory, 21 eHTPButton_Chest, 22 eHTPButton_Crafting, 23 eHTPButton_Furnace, 24 eHTPButton_Dispenser, 25 eHTPButton_Brewing, 26 eHTPButton_Enchantment, 27 eHTPButton_Anvil, 28 eHTPButton_FarmingAnimals, 29 eHTPButton_Breeding, 30 eHTPButton_Trading, 31 eHTPButton_Horses, 32 eHTPButton_Beacons, 33 eHTPButton_Fireworks, 34 eHTPButton_Hoppers, 35 eHTPButton_Droppers, 36 eHTPButton_NetherPortal, 37 eHTPButton_TheEnd, 38#ifdef _XBOX 39 eHTPButton_SocialMedia, 40 eHTPButton_BanningLevels, 41#endif 42 eHTPButton_HostOptions, 43 eHTPButton_Max, 44 }; 45 46 static unsigned int m_uiHTPButtonNameA[eHTPButton_Max]; 47 static unsigned int m_uiHTPSceneA[eHTPButton_Max]; 48 49 UIControl_ButtonList m_buttonListHowTo; 50 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene) 51 UI_MAP_ELEMENT( m_buttonListHowTo, "HowToList") 52 UI_END_MAP_ELEMENTS_AND_NAMES() 53 54public: 55 UIScene_HowToPlayMenu(int iPad, void *initData, UILayer *parentLayer); 56 57 virtual EUIScene getSceneType() { return eUIScene_HowToPlayMenu;} 58 59 virtual void updateTooltips(); 60 virtual void updateComponents(); 61 62 virtual void handleReload(); 63protected: 64 // TODO: This should be pure virtual in this class 65 virtual wstring getMoviePath(); 66 67public: 68 // INPUT 69 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled); 70 71protected: 72 void handlePress(F64 controlId, F64 childId); 73};