the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 45 lines 1.5 kB view raw
1#pragma once 2 3#include <string> 4#include <XuiApp.h> 5 6 7//----------------------------------------------------------------------------- 8// CXuiCtrlMinecraftSlot class 9//----------------------------------------------------------------------------- 10class CXuiCtrlCraftIngredientSlot : public CXuiControlImpl 11{ 12public: 13 XUI_IMPLEMENT_CLASS(CXuiCtrlCraftIngredientSlot, L"CXuiCtrlCraftIngredientSlot", XUI_CLASS_LABEL) 14 15 CXuiCtrlCraftIngredientSlot(); 16 virtual ~CXuiCtrlCraftIngredientSlot() { }; 17 void SetRedBox(BOOL bVal); 18 void SetIcon(int iPad, int iId,int iAuxVal, int iCount, int iScale, unsigned int uiAlpha, bool bDecorations, bool isFoil = false, BOOL bShow=TRUE); 19 void SetIcon(int iPad, shared_ptr<ItemInstance> item, int iScale, unsigned int uiAlpha,bool bDecorations, BOOL bShow=TRUE); 20 void SetDescription(LPCWSTR Desc); 21protected: 22 23 XUI_BEGIN_MSG_MAP() 24 XUI_ON_XM_INIT(OnInit) 25 XUI_ON_XM_GETSLOTITEM_MESSAGE(OnCustomMessage_GetSlotItem) 26 XUI_ON_XM_GET_SOURCE_TEXT(OnGetSourceText) 27 XUI_END_MSG_MAP() 28 29 HRESULT OnCustomMessage_GetSlotItem(CustomMessage_GetSlotItem_Struct *pData, BOOL& bHandled); 30 HRESULT OnGetSourceText(XUIMessageGetSourceText *pGetSourceTextData, BOOL& bHandled); 31 HRESULT OnInit(XUIMessageInit* pInitData, BOOL& rfHandled); 32 33private: 34 shared_ptr<ItemInstance> m_item; 35 int m_iID; 36 int m_iAuxVal; 37 int m_iCount; 38 int m_iScale; 39 unsigned int m_uiAlpha; 40 int m_iPad; 41 bool m_bDecorations; 42 bool m_isFoil; 43 LPCWSTR m_Desc; 44 bool m_isDirty; 45};