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
| Name | Value |
NumInDragHistory | 4 |
Structs
DragHistoryData
| Field | Type |
TouchTime | float |
TouchCoord | float |
| Field | Type |
bIsMoving | bool |
OrigSelectedItem | SelectedMenuItem |
FullMovement | float |
TotalTime | float |
CurrentTime | float |
| Field | Type |
Index | int |
Offset | float |
bEndOfList | bool |
Properties
Functions
| Name | Declaration |
AddItem | function AddItem(MobileMenuListItem Item, Int Index = -1) |
CalculateSelectedItem | function float CalculateSelectedItem(out SelectedMenuItem Selected, float ScrollAmount, bool bForceZeroAdjustment) |
GetAmountSelected | function float GetAmountSelected(MobileMenuListItem Item) |
GetIconIndexes | function GetIconIndexes(out array IconIndexes) |
GetItemClickPosition | function MobileMenuListItem GetItemClickPosition(out float MouseX, out float MouseY) |
GetNumVisible | function int GetNumVisible() |
GetSelected | function MobileMenuListItem GetSelected() |
GetVisibleIndexOfSelected | function int GetVisibleIndexOfSelected() |
function InitMenuObject(MobilePlayerInput PlayerInput, MobileMenuScene Scene, int ScreenWidth, int ScreenHeight, bool bIsFirstInitialization) |
ItemScrollSize | function int ItemScrollSize(MobileMenuListItem Item) |
Num | function int Num() |
OnTouch | event bool OnTouch(ETouchType EventType, float TouchX, float TouchY, MobileMenuObject ObjectOver, float DeltaTime) |
RenderObject | function RenderObject(canvas Canvas, float DeltaTime) |
SetSelectedItem | function bool SetSelectedItem(int ItemIndex, bool bForceAll = false) |
SetSelectedToVisibleIndex | function int SetSelectedToVisibleIndex(int VisibleIndex) |
UpdateScroll | function 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