the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 54 lines 1.8 kB view raw
1#pragma once 2 3#include "UIScene_AbstractContainerMenu.h" 4#include "IUIScene_EnchantingMenu.h" 5 6class InventoryMenu; 7 8class UIScene_EnchantingMenu : public UIScene_AbstractContainerMenu, public IUIScene_EnchantingMenu 9{ 10private: 11 enum EControls 12 { 13 eControl_UNKNOWN, 14 eControl_Button1, 15 eControl_Button2, 16 eControl_Button3, 17 }; 18public: 19 UIScene_EnchantingMenu(int iPad, void *initData, UILayer *parentLayer); 20 21 virtual EUIScene getSceneType() { return eUIScene_EnchantingMenu;} 22 23protected: 24 UIControl_SlotList m_slotListIngredient; 25 UIControl_Label m_labelEnchant; 26 UIControl_EnchantmentButton m_enchantButton[3]; 27 UIControl_EnchantmentBook m_enchantBook; 28 29 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene_AbstractContainerMenu) 30 UI_BEGIN_MAP_CHILD_ELEMENTS( m_controlMainPanel ) 31 UI_MAP_ELEMENT( m_slotListIngredient, "ingredient") 32 UI_MAP_ELEMENT( m_enchantButton[0], "Button1") 33 UI_MAP_ELEMENT( m_enchantButton[1], "Button2") 34 UI_MAP_ELEMENT( m_enchantButton[2], "Button3") 35 UI_MAP_ELEMENT( m_labelEnchant, "enchantLabel") 36 37 UI_MAP_ELEMENT( m_enchantBook, "iggy_EnchantmentBook") 38 UI_END_MAP_CHILD_ELEMENTS() 39 UI_END_MAP_ELEMENTS_AND_NAMES() 40 41 virtual wstring getMoviePath(); 42 virtual void handleReload(); 43 44 virtual int getSectionColumns(ESceneSection eSection); 45 virtual int getSectionRows(ESceneSection eSection); 46 virtual void GetPositionOfSection( ESceneSection eSection, UIVec2D* pPosition ); 47 virtual void GetItemScreenData( ESceneSection eSection, int iItemIndex, UIVec2D* pPosition, UIVec2D* pSize ); 48 virtual void handleSectionClick(ESceneSection eSection) {} 49 virtual void setSectionSelectedSlot(ESceneSection eSection, int x, int y); 50 51 virtual UIControl *getSection(ESceneSection eSection); 52 53 virtual void customDraw(IggyCustomDrawCallbackRegion *region); 54};