Class in GameFramework · GameFramework.MobileMenuInventory
Object › MobileMenuObject › MobileMenuInventory
Using it from Lua
h7.find_all("MobileMenuInventory") -- live instances
h7.find_class("GameFramework.MobileMenuInventory") -- the class
h7.hook("GameFramework.MobileMenuInventory.AddItemToSlot", fn)
Structs
DragElementInfo
| Field | Type |
bIsDragging | bool |
IndexFrom | int |
bIsOver | bool |
IndexOver | int |
bCanDropInOver | bool |
OrigTouch | Vector2D |
CurTouch | Vector2D |
EventType | ETouchType |
RenderElementInfo
| Field | Type |
bIsDragItem | bool |
Index | int |
Properties
Functions
| Name | Declaration |
AddItemToSlot | function MobileMenuElement AddItemToSlot(MobileMenuElement Element, int ToSlot) |
AddSlot | function int AddSlot(MobileMenuElement Slot) |
CanPutItemInSlot | function bool CanPutItemInSlot(MobileMenuElement Item, MobileMenuElement ToSlot, int ToIdx, int FromIdx = -1) |
DoCanPutItemInSlot | delegate bool DoCanPutItemInSlot(MobileMenuInventory FromInv, MobileMenuElement Item, MobileMenuElement ToSlot, int ToIdx, int FromIdx) |
FindSlotIndexAt | function int FindSlotIndexAt(float X, float Y) |
GetIconIndexes | function GetIconIndexes(out array IconIndexes) |
GetIndexOfItem | function int GetIndexOfItem(MobileMenuElement Item) |
InitDragAt | function InitDragAt(int TouchX, int TouchY) |
function InitMenuObject(MobilePlayerInput PlayerInput, MobileMenuScene Scene, int ScreenWidth, int ScreenHeight, bool bIsFirstInitialization) |
OnTouch | event bool OnTouch(ETouchType EventType, float TouchX, float TouchY, MobileMenuObject ObjectOver, float DeltaTime) |
OnUpdateDrag | delegate OnUpdateDrag(out const DragElementInfo Before, out const DragElementInfo After) |
OnUpdateItemInSlot | delegate OnUpdateItemInSlot(MobileMenuInventory FromInv, int SlotIndex) |
RenderDragItem | function RenderDragItem(canvas Canvas, float DeltaTime) |
RenderObject | function RenderObject(canvas Canvas, float DeltaTime) |
ScaleSlot | private function ScaleSlot(MobileMenuElement Slot) |
SwapItemsInSlots | function bool SwapItemsInSlots(int Slot0, int Slot1) |
UpdateItemInSlot | protected function UpdateItemInSlot(int InSlot) |
Default values
bIsActive=true
bRenderDragItem=true
SideLeewayPercent=0.1f
Inherited