|
Arma Reforger Script API
|
Public Member Functions | |
| override void | HandlerAttached (Widget w) |
| override void | HandlerDeattached (Widget w) |
| override bool | OnFocus (Widget w, int x, int y) |
| override bool | OnFocusLost (Widget w, int x, int y) |
| override bool | SetCurrentItem (int i, bool playSound=false, bool animate=false) |
| void | CreateEntries () |
| void | OpenList () |
| void | CloseList () |
| override int | AddItem (string item, bool last=false, Managed data=null) |
| override void | ClearAll () |
| override void | RemoveItem (int item, bool last=false) |
| void | SetElementWidgetEnabled (int index, bool enable, bool animate=true) |
| Set given element index as enabled or disabled. | |
| int | GetElementWidgets (notnull array< Widget > elementWidgets) |
| Get elementWidgets array. | |
| bool | IsOpened () |
Public Member Functions inherited from SCR_SelectionWidgetComponent | |
| int | GetCurrentIndex () |
| string | GetCurrentItem () |
| Managed | GetCurrentItemData () |
| string | GetItemName (int item) |
| Managed | GetItemData (int item) |
| int | GetNumItems () |
Public Member Functions inherited from SCR_ChangeableComponentBase | |
| override bool | OnMouseEnter (Widget w, int x, int y) |
| override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
| TextWidget | GetLabel () |
| void | SetLabel (string label) |
| void | UseLabel (bool use) |
| bool | IsUsingLabel () |
| Widget | GetLabelWidget () |
| If label is not used, label widget might not exist at all! | |
| void | SetSizeWithLabel (float size) |
| void | SetSizeWithoutLabel (float size) |
Public Member Functions inherited from SCR_WLibComponentBase | |
| override bool | OnClick (Widget w, int x, int y, int button) |
| void | SetHoverSound (string soundHover) |
| void | SetClickedSound (string soundClicked) |
| string | GetHoverSound () |
| string | GetClickedSound () |
| void | SetEnabled (bool enabled, bool animate=true) |
| void | SetVisible (bool visible, bool animate=true) |
| bool | IsEnabled () |
| void | SetMouseOverToFocus (bool mouseOverToFocus) |
| void | SetDisabledOpacity (float newDisabledOpacity) |
| void | SetData (Managed data) |
| Store custom data. | |
| Managed | GetData () |
| Get stored data. | |
Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
| Widget | GetRootWidget () |
| bool | IsVisible () |
Static Public Member Functions | |
| static SCR_ComboBoxComponent | GetComboBoxComponent (string name, Widget parent, bool searchAllChildren=true) |
| Static method to easily find component by providing name and parent. | |
Static Public Member Functions inherited from SCR_SelectionWidgetComponent | |
| static SCR_SelectionWidgetComponent | GetSelectionComponent (string name, Widget parent, bool searchAllChildren=true) |
Static Public Member Functions inherited from SCR_WLibComponentBase | |
| static bool | SetTexture (ImageWidget widget, ResourceName texture, string image="") |
Static Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
| static SCR_ScriptedWidgetComponent | GetComponent (TypeName componentType, string name, Widget parent, bool searchAllChildren=true) |
| Base method for component lookup through the widget library. | |
Public Attributes | |
| float | m_fMaxListHeight |
| bool | m_bCreateListBelow |
| ResourceName | m_sListRootLayout |
| ResourceName | m_sElementLayout |
| float | m_fItemsGap |
| float | m_fExtraPaddingLeft |
| float | m_fExtraPaddingRight |
| ref ScriptInvoker | m_OnOpened = new ScriptInvoker() |
| ref ScriptInvoker | m_OnClosed = new ScriptInvoker() |
Public Attributes inherited from SCR_SelectionWidgetComponent | |
| ref array< string > | m_aElementNames |
| int | m_iSelectedItem |
Public Attributes inherited from SCR_ChangeableComponentBase | |
| ref ScriptInvoker | m_OnChanged = new ScriptInvoker() |
Public Attributes inherited from SCR_ScriptedWidgetComponent | |
| ref ScriptInvoker | m_OnClick = new ScriptInvoker |
Protected Member Functions | |
| bool | OnHandlerClicked () |
| void | OnHandlerFocus () |
| void | OnHandlerFocusLost () |
| void | OnHandlerHovered () |
| void | OnHandlerUnhovered () |
| void | OnMenuFocusLost (ChimeraMenuBase menu) |
| override void | OnEnabled (bool animate) |
| override void | OnDisabled (bool animate) |
| void | UpdateName () |
| void | CheckElementsInitialized () |
| void | OnCreateElement (Widget elementWidget, int index) |
| void | OnMenuBack () |
Protected Member Functions inherited from SCR_ChangeableComponentBase | |
| void | SetupLabel () |
| void | ClearLabel () |
Protected Member Functions inherited from SCR_WLibComponentBase | |
| bool | IsChildWidget (Widget parent, Widget child) |
| void | SetAnimationRate () |
| void | PlaySound (string sound) |
Static Protected Attributes | |
| const int | INITIALIZATION_CHECK_FREQUENCY = 10 |
Additional Inherited Members | |
Static Public Attributes inherited from SCR_WLibComponentBase | |
| static const float | START_ANIMATION_RATE = 10001 |
| static const float | START_ANIMATION_PERIOD = 250 |
| override int SCR_ComboBoxComponent.AddItem | ( | string | item, |
| bool | last = false, | ||
| Managed | data = null ) |
Implements SCR_SelectionWidgetComponent.
Implemented in SCR_ComboBoxIconComponent.
|
protected |
| override void SCR_ComboBoxComponent.ClearAll | ( | ) |
Implements SCR_SelectionWidgetComponent.
Implemented in SCR_ComboBoxIconComponent.
| void SCR_ComboBoxComponent.CloseList | ( | ) |
| void SCR_ComboBoxComponent.CreateEntries | ( | ) |
|
static |
Static method to easily find component by providing name and parent.
Searching all children will go through whole hierarchy, instead of immediate chidren
| int SCR_ComboBoxComponent.GetElementWidgets | ( | notnull array< Widget > | elementWidgets | ) |
Get elementWidgets array.
| [out] | elementWidgets | array of Widgets taken from m_aElementWidgets |
| override void SCR_ComboBoxComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ChangeableComponentBase.
Implemented in SCR_ComboBoxIconComponent.
| override void SCR_ComboBoxComponent.HandlerDeattached | ( | Widget | w | ) |
| bool SCR_ComboBoxComponent.IsOpened | ( | ) |
|
protected |
Implemented in SCR_ComboBoxIconComponent.
|
protected |
Implements SCR_WLibComponentBase.
|
protected |
Implements SCR_WLibComponentBase.
| override bool SCR_ComboBoxComponent.OnFocus | ( | Widget | w, |
| int | x, | ||
| int | y ) |
Implements SCR_ChangeableComponentBase.
| override bool SCR_ComboBoxComponent.OnFocusLost | ( | Widget | w, |
| int | x, | ||
| int | y ) |
Implements SCR_ChangeableComponentBase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void SCR_ComboBoxComponent.OpenList | ( | ) |
| override void SCR_ComboBoxComponent.RemoveItem | ( | int | item, |
| bool | last = false ) |
Implements SCR_SelectionWidgetComponent.
Implemented in SCR_ComboBoxIconComponent.
| override bool SCR_ComboBoxComponent.SetCurrentItem | ( | int | i, |
| bool | playSound = false, | ||
| bool | animate = false ) |
Implements SCR_SelectionWidgetComponent.
| void SCR_ComboBoxComponent.SetElementWidgetEnabled | ( | int | index, |
| bool | enable, | ||
| bool | animate = true ) |
Set given element index as enabled or disabled.
| [in] | index | Given index of element |
| [in] | enable | If it should be enabled or disabled |
| [in] | animate | Should it animate on enabled/disabled changed? |
|
protected |
Implemented in SCR_ComboBoxIconComponent.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bool SCR_ComboBoxComponent.m_bCreateListBelow |
|
protected |
|
protected |
|
protected |
|
protected |
| float SCR_ComboBoxComponent.m_fExtraPaddingLeft |
| float SCR_ComboBoxComponent.m_fExtraPaddingRight |
| float SCR_ComboBoxComponent.m_fItemsGap |
|
protected |
|
protected |
| float SCR_ComboBoxComponent.m_fMaxListHeight |
|
protected |
|
protected |
| ref ScriptInvoker SCR_ComboBoxComponent.m_OnClosed = new ScriptInvoker() |
| ref ScriptInvoker SCR_ComboBoxComponent.m_OnOpened = new ScriptInvoker() |
|
protected |
| ResourceName SCR_ComboBoxComponent.m_sElementLayout |
| ResourceName SCR_ComboBoxComponent.m_sListRootLayout |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |