|
Arma Reforger Script API
|
Base class for all final Reforger interactive elements. More...
Public Member Functions | |
| 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) |
| 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 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. | |
Static Public Attributes | |
| static const float | START_ANIMATION_RATE = 10001 |
| static const float | START_ANIMATION_PERIOD = 250 |
Protected Member Functions | |
| void | OnEnabled (bool animate) |
| void | OnDisabled (bool animate) |
| bool | IsChildWidget (Widget parent, Widget child) |
| void | SetAnimationRate () |
| void | PlaySound (string sound) |
Protected Attributes | |
| string | m_sSoundHovered |
| string | m_sSoundClicked |
| string | m_sSoundContainerClosed |
| float | m_fAnimationTime |
| bool | m_bMouseOverToFocus |
| float | m_fDisabledOpacity |
| float | m_fAnimationRate |
| ref Managed | m_UserData |
Protected Attributes inherited from SCR_ScriptedWidgetComponent | |
| Widget | m_wRoot |
Additional Inherited Members | |
Public Attributes inherited from SCR_ScriptedWidgetComponent | |
| ref ScriptInvoker | m_OnClick = new ScriptInvoker |
Base class for all final Reforger interactive elements.
| string SCR_WLibComponentBase.GetClickedSound | ( | ) |
| Managed SCR_WLibComponentBase.GetData | ( | ) |
Get stored data.
| string SCR_WLibComponentBase.GetHoverSound | ( | ) |
| override void SCR_WLibComponentBase.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ScriptedWidgetComponent.
Implemented in SCR_AddonLinePresetComponent, SCR_ButtonBaseComponent, SCR_ButtonCheckerComponent, SCR_ButtonComponent, SCR_ButtonImageComponent, SCR_ButtonLegendComponent, SCR_ButtonSpecializationProgressComponent, SCR_ButtonSplitComponent, SCR_ButtonTextComponent, SCR_ChangeableComponentBase, SCR_ComboBoxComponent, SCR_ComboBoxIconComponent, SCR_ContentEntryComponent, SCR_DeployButton, SCR_DeployButtonBase, SCR_EditBoxComponent, SCR_EditBoxSearchComponent, SCR_FactionButton, SCR_GroupButton, SCR_GroupFlagImageComponent, SCR_GroupTileButton, SCR_ImageGalleryButtonComponent, SCR_ImagePickerComponent, SCR_InputButtonComponent, SCR_InventorySpinBoxComponent, SCR_LoadingCircleComponent, SCR_LoadoutButton, SCR_ModdedScenarioComponent, SCR_ModEntryComponent, SCR_MultipleStatesButtonComponent, SCR_PagingButtonComponent, SCR_SaveImageGalleryPickerComponent, SCR_ScrollBarComponent, SCR_ScrollBarHandleComponent, SCR_SelectableButtonComponent, SCR_SelectableTileButtonComponent, SCR_ServerDetailEntryComponent, SCR_ServerSortingComponent, SCR_SliderComponent, SCR_SpinBoxComponent, SCR_SpinBoxPagingComponent, SCR_ToolboxComponent, SCR_ToolboxMultilineComponent, SCR_ToolMenuButtonComponent, and SCR_WidgetHintComponent.
|
protected |
| bool SCR_WLibComponentBase.IsEnabled | ( | ) |
| override bool SCR_WLibComponentBase.OnClick | ( | Widget | w, |
| int | x, | ||
| int | y, | ||
| int | button ) |
Implements SCR_ScriptedWidgetComponent.
Implemented in SCR_ButtonBaseComponent, SCR_ButtonCheckerComponent, SCR_ButtonLegendComponent, SCR_ButtonSpecializationProgressComponent, SCR_DeployButtonBase, SCR_GroupTileButton, SCR_ImageGalleryButtonComponent, SCR_InputButtonComponent, SCR_InventoryNavigationButtonBack, SCR_MultipleStatesButtonComponent, SCR_PagingButtonComponent, SCR_SelectableButtonComponent, and SCR_SelectableTileButtonComponent.
|
protected |
Implemented in SCR_ComboBoxComponent, and SCR_InputButtonComponent.
|
protected |
Implemented in SCR_ComboBoxComponent, and SCR_InputButtonComponent.
| override bool SCR_WLibComponentBase.OnFocus | ( | Widget | w, |
| int | x, | ||
| int | y ) |
Implemented in SCR_AddonLinePresetComponent, SCR_ButtonBaseComponent, SCR_ButtonComponent, SCR_ButtonLegendComponent, SCR_ChangeableComponentBase, SCR_ComboBoxComponent, SCR_DeployButtonBase, SCR_EditBoxComponent, SCR_GroupTileButton, SCR_InventorySpinBoxComponent, SCR_LoadoutButton, SCR_ModdedScenarioComponent, SCR_ModEntryComponent, SCR_MultipleStatesButtonComponent, SCR_SelectableButtonComponent, SCR_SelectableTileButtonComponent, SCR_SliderComponent, SCR_SpawnPointSpinBox, SCR_SpinBoxComponent, and SCR_ToolboxComponent.
| override bool SCR_WLibComponentBase.OnMouseEnter | ( | Widget | w, |
| int | x, | ||
| int | y ) |
Implemented in SCR_ButtonBaseComponent, SCR_ButtonComponent, SCR_ButtonImageComponent, SCR_ButtonLegendComponent, SCR_ButtonSpecializationProgressComponent, SCR_ButtonSplitComponent, SCR_ButtonTextComponent, SCR_ChangeableComponentBase, SCR_EditBoxSearchComponent, SCR_InputButtonComponent, SCR_MultipleStatesButtonComponent, SCR_PagingButtonComponent, SCR_ScrollBarHandleComponent, SCR_SelectableButtonComponent, SCR_SelectableTileButtonComponent, and SCR_ToolboxComponent.
|
protected |
|
protected |
| void SCR_WLibComponentBase.SetClickedSound | ( | string | soundClicked | ) |
| void SCR_WLibComponentBase.SetData | ( | Managed | data | ) |
Store custom data.
| [in] | data |
| void SCR_WLibComponentBase.SetDisabledOpacity | ( | float | newDisabledOpacity | ) |
| void SCR_WLibComponentBase.SetEnabled | ( | bool | enabled, |
| bool | animate = true ) |
Implemented in SCR_DeployButtonBase, SCR_InputButtonComponent, and SCR_PagingButtonComponent.
| void SCR_WLibComponentBase.SetHoverSound | ( | string | soundHover | ) |
| void SCR_WLibComponentBase.SetMouseOverToFocus | ( | bool | mouseOverToFocus | ) |
|
static |
| void SCR_WLibComponentBase.SetVisible | ( | bool | visible, |
| bool | animate = true ) |
Implemented in SCR_WidgetHintComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |