the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "..\..\..\Minecraft.World\MobEffect.h"
5
6class CXuiCtrlMobEffect : public CXuiControlImpl
7{
8public:
9 XUI_IMPLEMENT_CLASS(CXuiCtrlMobEffect, L"CXuiCtrlMobEffect", XUI_CLASS_CONTROL)
10
11protected:
12 XUI_BEGIN_MSG_MAP()
13 XUI_ON_XM_INIT(OnInit)
14 XUI_ON_XM_GET_SOURCE_TEXT(OnGetSourceDataText)
15 XUI_END_MSG_MAP()
16
17 HRESULT OnInit(XUIMessageInit* pInitData, BOOL& rfHandled);
18 HRESULT OnGetSourceDataText(XUIMessageGetSourceText *pGetSourceTextData, BOOL& bHandled);
19
20public:
21 void setIcon(MobEffect::EMobEffectIcon icon);
22 void setName(const wstring &name);
23 void setDuration(const wstring &duration);
24
25private:
26 MobEffect::EMobEffectIcon m_icon;
27 wstring m_name;
28 wstring m_duration;
29
30 static LPCWSTR iconFrameNames[MobEffect::e_MobEffectIcon_COUNT];
31};