the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "UIScene.h"
4
5class UIScene_InGameInfoMenu : public UIScene
6{
7private:
8 enum EControls
9 {
10 eControl_GameOptions,
11 eControl_GamePlayers,
12 };
13
14 typedef struct _PlayerInfo
15 {
16 byte m_smallId;
17 char m_voiceStatus;
18 short m_colorState;
19 wstring m_name;
20
21 } PlayerInfo;
22
23 bool m_isHostPlayer;
24 //int m_playersCount;
25 vector<PlayerInfo *> m_players; // A vector of player info structs
26 //char m_playersVoiceState[MINECRAFT_NET_MAX_PLAYERS];
27 //short m_playersColourState[MINECRAFT_NET_MAX_PLAYERS];
28 //wstring m_playerNames[MINECRAFT_NET_MAX_PLAYERS];
29
30 UIControl_Button m_buttonGameOptions;
31 UIControl_PlayerList m_playerList;
32 UIControl_Label m_labelTitle;
33 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
34 UI_MAP_ELEMENT( m_buttonGameOptions, "GameOptions")
35 UI_MAP_ELEMENT( m_playerList, "GamePlayers")
36 UI_MAP_ELEMENT( m_labelTitle, "Title")
37 UI_END_MAP_ELEMENTS_AND_NAMES()
38public:
39 UIScene_InGameInfoMenu(int iPad, void *initData, UILayer *parentLayer);
40 virtual ~UIScene_InGameInfoMenu();
41
42 virtual EUIScene getSceneType() { return eUIScene_InGameInfoMenu;}
43 virtual void updateTooltips();
44
45 virtual void handleReload();
46
47 virtual void tick();
48
49protected:
50 // TODO: This should be pure virtual in this class
51 virtual wstring getMoviePath();
52
53public:
54 // INPUT
55 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
56
57protected:
58 virtual void handleGainFocus(bool navBack);
59 void handlePress(F64 controlId, F64 childId);
60 virtual void handleDestroy();
61 virtual void handleFocusChange(F64 controlId, F64 childId);
62
63public:
64 static int KickPlayerReturned(void *pParam,int iPad,C4JStorage::EMessageResult result);
65 static void OnPlayerChanged(void *callbackParam, INetworkPlayer *pPlayer, bool leaving);
66
67private:
68 PlayerInfo *BuildPlayerInfo(INetworkPlayer *player);
69
70#if defined(__PS3__) || defined (__PSVITA__) || defined(__ORBIS__)
71 static int MustSignInReturnedPSN(void *pParam,int iPad,C4JStorage::EMessageResult result);
72 static int ViewInvites_SignInReturned(void *pParam,bool bContinue, int iPad);
73#endif
74};