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 UIComponent_PressStartToPlay : public UIScene
6{
7private:
8 bool m_showingSaveIcon;
9 bool m_showingAutosaveTimer;
10 bool m_showingTrialTimer;
11 bool m_showingPressStart[XUSER_MAX_COUNT];
12 wstring m_trialTimer;
13 wstring m_autosaveTimer;
14
15protected:
16 UIControl_Label m_labelTrialTimer, m_labelPressStart, m_playerDisplayName;
17 UIControl m_controlSaveIcon, m_controlPressStartPanel;
18 IggyName m_funcShowController;
19 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
20 UI_MAP_ELEMENT(m_labelTrialTimer, "TrialTimer")
21 UI_MAP_ELEMENT(m_controlSaveIcon, "SaveIcon")
22 UI_MAP_ELEMENT(m_playerDisplayName, "PlayerName")
23 UI_MAP_ELEMENT(m_controlPressStartPanel, "MainPanel")
24 UI_BEGIN_MAP_CHILD_ELEMENTS(m_controlPressStartPanel)
25 UI_MAP_ELEMENT(m_labelPressStart, "PressStartLabel" )
26 UI_END_MAP_CHILD_ELEMENTS()
27
28 UI_MAP_NAME(m_funcShowController, L"ShowController");
29 UI_END_MAP_ELEMENTS_AND_NAMES()
30
31public:
32 UIComponent_PressStartToPlay(int iPad, void *initData, UILayer *parentLayer);
33
34protected:
35 // TODO: This should be pure virtual in this class
36 virtual wstring getMoviePath();
37
38public:
39 virtual EUIScene getSceneType() { return eUIComponent_PressStartToPlay;}
40
41 // Returns true if this scene handles input
42 virtual bool stealsFocus() { return false; }
43
44 // Returns true if this scene has focus for the pad passed in
45 virtual bool hasFocus(int iPad) { return false; }
46
47 // Returns true if lower scenes in this scenes layer, or in any layer below this scenes layers should be hidden
48 virtual bool hidesLowerScenes() { return false; }
49
50 virtual void handleReload();
51 virtual void handleTimerComplete(int id);
52
53 void showPressStart(int iPad, bool show);
54 void setTrialTimer(const wstring &label);
55 void showTrialTimer(bool show);
56 void setAutosaveTimer(const wstring &label);
57 void showAutosaveTimer(bool show);
58 void showSaveIcon(bool show);
59 void showPlayerDisplayName(bool show);
60};