Skip to content

MobileMenuInventory

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

FieldType
bIsDraggingbool
IndexFromint
bIsOverbool
IndexOverint
bCanDropInOverbool
OrigTouchVector2D
CurTouchVector2D
EventTypeETouchType

RenderElementInfo

FieldType
bIsDragItembool
Indexint

Properties

NameTypeNotes
bInitialzedbool
bRenderDragItembool
CurrentElementRenderElementInfo
DragDragElementInfo
Itemsarray<MobileMenuElement>
ScaleSizeVector2D
SideLeewayPercentfloat
Slotsarray<MobileMenuElement>

Functions

NameDeclaration
AddItemToSlotfunction MobileMenuElement AddItemToSlot(MobileMenuElement Element, int ToSlot)
AddSlotfunction int AddSlot(MobileMenuElement Slot)
CanPutItemInSlotfunction bool CanPutItemInSlot(MobileMenuElement Item, MobileMenuElement ToSlot, int ToIdx, int FromIdx = -1)
DoCanPutItemInSlotdelegate bool DoCanPutItemInSlot(MobileMenuInventory FromInv, MobileMenuElement Item, MobileMenuElement ToSlot, int ToIdx, int FromIdx)
FindSlotIndexAtfunction int FindSlotIndexAt(float X, float Y)
GetIconIndexesfunction GetIconIndexes(out array IconIndexes)
GetIndexOfItemfunction int GetIndexOfItem(MobileMenuElement Item)
InitDragAtfunction InitDragAt(int TouchX, int TouchY)
InitMenuObjectfunction InitMenuObject(MobilePlayerInput PlayerInput, MobileMenuScene Scene, int ScreenWidth, int ScreenHeight, bool bIsFirstInitialization)
OnTouchevent bool OnTouch(ETouchType EventType, float TouchX, float TouchY, MobileMenuObject ObjectOver, float DeltaTime)
OnUpdateDragdelegate OnUpdateDrag(out const DragElementInfo Before, out const DragElementInfo After)
OnUpdateItemInSlotdelegate OnUpdateItemInSlot(MobileMenuInventory FromInv, int SlotIndex)
RenderDragItemfunction RenderDragItem(canvas Canvas, float DeltaTime)
RenderObjectfunction RenderObject(canvas Canvas, float DeltaTime)
ScaleSlotprivate function ScaleSlot(MobileMenuElement Slot)
SwapItemsInSlotsfunction bool SwapItemsInSlots(int Slot0, int Slot1)
UpdateItemInSlotprotected function UpdateItemInSlot(int InSlot)

Default values

bIsActive=true
bRenderDragItem=true
SideLeewayPercent=0.1f

Inherited

FromMembers
MobileMenuObject38 properties, 6 functions
Object13 properties, 308 functions