the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "../media\xuiscene_socialpost.h"
4#include "XUI_Ctrl_4JEdit.h"
5#include "XUI_CustomMessages.h"
6
7
8class CScene_SocialPost : public CXuiSceneImpl
9{
10 protected:
11 // Control and Element wrapper objects.
12 CXuiControl m_OK;
13 CXuiCtrl4JEdit m_EditCaption;
14 CXuiCtrl4JEdit m_EditDesc;
15 CXuiControl m_text, m_LabelCaption, m_LabelDescription;
16 wstring m_wTitle;
17
18 // Message map. Here we tie messages to message handlers.
19 XUI_BEGIN_MSG_MAP()
20 XUI_ON_XM_INIT( OnInit )
21 XUI_ON_XM_NOTIFY_PRESS_EX(OnNotifyPressEx)
22 XUI_ON_XM_KEYDOWN(OnKeyDown)
23 XUI_ON_XM_NOTIFY_VALUE_CHANGED(OnNotifyValueChanged)
24 XUI_ON_XM_CONTROL_NAVIGATE( OnControlNavigate )
25 XUI_ON_XM_SPLITSCREENPLAYER_MESSAGE(OnCustomMessage_Splitscreenplayer)
26
27 XUI_END_MSG_MAP()
28
29 // Control mapping to objects
30 BEGIN_CONTROL_MAP()
31 //MAP_CONTROL(IDC_XuiEditTitle, m_EditTitle)
32 MAP_CONTROL(IDC_XuiLabelText, m_text)
33 MAP_CONTROL(IDC_XuiLabelCaption, m_LabelCaption)
34 MAP_CONTROL(IDC_XuiLabelDescription, m_LabelDescription)
35 MAP_CONTROL(IDC_XuiEditCaption, m_EditCaption)
36 MAP_CONTROL(IDC_XuiEditDescription, m_EditDesc)
37 MAP_CONTROL(IDC_XuiOK, m_OK)
38
39 END_CONTROL_MAP()
40
41 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
42 HRESULT OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotifyPressData, BOOL& rfHandled);
43 HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled);
44 HRESULT OnNotifyValueChanged (HXUIOBJ hObjSource, XUINotifyValueChanged* pValueChangedData, BOOL& rfHandled);
45 HRESULT OnControlNavigate(XUIMessageControlNavigate *pControlNavigateData, BOOL& bHandled);
46 HRESULT OnCustomMessage_Splitscreenplayer(bool bJoining, BOOL& bHandled);
47
48 D3DXVECTOR3 m_OriginalPosition;
49 int m_iPad;
50
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_SocialPost, L"CScene_SocialPost", XUI_CLASS_SCENE )
56
57
58
59};