the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 55 lines 1.9 kB view raw
1#pragma once 2#include "../media/xuiscene_connectingprogress.h" 3 4class CScene_ConnectingProgress : public CXuiSceneImpl 5{ 6private: 7 int m_iPad; 8 bool m_runFailTimer; 9 int m_timerTime; 10 bool m_showTooltips; 11protected: 12 // Control and Element wrapper objects. 13 CXuiControl m_title, m_status, m_buttonConfirm; 14 15 // Message map. Here we tie messages to message handlers. 16 XUI_BEGIN_MSG_MAP() 17 XUI_ON_XM_INIT( OnInit ) 18 XUI_ON_XM_DESTROY( OnDestroy ) 19 XUI_ON_XM_NOTIFY_SELCHANGED( OnNotifySelChanged ) 20 XUI_ON_XM_NOTIFY_PRESS_EX(OnNotifyPressEx) 21 XUI_ON_XM_KEYDOWN(OnKeyDown) 22 XUI_ON_XM_GET_SOURCE_TEXT(OnGetSourceDataText) 23 XUI_ON_XM_TRANSITION_START( OnTransitionStart ) 24 XUI_ON_XM_TRANSITION_END( OnTransitionEnd ) 25 XUI_ON_XM_TIMER( OnTimer ) 26 XUI_END_MSG_MAP() 27 28 // Control mapping to objects 29 BEGIN_CONTROL_MAP() 30 MAP_CONTROL(IDC_Title, m_title) 31 MAP_CONTROL(IDC_Status, m_status) 32 MAP_CONTROL(IDC_ButtonConfirm, m_buttonConfirm) 33 END_CONTROL_MAP() 34 35 36 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled ); 37 HRESULT OnDestroy(); 38 HRESULT OnNotifySelChanged( HXUIOBJ hObjSource, XUINotifySelChanged* pNotifySelChangedData, BOOL& bHandled ); 39 HRESULT OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotifyPressData,BOOL& rfHandled); 40 HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled); 41 HRESULT OnGetSourceDataText(XUIMessageGetSourceText *pGetSourceTextData, BOOL& bHandled); 42 HRESULT OnTransitionStart( XUIMessageTransition *pTransition, BOOL& bHandled ); 43 HRESULT OnTransitionEnd( XUIMessageTransition *pTransition, BOOL& bHandled ); 44 HRESULT OnTimer( XUIMessageTimer *pTimer, BOOL& bHandled ); 45public: 46 47 // Define the class. The class name must match the ClassOverride property 48 // set for the scene in the UI Authoring tool. 49 XUI_IMPLEMENT_CLASS( CScene_ConnectingProgress, L"CScene_ConnectingProgress", XUI_CLASS_SCENE ) 50 51private: 52 bool m_threadCompleted; 53 D3DXVECTOR3 m_OriginalPosition; 54 55};