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#include "../media/xuiscene_debug_item_editor.h"
4
5#include "XUI_Ctrl_CraftIngredientSlot.h"
6#include "XUI_Ctrl_4JEdit.h"
7#include "..\..\..\Minecraft.World\ItemInstance.h"
8
9class CScene_DebugItemEditor : public CXuiSceneImpl
10{
11#ifdef _DEBUG_MENUS_ENABLED
12public:
13 typedef struct _ItemEditorInput
14 {
15 int iPad;
16 Slot *slot;
17 AbstractContainerMenu *menu;
18 } ItemEditorInput;
19private:
20 int m_iPad;
21 shared_ptr<ItemInstance> m_item;
22 Slot *m_slot;
23 AbstractContainerMenu *m_menu;
24
25 CXuiCtrlCraftIngredientSlot *m_icon;
26 CXuiControl m_generatedXml, m_itemName;
27 CXuiCtrl4JEdit m_itemId, m_itemAuxValue, m_itemCount, m_item4JData;
28
29protected:
30 // Message map. Here we tie messages to message handlers.
31 XUI_BEGIN_MSG_MAP()
32 XUI_ON_XM_INIT( OnInit )
33 XUI_ON_XM_KEYDOWN(OnKeyDown)
34 XUI_ON_XM_NOTIFY_VALUE_CHANGED( OnNotifyValueChanged )
35 XUI_END_MSG_MAP()
36
37 // Control mapping to objects
38 BEGIN_CONTROL_MAP()
39 MAP_CONTROL(IDC_itemId, m_itemId)
40 MAP_CONTROL(IDC_itemAuxValue, m_itemAuxValue)
41 MAP_CONTROL(IDC_itemCount, m_itemCount)
42 MAP_CONTROL(IDC_item4JData, m_item4JData)
43 MAP_OVERRIDE(IDC_icon, m_icon)
44 MAP_CONTROL(IDC_ruleXml, m_generatedXml)
45 MAP_CONTROL(IDC_itemName, m_itemName)
46 END_CONTROL_MAP()
47
48 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
49 HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled);
50 HRESULT OnNotifyValueChanged( HXUIOBJ hObjSource, XUINotifyValueChanged *pNotifyValueChangedData, BOOL &bHandled);
51public:
52
53 // Define the class. The class name must match the ClassOverride property
54 // set for the scene in the UI Authoring tool.
55 XUI_IMPLEMENT_CLASS( CScene_DebugItemEditor, L"CScene_DebugItemEditor", XUI_CLASS_SCENE )
56#endif
57};