| 
    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) | 
| void | SetLoadout (SCR_BasePlayerLoadout loadout) | 
| Assign loadout associated with this button.   | |
| void | SetPlayer (int pid) | 
| Set player id associated with this button and update the visuals.   | |
| int | GetPlayerId () | 
| bool | IsSelected () | 
| override void | SetSelected (bool selected) | 
| Visually set the button as selected.   | |
| SCR_BasePlayerLoadout | GetLoadout () | 
| return player loadout   | |
| SCR_EditableEntityUIInfo | GetUIInfo () | 
  Public Member Functions inherited from SCR_DeployButtonBase | |
| Widget | GetList () | 
| GridLayoutWidget | GetGridList () | 
| void | ExpandList () | 
| void | CollapseList () | 
| void | SetParentHandler (SCR_DeployRequestUIBaseComponent parent) | 
| void | HideTooltip () | 
| void | Update (float dt) | 
| void | Lock (bool loadingAnim=false) | 
| Lock the button (eg. during a request)   | |
| void | Unlock () | 
| Unlock the button (eg. after receiving a request response)   | |
| void | SetFocused () | 
| Set the button focused.   | |
| override bool | OnClick (Widget w, int x, int y, int button) | 
| override void | SetEnabled (bool enabled, bool animate=true) | 
| void | SetShouldUnlock (bool shouldUnlock) | 
| Marks if the buttons should be unlocked when calling the Unlock() method.   | |
| void | SetTooltipAvailable (bool available) | 
| Set if tooltip should be shown.   | |
  Public Member Functions inherited from SCR_ButtonImageComponent | |
| override bool | OnMouseEnter (Widget w, int x, int y) | 
| override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) | 
| ImageWidget | GetImageWidget () | 
| void | SetImage (ResourceName texture, bool fromLocalStorage=false) | 
| void | SetImage (ResourceName imageSet, string imageName) | 
| string | GetImage (out string imageSet) | 
  Public Member Functions inherited from SCR_ButtonBaseComponent | |
| void | SetToggled (bool toggled, bool animate=true, bool invokeChange=true, bool instant=false) | 
| bool | IsToggled () | 
| void | SetToggleable (bool togglable) | 
| bool | GetToggleable () | 
| void | ShowBorder (bool show, bool animate=true) | 
| bool | IsBorderShown () | 
| void | SetBackgroundColors (Color defColor=null, Color hoverColor=null, Color selectColor=null, Color selectHoverColor=null, Color clickColor=null) | 
| Alternate way of setting button background colors through script.   | |
| void | ColorizeBackground (bool animate=true) | 
  Public Member Functions inherited from SCR_WLibComponentBase | |
| void | SetHoverSound (string soundHover) | 
| void | SetClickedSound (string soundClicked) | 
| string | GetHoverSound () | 
| string | GetClickedSound () | 
| 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 () | 
Protected Member Functions | |
| void | OnLeaderChanged (int groupId, int pid) | 
| Update visuals when group leader changes.   | |
| void | SetIsLeader (bool leader) | 
| void | SetPlayerName (string name) | 
  Protected Member Functions inherited from SCR_DeployButtonBase | |
| bool | ShouldUnlock () | 
| Return true when the button should be unlocked when calling the Unlock() method.   | |
| bool | ShouldShowTooltip () | 
| Get if tooltip should be shown.   | |
| void | OnTooltipShow (SCR_ScriptedWidgetTooltip tooltip) | 
  Protected Member Functions inherited from SCR_ButtonBaseComponent | |
| void | OnMenuSelect () | 
| void | MenuSelectBase () | 
| void | FindParentMenu () | 
| Finds the parent menu of this component.   | |
| bool | IsParentMenuFocused () | 
| Returns true if parent menu is focused, or if there is no parent menu.   | |
  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) | 
Additional Inherited Members | |
  Static Public Member Functions inherited from SCR_ButtonImageComponent | |
| static SCR_ButtonImageComponent | GetButtonImage (string name, Widget parent, bool searchAllChildren=true) | 
  Static Public Member Functions inherited from SCR_ButtonBaseComponent | |
| static SCR_ButtonBaseComponent | GetButtonBase (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 inherited from SCR_ButtonImageComponent | |
| ResourceName | m_sTexture | 
| string | m_sImageName | 
| ImageWidget | m_wImage | 
| ref ScriptInvoker< Widget > | m_OnMouseEnter = new ScriptInvoker() | 
| ref ScriptInvoker< Widget > | m_OnMouseLeave = new ScriptInvoker() | 
  Public Attributes inherited from SCR_ButtonBaseComponent | |
| bool | m_bCanBeToggled | 
| bool | m_bUseColorization | 
| ref Color | m_BackgroundDefault | 
| ref Color | m_BackgroundHovered | 
| ref Color | m_BackgroundSelected | 
| ref Color | m_BackgroundSelectedHovered | 
| ref Color | m_BackgroundClicked | 
| bool | m_bShowBorderOnFocus | 
| bool | m_bShowBackgroundOnFocus | 
| bool | m_bNoBorderAnimation | 
| bool | m_bNoBackgroundAnimation | 
| bool | m_bShowBorderOnHover | 
| Widget | m_wBackground | 
| Widget | m_wBorder | 
| ref ScriptInvoker | m_OnClicked = new ScriptInvoker() | 
| ref ScriptInvoker | m_OnToggled = new ScriptInvoker() | 
| ref ScriptInvoker< Widget > | m_OnFocus = new ScriptInvoker<Widget>() | 
| ref ScriptInvoker< Widget > | m_OnFocusLost = new ScriptInvoker<Widget>() | 
| ref ScriptInvoker | m_OnShowBorder = 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 | 
  Static Protected Attributes inherited from SCR_DeployButtonBase | |
| static SCR_DeployButtonBase | s_ExpandedList | 
| SCR_BasePlayerLoadout SCR_LoadoutButton.GetLoadout | ( | ) | 
return player loadout
| int SCR_LoadoutButton.GetPlayerId | ( | ) | 
| SCR_EditableEntityUIInfo SCR_LoadoutButton.GetUIInfo | ( | ) | 
| override void SCR_LoadoutButton.HandlerAttached | ( | Widget | w | ) | 
Implements SCR_DeployButtonBase.
| override void SCR_LoadoutButton.HandlerDeattached | ( | Widget | w | ) | 
Implements SCR_DeployButtonBase.
| bool SCR_LoadoutButton.IsSelected | ( | ) | 
| override bool SCR_LoadoutButton.OnFocus | ( | Widget | w, | 
| int | x, | ||
| int | y ) | 
Implements SCR_DeployButtonBase.
| override bool SCR_LoadoutButton.OnFocusLost | ( | Widget | w, | 
| int | x, | ||
| int | y ) | 
Implements SCR_DeployButtonBase.
      
  | 
  protected | 
Update visuals when group leader changes.
      
  | 
  protected | 
| void SCR_LoadoutButton.SetLoadout | ( | SCR_BasePlayerLoadout | loadout | ) | 
Assign loadout associated with this button.
| void SCR_LoadoutButton.SetPlayer | ( | int | pid | ) | 
Set player id associated with this button and update the visuals.
      
  | 
  protected | 
| override void SCR_LoadoutButton.SetSelected | ( | bool | selected | ) | 
Visually set the button as selected.
Implements SCR_DeployButtonBase.
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected |