-
Notifications
You must be signed in to change notification settings - Fork 6
Home
new Point(X, Y)
- Properties
X: number
Y: number
new Color(Red, Green, Blue, Alpha = 255)
- Properties
R: number
G: number
B: number
A: number
new Menu(Title, Subtitle, Offset, spriteLibrary = 'commonmenu', spriteName = 'interaction_bgd')
- Functions
AddItem(UIMenuItem)
RemoveItem()
BindMenuToItem(NativeUI, UIMenuItem)
ReleaseMenuFromItem(UIMenuItem)
RefreshIndex()
SetMenuWidthOffset(widthOffset: number)
Clear()
Open()
Close(closeChildren: boolean = false)
- Events
ItemSelect: (UIMenuItem, Index)
IndexChange: (Index, UIMenuItem)
ListChange: (UIMenuListItem, Index)
DynamicListChange: (UIMenuListItem, Index)
CheckboxChange: (UIMenuCheckboxItem, Checked)
SliderChange: (UIMenuSliderItem, Index, Value)
MenuOpen
MenuClose: (forced: boolean)
MenuChange: (Menu, forward: boolean)
- Properties
-
CurrentSelection
: Number (index) -
Visible
: boolean -
TitleScale
: Number (float / menu title scale)
new UIMenuItem(caption, description = '', data = null)
- Functions
SetLeftBadge(BadgeStyle)
SetRightBadge(BadgeStyle)
SetRightLabel(Text)
- Properties
Text: String
Description: String
Enabled: boolean
Selected: boolean
Hovered: boolean
Data: any
BackColor: Color
HighlightedBackColor: Color
ForeColor: Color
HighlightedForeColor: Color
Offset: Point
Parent: Menu
new UIMenuListItem(caption, description = '', collection = new ItemsCollection([]), startIndex = 0, data = null)
(Extends UIMenuItem
)
Does not support SetRightBadge
and SetRightLabel
Inherits UIMenuItem
- Properties
Collection: ItemsCollection
SelectedItem: string
SelectedValue: string
- Events
-
ListChange: (Checked)
~~
new UIMenuDynamicListItem(caption, description = '', lowerThreshold = 0, upperThreshold = 10, startValue = 0, data = null)
(Extends UIMenuItem
)
Does not support SetRightBadge
and SetRightLabel
Inherits UIMenuItem
- Properties
PreCaptionText: string
LeftMoveThreshold: number
RightMoveThreshold: number
LowerThreshold: number
UpperThreshold: number
SelectedValue: number
- Menu Event
-
DynamicListChange: (Checked)
~~
new UIMenuCheckboxItem(caption, checked = false, description = '', data = null)
(Extends UIMenuItem
)
Does not support SetRightBadge
and SetRightLabel
Inherits UIMenuItem
- Properties
Checked: boolean
- Menu Event
-
CheckboxChange: (Checked)
~~
new UIMenuSliderItem(caption, Items, Startindex, description = '', divider = false, data = null)
(Extends UIMenuItem
)
Does not support SetRightBadge
and SetRightLabel
Inherits UIMenuItem
- Properties
Index: number
- Functions
IndexToItem: any