Arma Reforger Script API
|
Public Member Functions | |
override void | HandlerAttached (Widget w) |
override bool | OnFocus (Widget w, int x, int y) |
override bool | OnFocusLost (Widget w, int x, int y) |
override int | AddItem (string item, bool last=false, Managed data=null) |
override void | RemoveItem (int item, bool last=false) |
override void | ClearAll () |
override bool | SetCurrentItem (int i, bool playSound=false, bool animate=false) |
void | AddActionListeners () |
void | RemoveActionListeners () |
void | SetKeepActionListeners (bool keep) |
void | SetCycleMode (bool cycle) |
ScriptInvoker | GetOnLeftArrowClick () |
ScriptInvoker | GetOnRightArrowClick () |
Public Member Functions inherited from SCR_SelectionWidgetComponent | |
int | AddItem (string item, bool last=false, Managed data=null) |
void | ClearAll () |
void | RemoveItem (int item, bool last=false) |
int | GetCurrentIndex () |
string | GetCurrentItem () |
Managed | GetCurrentItemData () |
string | GetItemName (int item) |
Managed | GetItemData (int item) |
int | GetNumItems () |
bool | SetCurrentItem (int i, bool playSound=false, bool animate=false) |
Public Member Functions inherited from SCR_ChangeableComponentBase | |
override void | HandlerAttached (Widget w) |
override bool | OnFocus (Widget w, int x, int y) |
override bool | OnFocusLost (Widget w, int x, int y) |
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 void | HandlerAttached (Widget w) |
override bool | OnClick (Widget w, int x, int y, int button) |
override bool | OnMouseEnter (Widget w, int x, int y) |
override bool | OnFocus (Widget w, int x, int y) |
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) |
Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
override void | HandlerAttached (Widget w) |
override bool | OnClick (Widget w, int x, int y, int button) |
Widget | GetRootWidget () |
bool | IsVisible () |
Static Public Member Functions | |
static SCR_SpinBoxComponent | GetSpinBoxComponent (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. | |
Protected Member Functions | |
bool | SetCurrentItem_Internal (int i, bool playSound, bool animate, bool invokeOnChanged) |
void | CreateHintBar () |
void | UpdateHintBar (int currentIndex, int oldIndex) |
void | SetInitialState (bool invokeOnChanged=true) |
void | EnableArrows (int selected, bool animate) |
Based on cycle mode set which arrow should be enabled at given selection. | |
void | OnLeftArrowClick () |
void | OnRightArrowClick () |
void | OnMenuLeft () |
void | OnMenuRight () |
Protected Member Functions inherited from SCR_ChangeableComponentBase | |
void | SetupLabel () |
void | ClearLabel () |
Protected Member Functions inherited from SCR_WLibComponentBase | |
void | OnEnabled (bool animate) |
void | OnDisabled (bool animate) |
bool | IsChildWidget (Widget parent, Widget child) |
void | SetAnimationRate () |
void | PlaySound (string sound) |
Static Protected Attributes | |
static const ref Color | COLOR_HINT_SELECTED = UIColors.CONTRAST_COLOR |
static const ref Color | COLOR_HINT_DESELECTED = UIColors.WHITE_HOVERED |
Additional Inherited Members | |
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 |
Static Public Attributes inherited from SCR_WLibComponentBase | |
static const float | START_ANIMATION_RATE = 10001 |
static const float | START_ANIMATION_PERIOD = 250 |
void SCR_SpinBoxComponent.AddActionListeners | ( | ) |
override int SCR_SpinBoxComponent.AddItem | ( | string | item, |
bool | last = false , |
||
Managed | data = null |
||
) |
Implements SCR_SelectionWidgetComponent.
override void SCR_SpinBoxComponent.ClearAll | ( | ) |
Implements SCR_SelectionWidgetComponent.
Implemented in SCR_SpawnPointSpinBox.
|
protected |
|
protected |
Based on cycle mode set which arrow should be enabled at given selection.
ScriptInvoker SCR_SpinBoxComponent.GetOnLeftArrowClick | ( | ) |
ScriptInvoker SCR_SpinBoxComponent.GetOnRightArrowClick | ( | ) |
|
static |
Static method to easily find component by providing name and parent.
Searching all children will go through whole hierarchy, instead of immediate chidren
override void SCR_SpinBoxComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ChangeableComponentBase.
Implemented in SCR_InventorySpinBoxComponent.
override bool SCR_SpinBoxComponent.OnFocus | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
Implements SCR_ChangeableComponentBase.
Implemented in SCR_InventorySpinBoxComponent, and SCR_SpawnPointSpinBox.
override bool SCR_SpinBoxComponent.OnFocusLost | ( | Widget | w, |
int | x, | ||
int | y | ||
) |
Implements SCR_ChangeableComponentBase.
Implemented in SCR_InventorySpinBoxComponent, and SCR_SpawnPointSpinBox.
|
protected |
|
protected |
Implemented in SCR_InventorySpinBoxComponent.
|
protected |
Implemented in SCR_InventorySpinBoxComponent.
|
protected |
void SCR_SpinBoxComponent.RemoveActionListeners | ( | ) |
override void SCR_SpinBoxComponent.RemoveItem | ( | int | item, |
bool | last = false |
||
) |
Implements SCR_SelectionWidgetComponent.
Implemented in SCR_SpawnPointSpinBox.
override bool SCR_SpinBoxComponent.SetCurrentItem | ( | int | i, |
bool | playSound = false , |
||
bool | animate = false |
||
) |
Implements SCR_SelectionWidgetComponent.
Implemented in SCR_TutorialFastTravelSpinBox.
|
protected |
void SCR_SpinBoxComponent.SetCycleMode | ( | bool | cycle | ) |
|
protected |
void SCR_SpinBoxComponent.SetKeepActionListeners | ( | bool | keep | ) |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |