Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ButtonBaseComponent Class Reference

Base class for any button, regardless its own content. More...

Inheritance diagram for SCR_ButtonBaseComponent:
SCR_WLibComponentBase SCR_ButtonComponent SCR_ButtonImageComponent SCR_ButtonTextComponent SCR_ContentEntryComponent SCR_GroupTileButton SCR_InputButtonComponent SCR_MultipleStatesButtonComponent SCR_PagingButtonComponent SCR_TaskListEntryHandler

Protected 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 OnMouseLeave (Widget w, Widget enterW, int x, int y)
override bool OnFocus (Widget w, int x, int y)
override bool OnFocusLost (Widget w, int x, int y)
void OnMenuSelect ()
void MenuSelectBase ()
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)
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.

Static Protected Member Functions

static SCR_ButtonBaseComponent GetButtonBase (string name, Widget parent, bool searchAllChildren=true)

Protected Attributes

bool m_bIsToggled
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< Widgetm_OnFocus = new ScriptInvoker<Widget>()
ref ScriptInvoker< Widgetm_OnFocusLost = new ScriptInvoker<Widget>()
ref ScriptInvoker m_OnShowBorder = new ScriptInvoker()
MenuBase m_ParentMenu
SCR_SubMenuBase m_ParentSubMenu

Detailed Description

Base class for any button, regardless its own content.

Definition at line 6 of file SCR_ButtonBaseComponent.c.

Member Function Documentation

◆ ColorizeBackground()

void SCR_ButtonBaseComponent::ColorizeBackground ( bool animate = true)
inlineprotected

Definition at line 298 of file SCR_ButtonBaseComponent.c.

◆ FindParentMenu()

void SCR_ButtonBaseComponent::FindParentMenu ( )
inlineprotected

Finds the parent menu of this component.

Definition at line 340 of file SCR_ButtonBaseComponent.c.

◆ GetButtonBase()

SCR_ButtonBaseComponent SCR_ButtonBaseComponent::GetButtonBase ( string name,
Widget parent,
bool searchAllChildren = true )
inlinestaticprotected

Definition at line 330 of file SCR_ButtonBaseComponent.c.

◆ GetToggleable()

bool SCR_ButtonBaseComponent::GetToggleable ( )
inlineprotected

Definition at line 250 of file SCR_ButtonBaseComponent.c.

◆ HandlerAttached()

override void SCR_ButtonBaseComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 66 of file SCR_ButtonBaseComponent.c.

◆ IsBorderShown()

bool SCR_ButtonBaseComponent::IsBorderShown ( )
inlineprotected

Definition at line 270 of file SCR_ButtonBaseComponent.c.

◆ IsParentMenuFocused()

bool SCR_ButtonBaseComponent::IsParentMenuFocused ( )
inlineprotected

Returns true if parent menu is focused, or if there is no parent menu.

Definition at line 366 of file SCR_ButtonBaseComponent.c.

◆ IsToggled()

bool SCR_ButtonBaseComponent::IsToggled ( )
inlineprotected

Definition at line 238 of file SCR_ButtonBaseComponent.c.

◆ MenuSelectBase()

void SCR_ButtonBaseComponent::MenuSelectBase ( )
inlineprotected

Definition at line 211 of file SCR_ButtonBaseComponent.c.

◆ OnClick()

override bool SCR_ButtonBaseComponent::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 89 of file SCR_ButtonBaseComponent.c.

◆ OnFocus()

override bool SCR_ButtonBaseComponent::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 154 of file SCR_ButtonBaseComponent.c.

◆ OnFocusLost()

override bool SCR_ButtonBaseComponent::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 177 of file SCR_ButtonBaseComponent.c.

◆ OnMenuSelect()

void SCR_ButtonBaseComponent::OnMenuSelect ( )
inlineprotected

Definition at line 200 of file SCR_ButtonBaseComponent.c.

◆ OnMouseEnter()

override bool SCR_ButtonBaseComponent::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 103 of file SCR_ButtonBaseComponent.c.

◆ OnMouseLeave()

override bool SCR_ButtonBaseComponent::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 130 of file SCR_ButtonBaseComponent.c.

◆ SetBackgroundColors()

void SCR_ButtonBaseComponent::SetBackgroundColors ( Color defColor = null,
Color hoverColor = null,
Color selectColor = null,
Color selectHoverColor = null,
Color clickColor = null )
inlineprotected

Alternate way of setting button background colors through script.

Definition at line 279 of file SCR_ButtonBaseComponent.c.

◆ SetToggleable()

void SCR_ButtonBaseComponent::SetToggleable ( bool togglable)
inlineprotected

Definition at line 244 of file SCR_ButtonBaseComponent.c.

