the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 58 lines 1.4 kB view raw
1#pragma once 2 3#include "UIScene.h" 4 5class SignTileEntity; 6 7class UIScene_SignEntryMenu : public UIScene 8{ 9private: 10 enum EControls 11 { 12 // Lines should be 0-3 13 eControl_Line1, 14 eControl_Line2, 15 eControl_Line3, 16 eControl_Line4, 17 eControl_Confirm 18 }; 19 20 shared_ptr<SignTileEntity> m_sign; 21 int m_iEditingLine; 22 bool m_bConfirmed; 23 bool m_bIgnoreInput; 24 25 UIControl_Button m_buttonConfirm; 26 UIControl_Label m_labelMessage; 27 UIControl_TextInput m_textInputLines[4]; 28 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene) 29 UI_MAP_ELEMENT( m_buttonConfirm, "Confirm") 30 UI_MAP_ELEMENT( m_labelMessage, "Message") 31 32 UI_MAP_ELEMENT( m_textInputLines[0], "Line1") 33 UI_MAP_ELEMENT( m_textInputLines[1], "Line2") 34 UI_MAP_ELEMENT( m_textInputLines[2], "Line3") 35 UI_MAP_ELEMENT( m_textInputLines[3], "Line4") 36 UI_END_MAP_ELEMENTS_AND_NAMES() 37public: 38 UIScene_SignEntryMenu(int iPad, void *initData, UILayer *parentLayer); 39 virtual ~UIScene_SignEntryMenu(); 40 41 virtual EUIScene getSceneType() { return eUIScene_SignEntryMenu;} 42 virtual void updateTooltips(); 43 44 virtual void tick(); 45 46protected: 47 // TODO: This should be pure virtual in this class 48 virtual wstring getMoviePath(); 49 50public: 51 // INPUT 52 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled); 53 54protected: 55 void handlePress(F64 controlId, F64 childId); 56 static int KeyboardCompleteCallback(LPVOID lpParam,const bool bRes); 57 virtual void handleDestroy(); 58};