|
Arma Reforger Script API
|
Public Member Functions | |
| SCR_BaseEditorAttribute | GetAttribute () |
| Get attribute this component represents. | |
| void | SetFromVar (SCR_BaseEditorAttributeVar var) |
| Update GUI from attribute variable. | |
| void | Init (Widget w, SCR_BaseEditorAttribute attribute) |
| Initialize GUI from attribute. | |
| override bool | OnChange (Widget w, bool finished) |
| bool | OnChangeInternal (Widget w, int x, int y, bool finished) |
| void | ShowButtonDescription (SCR_AttributeButtonUIComponent button, bool showButtonDescription, string buttonDescription=string.Empty) |
| ScriptInvoker | GetOnAttributeChanged () |
| Called on attribute changed via UI. | |
| ScriptInvoker | GetOnAttributeUIFocusChanged () |
| Called on focus changes. | |
| ScriptInvoker | GetOnEnabledByAttribute () |
| Called when another attribute enables/disables the attribute. | |
| ScriptInvoker | GetOnMouseLeave () |
| Called when the mouse leaves the attribute. | |
| bool | GetTickboxEnabled () |
| Get if tickbox is enabled or not. | |
| void | ToggleEnableAttributeTickbox () |
| Toggle tickbox UI, flipping the tickbox from true to false and viceversa. | |
| bool | GetIsFocused () |
| Get if attribute is focused /return if attribute is focused. | |
| 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) |
| override void | HandlerDeattached (Widget w) |
Protected Member Functions | |
| void | SetFromVarExternal (SCR_BaseEditorAttributeVar var, bool isReset) |
| void | SetFromVarOrDefault () |
| void | ToggleButtonSelected (bool selected, int index, bool animated=true) |
| void | SetAsSubAttribute () |
| void | AttributeValueChanged () |
| void | ShowAttributeDescription () |
| void | HideAttributeDescription () |
| void | SetVariableToDefaultValue (SCR_BaseEditorAttributeVar var) |
| void | ToggleEnableAttribute (bool enabled) |
| void | ToggleEnable (bool enabled) |
| Toggle UI enabled. | |
| void | OnTickboxToggleChanged (bool toggle) |
| void | GamePadLockedSelectorFocusChanged (bool newFocus) |
| void | OnFocusAttributeWidget (Widget w) |
| Callback for focus of widget used. | |
| void | SetGamepadLockSelectorActive (bool isGamepad) |
|
protected |
|
protected |
| SCR_BaseEditorAttribute SCR_BaseEditorAttributeUIComponent.GetAttribute | ( | ) |
Get attribute this component represents.
| bool SCR_BaseEditorAttributeUIComponent.GetIsFocused | ( | ) |
Get if attribute is focused /return if attribute is focused.
| ScriptInvoker SCR_BaseEditorAttributeUIComponent.GetOnAttributeChanged | ( | ) |
Called on attribute changed via UI.
| ScriptInvoker SCR_BaseEditorAttributeUIComponent.GetOnAttributeUIFocusChanged | ( | ) |
Called on focus changes.
For gamepad to know if the attribute is being focused on
| ScriptInvoker SCR_BaseEditorAttributeUIComponent.GetOnEnabledByAttribute | ( | ) |
Called when another attribute enables/disables the attribute.
| ScriptInvoker SCR_BaseEditorAttributeUIComponent.GetOnMouseLeave | ( | ) |
Called when the mouse leaves the attribute.
| bool SCR_BaseEditorAttributeUIComponent.GetTickboxEnabled | ( | ) |
Get if tickbox is enabled or not.
| override void SCR_BaseEditorAttributeUIComponent.HandlerDeattached | ( | Widget | w | ) |
|
protected |
| void SCR_BaseEditorAttributeUIComponent.Init | ( | Widget | w, |
| SCR_BaseEditorAttribute | attribute ) |
Initialize GUI from attribute.
To be overridden by inherited classes.
| w | Widget this component is attached to |
| attribute | Editor attribute this component represents |
Implemented in SCR_ButtonBoxAttributeUIComponent, SCR_ButtonBoxMultiSelectAttributeUIComponent, SCR_CheckboxEditorAttributeUIComponent, SCR_DateAttributeUIComponent, SCR_DropdownEditorAttributeUIComponent, SCR_GameOverTypeAttributeUIComponent, SCR_PositionEditorAttributeUIComponent, SCR_SliderBloodAttributeComponent, SCR_SliderEditorAttributeUIComponent, and SCR_SpinboxEditorAttributeUIComponent.
| override bool SCR_BaseEditorAttributeUIComponent.OnChange | ( | Widget | w, |
| bool | finished ) |
| bool SCR_BaseEditorAttributeUIComponent.OnChangeInternal | ( | Widget | w, |
| int | x, | ||
| int | y, | ||
| bool | finished ) |
Implemented in SCR_ButtonBoxAttributeUIComponent, SCR_ButtonBoxMultiSelectAttributeUIComponent, SCR_CheckboxEditorAttributeUIComponent, SCR_DateAttributeUIComponent, SCR_DropdownEditorAttributeUIComponent, SCR_PositionEditorAttributeUIComponent, SCR_SliderBloodAttributeComponent, SCR_SliderEditorAttributeUIComponent, SCR_SpinboxEditorAttributeUIComponent, and SCR_TimePresetsAttributeUIComponent.
| override bool SCR_BaseEditorAttributeUIComponent.OnFocus | ( | Widget | w, |
| int | x, | ||
| int | y ) |
|
protected |
Callback for focus of widget used.
| override bool SCR_BaseEditorAttributeUIComponent.OnFocusLost | ( | Widget | w, |
| int | x, | ||
| int | y ) |
| override bool SCR_BaseEditorAttributeUIComponent.OnMouseEnter | ( | Widget | w, |
| int | x, | ||
| int | y ) |
Implemented in SCR_DateAttributeUIComponent.
| override bool SCR_BaseEditorAttributeUIComponent.OnMouseLeave | ( | Widget | w, |
| Widget | enterW, | ||
| int | x, | ||
| int | y ) |
|
protected |
|
protected |
| void SCR_BaseEditorAttributeUIComponent.SetFromVar | ( | SCR_BaseEditorAttributeVar | var | ) |
Update GUI from attribute variable.
Called when attributes are initialized in a dialog or when they are reset based on user request.
| var | Attribute variable |
Implemented in SCR_ButtonBoxAttributeUIComponent, SCR_ButtonBoxMultiSelectAttributeUIComponent, SCR_CheckboxEditorAttributeUIComponent, SCR_DateAttributeUIComponent, SCR_DropdownEditorAttributeUIComponent, SCR_PositionEditorAttributeUIComponent, SCR_SliderBloodAttributeComponent, SCR_SliderEditorAttributeUIComponent, SCR_SpinboxEditorAttributeUIComponent, and SCR_TimePresetsAttributeUIComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void SCR_BaseEditorAttributeUIComponent.ShowButtonDescription | ( | SCR_AttributeButtonUIComponent | button, |
| bool | showButtonDescription, | ||
| string | buttonDescription = string::Empty ) |
|
protected |
Implemented in SCR_ButtonBoxAttributeUIComponent.
|
protected |
Toggle UI enabled.
Disabled will delete the var if is conflicting var /param bool enable true or false
|
protected |
Implemented in SCR_OverrideModesEditorAttributeUIComponent.
| void SCR_BaseEditorAttributeUIComponent.ToggleEnableAttributeTickbox | ( | ) |
Toggle tickbox UI, flipping the tickbox from true to false and viceversa.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |