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_FullscreenProgress : public UIScene
6{
7private:
8 enum EControl
9 {
10 eControl_Confirm,
11 };
12
13 static const int TIMER_FULLSCREEN_TIPS = 1;
14 static const int TIMER_FULLSCREEN_TIPS_TIME = 7000;
15
16 C4JThread* thread;
17 bool threadStarted;
18 UIFullscreenProgressCompletionData *m_CompletionData;
19 bool m_threadCompleted;
20 int m_iPad;
21 void (*m_cancelFunc)(LPVOID param);
22 void (*m_completeFunc)(LPVOID param);
23 LPVOID m_cancelFuncParam;
24 LPVOID m_completeFuncParam;
25 bool m_bWaitForThreadToDelete;
26
27 wstring m_titleText, m_statusText;
28 int m_lastTitle, m_lastStatus, m_lastProgress;
29 int m_cancelText;
30 bool m_bWasCancelled;
31
32 UIControl_Progress m_progressBar;
33 UIControl_Label m_labelTitle, m_labelTip;
34 UIControl_Button m_buttonConfirm;
35 UIControl m_controlTimer;
36 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
37 UI_MAP_ELEMENT( m_progressBar, "ProgressBar")
38 UI_MAP_ELEMENT( m_labelTitle, "Title")
39 UI_MAP_ELEMENT( m_labelTip, "Tip")
40 UI_MAP_ELEMENT( m_buttonConfirm, "Confirm")
41 UI_MAP_ELEMENT( m_controlTimer, "Timer")
42 UI_END_MAP_ELEMENTS_AND_NAMES()
43public:
44 UIScene_FullscreenProgress(int iPad, void *initData, UILayer *parentLayer);
45 virtual ~UIScene_FullscreenProgress();
46
47 virtual EUIScene getSceneType() { return eUIScene_FullscreenProgress;}
48 virtual void updateTooltips();
49 virtual void handleDestroy();
50
51 void tick();
52
53protected:
54 // TODO: This should be pure virtual in this class
55 virtual wstring getMoviePath();
56
57 virtual long long getDefaultGtcButtons() { return 0; }
58
59public:
60 // INPUT
61 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
62 void handlePress(F64 controlId, F64 childId);
63
64 virtual void handleTimerComplete(int id);
65
66 void SetWasCancelled(bool wasCancelled);
67
68 virtual bool isReadyToDelete();
69};