the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 49 lines 1.8 kB view raw
1#pragma once 2#include "..\Media\xuiscene_debug_schematic_create.h" 3#include "XUI_Ctrl_4JEdit.h" 4#include "..\..\Common\GameRules\ConsoleSchematicFile.h" 5 6class CScene_DebugSchematicCreator : public CXuiSceneImpl 7{ 8#ifndef _CONTENT_PACKAGE 9private: 10 CXuiControl m_createButton; 11 CXuiCtrl4JEdit m_name, m_startX, m_startY, m_startZ, m_endX, m_endY, m_endZ; 12 CXuiCheckbox m_saveMobs, m_useXboxCompr; 13 14 ConsoleSchematicFile::XboxSchematicInitParam *m_data; 15 16protected: 17 // Message map. Here we tie messages to message handlers. 18 XUI_BEGIN_MSG_MAP() 19 XUI_ON_XM_INIT( OnInit ) 20 XUI_ON_XM_NOTIFY_PRESS_EX( OnNotifyPressEx ) 21 XUI_ON_XM_KEYDOWN(OnKeyDown) 22 XUI_ON_XM_NOTIFY_VALUE_CHANGED( OnNotifyValueChanged ) 23 XUI_END_MSG_MAP() 24 25 // Control mapping to objects 26 BEGIN_CONTROL_MAP() 27 MAP_CONTROL(IDC_CreateButton, m_createButton) 28 MAP_CONTROL(IDC_Name, m_name) 29 MAP_CONTROL(IDC_StartX, m_startX) 30 MAP_CONTROL(IDC_StartY, m_startY) 31 MAP_CONTROL(IDC_StartZ, m_startZ) 32 MAP_CONTROL(IDC_EndX, m_endX) 33 MAP_CONTROL(IDC_EndY, m_endY) 34 MAP_CONTROL(IDC_EndZ, m_endZ) 35 MAP_CONTROL(IDC_SaveMobs, m_saveMobs) 36 MAP_CONTROL(IDC_UseXboxCompression, m_useXboxCompr) 37 END_CONTROL_MAP() 38 39 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled ); 40 HRESULT OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotifyPressData, BOOL& rfHandled); 41 HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled); 42 HRESULT OnNotifyValueChanged( HXUIOBJ hObjSource, XUINotifyValueChanged *pNotifyValueChangedData, BOOL &bHandled); 43public: 44 45 // Define the class. The class name must match the ClassOverride property 46 // set for the scene in the UI Authoring tool. 47 XUI_IMPLEMENT_CLASS( CScene_DebugSchematicCreator, L"CScene_DebugSchematicCreator", XUI_CLASS_SCENE ) 48#endif 49};