aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/XUI/XUI_ConnectingProgress.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/Common/XUI/XUI_ConnectingProgress.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Common/XUI/XUI_ConnectingProgress.h')
-rw-r--r--Minecraft.Client/Common/XUI/XUI_ConnectingProgress.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/XUI/XUI_ConnectingProgress.h b/Minecraft.Client/Common/XUI/XUI_ConnectingProgress.h
new file mode 100644
index 00000000..360ca0b0
--- /dev/null
+++ b/Minecraft.Client/Common/XUI/XUI_ConnectingProgress.h
@@ -0,0 +1,55 @@
+#pragma once
+#include "../media/xuiscene_connectingprogress.h"
+
+class CScene_ConnectingProgress : public CXuiSceneImpl
+{
+private:
+ int m_iPad;
+ bool m_runFailTimer;
+ int m_timerTime;
+ bool m_showTooltips;
+protected:
+ // Control and Element wrapper objects.
+ CXuiControl m_title, m_status, m_buttonConfirm;
+
+ // Message map. Here we tie messages to message handlers.
+ XUI_BEGIN_MSG_MAP()
+ XUI_ON_XM_INIT( OnInit )
+ XUI_ON_XM_DESTROY( OnDestroy )
+ XUI_ON_XM_NOTIFY_SELCHANGED( OnNotifySelChanged )
+ XUI_ON_XM_NOTIFY_PRESS_EX(OnNotifyPressEx)
+ XUI_ON_XM_KEYDOWN(OnKeyDown)
+ XUI_ON_XM_GET_SOURCE_TEXT(OnGetSourceDataText)
+ XUI_ON_XM_TRANSITION_START( OnTransitionStart )
+ XUI_ON_XM_TRANSITION_END( OnTransitionEnd )
+ XUI_ON_XM_TIMER( OnTimer )
+ XUI_END_MSG_MAP()
+
+ // Control mapping to objects
+ BEGIN_CONTROL_MAP()
+ MAP_CONTROL(IDC_Title, m_title)
+ MAP_CONTROL(IDC_Status, m_status)
+ MAP_CONTROL(IDC_ButtonConfirm, m_buttonConfirm)
+ END_CONTROL_MAP()
+
+
+ HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
+ HRESULT OnDestroy();
+ HRESULT OnNotifySelChanged( HXUIOBJ hObjSource, XUINotifySelChanged* pNotifySelChangedData, BOOL& bHandled );
+ HRESULT OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotifyPressData,BOOL& rfHandled);
+ HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled);
+ HRESULT OnGetSourceDataText(XUIMessageGetSourceText *pGetSourceTextData, BOOL& bHandled);
+ HRESULT OnTransitionStart( XUIMessageTransition *pTransition, BOOL& bHandled );
+ HRESULT OnTransitionEnd( XUIMessageTransition *pTransition, BOOL& bHandled );
+ HRESULT OnTimer( XUIMessageTimer *pTimer, BOOL& bHandled );
+public:
+
+ // Define the class. The class name must match the ClassOverride property
+ // set for the scene in the UI Authoring tool.
+ XUI_IMPLEMENT_CLASS( CScene_ConnectingProgress, L"CScene_ConnectingProgress", XUI_CLASS_SCENE )
+
+private:
+ bool m_threadCompleted;
+ D3DXVECTOR3 m_OriginalPosition;
+
+};