Skip to content

MobileMenuList

Class in GameFramework · GameFramework.MobileMenuList

Object › MobileMenuObject › MobileMenuList

Using it from Lua
h7.find_all("MobileMenuList")            -- live instances
h7.find_class("GameFramework.MobileMenuList")   -- the class
h7.hook("GameFramework.MobileMenuList.AddItem", fn)

Constants

NameValue
NumInDragHistory4

Structs

DragHistoryData

FieldType
TouchTimefloat
TouchCoordfloat

MenuListDragInfo

FieldType
bIsDraggingbool
TouchedItemMobileMenuListItem
OrigSelectedItemSelectedMenuItem
StartTouchVector2D
TouchTimefloat
ScrollAmountfloat
AbsScrollAmountfloat
UpdateHistoryDragHistoryData[NumInDragHistory]
NumUpdatesint
bHasSelectedChangedbool

MenuListMovementInfo

FieldType
bIsMovingbool
OrigSelectedItemSelectedMenuItem
FullMovementfloat
TotalTimefloat
CurrentTimefloat

SelectedMenuItem

FieldType
Indexint
Offsetfloat
bEndOfListbool

Properties

NameTypeNotes
bDisableScrollingbool
bForceSelectedToLineupbool
bIsVerticalListbool
bLoopsbool
bTapToScrollToItembool
Deaccelerationfloat
DragMenuListDragInfo
EaseOutExpfloat
EndOfListSupressionfloat
FirstVisibleint
Itemsarray<MobileMenuListItem>
LastVisibleint
MaskSizeVector2D
MovementMenuListMovementInfo
NumShowEndOfListint
ScreenSizeIntPoint
SelectedItemSelectedMenuItem
SelectedOffsetfloat

Functions

NameDeclaration
AddItemfunction AddItem(MobileMenuListItem Item, Int Index = -1)
CalculateSelectedItemfunction float CalculateSelectedItem(out SelectedMenuItem Selected, float ScrollAmount, bool bForceZeroAdjustment)
GetAmountSelectedfunction float GetAmountSelected(MobileMenuListItem Item)
GetIconIndexesfunction GetIconIndexes(out array IconIndexes)
GetItemClickPositionfunction MobileMenuListItem GetItemClickPosition(out float MouseX, out float MouseY)
GetNumVisiblefunction int GetNumVisible()
GetSelectedfunction MobileMenuListItem GetSelected()
GetVisibleIndexOfSelectedfunction int GetVisibleIndexOfSelected()
InitMenuObjectfunction InitMenuObject(MobilePlayerInput PlayerInput, MobileMenuScene Scene, int ScreenWidth, int ScreenHeight, bool bIsFirstInitialization)
ItemScrollSizefunction int ItemScrollSize(MobileMenuListItem Item)
Numfunction int Num()
OnTouchevent bool OnTouch(ETouchType EventType, float TouchX, float TouchY, MobileMenuObject ObjectOver, float DeltaTime)
RenderObjectfunction RenderObject(canvas Canvas, float DeltaTime)
SetSelectedItemfunction bool SetSelectedItem(int ItemIndex, bool bForceAll = false)
SetSelectedToVisibleIndexfunction int SetSelectedToVisibleIndex(int VisibleIndex)
UpdateScrollfunction UpdateScroll(float DeltaTime)

Default values

NumShowEndOfList=0
bIsActive=true
bIsVerticalList=true
bTapToScrollToItem=true
Deacceleration = 1500
EaseOutExp=4.0
EndOfListSupression=0.4f
SelectedItem=(Index=0, Offset=0)
SelectedOffset = 0
bForceSelectedToLineup=true

Inherited

FromMembers
MobileMenuObject38 properties, 6 functions
Object13 properties, 308 functions