the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 37 lines 1.6 kB view raw
1#pragma once 2#include "XUI_Ctrl_SlotItemCtrlBase.h" 3 4class CXuiCtrlSlotItem : public CXuiControlImpl, public CXuiCtrlSlotItemCtrlBase 5{ 6public: 7 // Define the class. The class name must match the ClassOverride property 8 // set for the scene in the UI Authoring tool. 9 XUI_IMPLEMENT_CLASS( CXuiCtrlSlotItem, L"CXuiCtrlSlotItem", XUI_CLASS_CONTROL ) 10 11 XUI_BEGIN_MSG_MAP() 12 XUI_ON_XM_INIT( OnInit ) 13 XUI_ON_XM_DESTROY(OnDestroy) 14 XUI_ON_XM_GETSLOTITEM_MESSAGE(OnCustomMessage_GetSlotItem) 15 16 // 4J WESTY : Pointer Prototype : Added to support prototype only. 17 XUI_ON_XM_CONTROL_NAVIGATE( OnControlNavigate ) 18 19 XUI_ON_XM_KEYDOWN( OnKeyDown ) 20 XUI_END_MSG_MAP() 21 22 using CXuiCtrlSlotItemCtrlBase::OnInit; 23 HRESULT OnInit(XUIMessageInit* pInitData, BOOL& bHandled) { return this->OnInit( m_hObj, pInitData, bHandled ); }; 24 25 using CXuiCtrlSlotItemCtrlBase::OnDestroy; 26 HRESULT OnDestroy() { return this->OnDestroy( m_hObj ); }; 27 28 using CXuiCtrlSlotItemCtrlBase::OnCustomMessage_GetSlotItem; 29 HRESULT OnCustomMessage_GetSlotItem(CustomMessage_GetSlotItem_Struct *pData, BOOL& bHandled) { return this->OnCustomMessage_GetSlotItem( m_hObj, pData, bHandled ); }; 30 31 // 4J WESTY : Pointer Prototype : Added to support prototype only. 32 using CXuiCtrlSlotItemCtrlBase::OnControlNavigate; 33 HRESULT OnControlNavigate(XUIMessageControlNavigate *pControlNavigateData, BOOL& bHandled) { return this->OnControlNavigate( m_hObj, pControlNavigateData, bHandled ); }; 34 35 using CXuiCtrlSlotItemCtrlBase::OnKeyDown; 36 HRESULT OnKeyDown(XUIMessageInput *pInputData, BOOL& bHandled) { return this->OnKeyDown( m_hObj, pInputData, bHandled ); }; 37};