the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 54 lines 1.9 kB view raw
1#pragma once 2 3#include "UIScene_AbstractContainerMenu.h" 4#include "IUIScene_HorseInventoryMenu.h" 5 6class InventoryMenu; 7 8class UIScene_HorseInventoryMenu : public UIScene_AbstractContainerMenu, public IUIScene_HorseInventoryMenu 9{ 10 friend class UIControl_MinecraftHorse; 11public: 12 UIScene_HorseInventoryMenu(int iPad, void *initData, UILayer *parentLayer); 13 14 virtual EUIScene getSceneType() { return eUIScene_HorseMenu;} 15 16protected: 17 UIControl_SlotList m_slotSaddle, m_slotArmor, m_slotListChest; 18 UIControl_Label m_labelHorse; 19 20 IggyName m_funcSetIsDonkey, m_funcSetHasInventory; 21 22 UIControl_MinecraftHorse m_horsePreview; 23 24 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene_AbstractContainerMenu) 25 UI_BEGIN_MAP_CHILD_ELEMENTS( m_controlMainPanel ) 26 UI_MAP_ELEMENT( m_slotSaddle, "SlotSaddle") 27 UI_MAP_ELEMENT( m_slotArmor, "SlotArmor") 28 UI_MAP_ELEMENT( m_slotListChest, "DonkeyInventoryList") 29 UI_MAP_ELEMENT( m_labelHorse, "horseinventoryText") 30 31 UI_MAP_ELEMENT( m_horsePreview, "iggy_horse") 32 UI_END_MAP_CHILD_ELEMENTS() 33 34 UI_MAP_NAME(m_funcSetIsDonkey, L"SetIsDonkey") 35 UI_MAP_NAME(m_funcSetHasInventory, L"SetHasInventory") 36 UI_END_MAP_ELEMENTS_AND_NAMES() 37 38 virtual wstring getMoviePath(); 39 virtual void handleReload(); 40 41 virtual int getSectionColumns(ESceneSection eSection); 42 virtual int getSectionRows(ESceneSection eSection); 43 virtual void GetPositionOfSection( ESceneSection eSection, UIVec2D* pPosition ); 44 virtual void GetItemScreenData( ESceneSection eSection, int iItemIndex, UIVec2D* pPosition, UIVec2D* pSize ); 45 virtual void handleSectionClick(ESceneSection eSection) {} 46 virtual void setSectionSelectedSlot(ESceneSection eSection, int x, int y); 47 48 virtual UIControl *getSection(ESceneSection eSection); 49 50 virtual void customDraw(IggyCustomDrawCallbackRegion *region); 51 52 void SetHasInventory(bool bHasInventory); 53 void SetIsDonkey(bool bSetIsDonkey); 54};