the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 44 lines 1.0 kB view raw
1#pragma once 2 3#include "UIScene.h" 4 5class UIScene_DeathMenu : public UIScene 6{ 7private: 8 enum EControls 9 { 10 eControl_Respawn, 11 eControl_ExitGame 12 }; 13 14 bool m_bIgnoreInput; 15 16 UIControl_Button m_buttonRespawn, m_buttonExitGame; 17 UIControl_Label m_labelTitle; 18 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene) 19 UI_MAP_ELEMENT( m_buttonRespawn, "Respawn") 20 UI_MAP_ELEMENT( m_buttonExitGame, "ExitGame") 21 UI_MAP_ELEMENT( m_labelTitle, "Title") 22 UI_END_MAP_ELEMENTS_AND_NAMES() 23public: 24 UIScene_DeathMenu(int iPad, void *initData, UILayer *parentLayer); 25 virtual ~UIScene_DeathMenu(); 26 27 virtual EUIScene getSceneType() { return eUIScene_DeathMenu;} 28 virtual void updateTooltips(); 29 30protected: 31 // TODO: This should be pure virtual in this class 32 virtual wstring getMoviePath(); 33 34public: 35 // INPUT 36 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled); 37 38protected: 39 void handlePress(F64 controlId, F64 childId); 40 41#ifdef _DURANGO 42 virtual long long getDefaultGtcButtons() { return 0; } 43#endif 44};