◆ SetToggled()

void SCR_ButtonBaseComponent::SetToggled ( bool toggled,
bool animate = true,
bool invokeChange = true,
bool instant = false )
inlineprotected

Definition at line 226 of file SCR_ButtonBaseComponent.c.

◆ ShowBorder()

void SCR_ButtonBaseComponent::ShowBorder ( bool show,
bool animate = true )
inlineprotected

Definition at line 256 of file SCR_ButtonBaseComponent.c.

Member Data Documentation

◆ m_BackgroundClicked

ref Color SCR_ButtonBaseComponent::m_BackgroundClicked
protected

Definition at line 30 of file SCR_ButtonBaseComponent.c.

◆ m_BackgroundDefault

ref Color SCR_ButtonBaseComponent::m_BackgroundDefault
protected

Definition at line 18 of file SCR_ButtonBaseComponent.c.

◆ m_BackgroundHovered

ref Color SCR_ButtonBaseComponent::m_BackgroundHovered
protected

Definition at line 21 of file SCR_ButtonBaseComponent.c.

◆ m_BackgroundSelected

ref Color SCR_ButtonBaseComponent::m_BackgroundSelected
protected

Definition at line 24 of file SCR_ButtonBaseComponent.c.

◆ m_BackgroundSelectedHovered

ref Color SCR_ButtonBaseComponent::m_BackgroundSelectedHovered
protected

Definition at line 27 of file SCR_ButtonBaseComponent.c.

◆ m_bIsToggled

bool SCR_ButtonBaseComponent::m_bIsToggled
protected

Definition at line 12 of file SCR_ButtonBaseComponent.c.

◆ m_bNoBackgroundAnimation

bool SCR_ButtonBaseComponent::m_bNoBackgroundAnimation
protected

Definition at line 42 of file SCR_ButtonBaseComponent.c.

◆ m_bNoBorderAnimation

bool SCR_ButtonBaseComponent::m_bNoBorderAnimation
protected

Definition at line 39 of file SCR_ButtonBaseComponent.c.

◆ m_bShowBackgroundOnFocus

bool SCR_ButtonBaseComponent::m_bShowBackgroundOnFocus
protected

Definition at line 36 of file SCR_ButtonBaseComponent.c.

◆ m_bShowBorderOnFocus

bool SCR_ButtonBaseComponent::m_bShowBorderOnFocus
protected

Definition at line 33 of file SCR_ButtonBaseComponent.c.

◆ m_bShowBorderOnHover

bool SCR_ButtonBaseComponent::m_bShowBorderOnHover
protected

Definition at line 45 of file SCR_ButtonBaseComponent.c.

◆ m_bUseColorization

bool SCR_ButtonBaseComponent::m_bUseColorization
protected

Definition at line 15 of file SCR_ButtonBaseComponent.c.

◆ m_OnClicked

ref ScriptInvoker SCR_ButtonBaseComponent::m_OnClicked = new ScriptInvoker()
protected

Definition at line 51 of file SCR_ButtonBaseComponent.c.

◆ m_OnFocus

ref ScriptInvoker<Widget> SCR_ButtonBaseComponent::m_OnFocus = new ScriptInvoker<Widget>()
protected

Definition at line 56 of file SCR_ButtonBaseComponent.c.

◆ m_OnFocusLost

ref ScriptInvoker<Widget> SCR_ButtonBaseComponent::m_OnFocusLost = new ScriptInvoker<Widget>()
protected

Definition at line 57 of file SCR_ButtonBaseComponent.c.

◆ m_OnShowBorder

ref ScriptInvoker SCR_ButtonBaseComponent::m_OnShowBorder = new ScriptInvoker()
protected

Definition at line 60 of file SCR_ButtonBaseComponent.c.

◆ m_OnToggled

ref ScriptInvoker SCR_ButtonBaseComponent::m_OnToggled = new ScriptInvoker()
protected

Definition at line 53 of file SCR_ButtonBaseComponent.c.

◆ m_ParentMenu

MenuBase SCR_ButtonBaseComponent::m_ParentMenu
protected

Definition at line 62 of file SCR_ButtonBaseComponent.c.

◆ m_ParentSubMenu

SCR_SubMenuBase SCR_ButtonBaseComponent::m_ParentSubMenu
protected

Definition at line 63 of file SCR_ButtonBaseComponent.c.

◆ m_wBackground

Widget SCR_ButtonBaseComponent::m_wBackground
protected

Definition at line 47 of file SCR_ButtonBaseComponent.c.

◆ m_wBorder

Widget SCR_ButtonBaseComponent::m_wBorder
protected

Definition at line 48 of file SCR_ButtonBaseComponent.c.


The documentation for this class was generated from the following file: