Arma Reforger Script API
|
Public Member Functions | |
override void | Init (Widget w, SCR_BaseEditorAttribute attribute) |
Initialize GUI from attribute. | |
override void | SetVariableToDefaultValue (SCR_BaseEditorAttributeVar var) |
override void | SetFromVar (SCR_BaseEditorAttributeVar var) |
Update GUI from attribute variable. | |
SCR_ToolboxComponent | GetToolboxComponent () |
Get toolbox component of the attribute UI. | |
SCR_BaseEditorAttributeFloatStringValues | GetButtonBoxData () |
Get toolbox component of the attribute UI. | |
override void | ToggleButtonSelected (bool selected, int index, bool animated=true) |
override bool | OnChange (Widget w, int x, int y, bool finished) |
override void | HandlerDeattached (Widget w) |
Public Member Functions inherited from SCR_BaseEditorAttributeUIComponent | |
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, 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 | DelayedInit (bool hasIcon, bool hasDescription) |
void | OnSingleButton (SCR_ToolboxComponent toolbox, int index, bool state) |
void | OnSelectableButton (SCR_ToolboxComponent toolbox, int index) |
void | OnMultiSelectButton (SCR_ToolboxComponent toolbox, int index, bool state) |
void | UpdateButtonBorder (int selectedIndex) |
void | DelayedButtonRandomizer (int currentIndex) |
Protected Member Functions inherited from SCR_BaseEditorAttributeUIComponent | |
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_BaseEditorAttributeFloatStringValues SCR_ButtonBoxAttributeUIComponent.GetButtonBoxData | ( | ) |
Get toolbox component of the attribute UI.
SCR_ToolboxComponent SCR_ButtonBoxAttributeUIComponent.GetToolboxComponent | ( | ) |
Get toolbox component of the attribute UI.
override void SCR_ButtonBoxAttributeUIComponent.HandlerDeattached | ( | Widget | w | ) |
Implements SCR_BaseEditorAttributeUIComponent.
override void SCR_ButtonBoxAttributeUIComponent.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 |
Implements SCR_BaseEditorAttributeUIComponent.
Implemented in SCR_ButtonBoxMultiSelectAttributeUIComponent.
override bool SCR_ButtonBoxAttributeUIComponent.OnChange | ( | Widget | w, |
int | x, | ||
int | y, | ||
bool | finished | ||
) |
Implements SCR_BaseEditorAttributeUIComponent.
Implemented in SCR_ButtonBoxMultiSelectAttributeUIComponent, and SCR_TimePresetsAttributeUIComponent.
|
protected |
Implemented in SCR_ButtonBoxMultiSelectAttributeUIComponent.
|
protected |
|
protected |
override void SCR_ButtonBoxAttributeUIComponent.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 |
Implements SCR_BaseEditorAttributeUIComponent.
Implemented in SCR_ButtonBoxMultiSelectAttributeUIComponent, and SCR_TimePresetsAttributeUIComponent.
override void SCR_ButtonBoxAttributeUIComponent.SetVariableToDefaultValue | ( | SCR_BaseEditorAttributeVar | var | ) |
Implements SCR_BaseEditorAttributeUIComponent.
override void SCR_ButtonBoxAttributeUIComponent.ToggleButtonSelected | ( | bool | selected, |
int | index, | ||
bool | animated = true |
||
) |
Implements SCR_BaseEditorAttributeUIComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |