the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 51 lines 1.3 kB view raw
1#pragma once 2 3#include "UIScene.h" 4 5class UIScene_TeleportMenu : public UIScene 6{ 7private: 8 enum EControls 9 { 10 eControl_GamePlayers, 11 }; 12 13 bool m_teleportToPlayer; 14 int m_playersCount; 15 BYTE m_players[MINECRAFT_NET_MAX_PLAYERS]; // An array of QNet small-id's 16 char m_playersVoiceState[MINECRAFT_NET_MAX_PLAYERS]; 17 short m_playersColourState[MINECRAFT_NET_MAX_PLAYERS]; 18 wstring m_playerNames[MINECRAFT_NET_MAX_PLAYERS]; 19 20 UIControl_PlayerList m_playerList; 21 UIControl_Label m_labelTitle; 22 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene) 23 UI_MAP_ELEMENT( m_playerList, "GamePlayers") 24 UI_MAP_ELEMENT( m_labelTitle, "Title") 25 UI_END_MAP_ELEMENTS_AND_NAMES() 26public: 27 UIScene_TeleportMenu(int iPad, void *initData, UILayer *parentLayer); 28 29 virtual EUIScene getSceneType() { return eUIScene_TeleportMenu;} 30 31 virtual void updateTooltips(); 32 virtual void handleReload(); 33 34 virtual void tick(); 35 36protected: 37 // TODO: This should be pure virtual in this class 38 virtual wstring getMoviePath(); 39 40public: 41 // INPUT 42 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled); 43 44protected: 45 virtual void handleGainFocus(bool navBack); 46 void handlePress(F64 controlId, F64 childId); 47 virtual void handleDestroy(); 48 49public: 50 static void OnPlayerChanged(void *callbackParam, INetworkPlayer *pPlayer, bool leaving); 51};