the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class CXuiCtrlSliderWrapper : public CXuiSceneImpl
4{
5private:
6 CXuiSlider *m_pSlider;
7 CXuiControl *m_pFocusSink;
8 bool m_sliderActive;
9 bool m_bDisplayVal;
10 bool m_bPlaySound;
11
12protected:
13 // Message map. Here we tie messages to message handlers.
14 XUI_BEGIN_MSG_MAP()
15 XUI_ON_XM_INIT( OnInit )
16 XUI_ON_XM_TIMER( OnTimer )
17 XUI_ON_XM_KEYDOWN(OnKeyDown)
18 XUI_ON_XM_NOTIFY_VALUE_CHANGED(OnNotifyValueChanged)
19 XUI_END_MSG_MAP()
20
21 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
22 HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled);
23 HRESULT OnNotifyValueChanged (HXUIOBJ hObjSource, XUINotifyValueChanged* pValueChangedData, BOOL& rfHandled);
24 HRESULT OnTimer(XUIMessageTimer *pData,BOOL& rfHandled);
25public:
26
27 // Define the class. The class name must match the ClassOverride property
28 // set for the scene in the UI Authoring tool.
29 XUI_IMPLEMENT_CLASS( CXuiCtrlSliderWrapper, L"CXuiCtrlSliderWrapper", XUI_CLASS_SCENE )
30
31 HRESULT SetValue( int nValue );
32 HXUIOBJ GetSlider();
33 HRESULT SetRange( int nRangeMin, int nRangeMax);
34 LPCWSTR GetText( );
35 HRESULT SetText(LPCWSTR text, int iDataAssoc=0 );
36 HRESULT SetValueDisplay( BOOL bShow );
37
38};