Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ToolboxComponent Class Reference
Inheritance diagram for SCR_ToolboxComponent:
SCR_SelectionWidgetComponent SCR_CheckboxComponent SCR_ToolboxMultilineComponent

Protected Member Functions

override void HandlerAttached (Widget w)
void CreateWidgets ()
void ClearWidgets ()
override bool OnFocus (Widget w, int x, int y)
override bool OnFocusLost (Widget w, int x, int y)
void SetInitialState ()
void OnMenuSelect ()
SCR_ButtonBaseComponent GetFirstSelectedIndex ()
void OnElementClicked (SCR_ButtonBaseComponent comp)
void OnElementChanged (SCR_ButtonBaseComponent comp, bool state)
override bool SetCurrentItem (int i, bool playSound=false, bool animate=false)
override bool OnMouseEnter (Widget w, int x, int y)
void OnMenuLeft ()
void OnMenuRight ()
int GetNextValidItem (bool toLeft)
int GetItems (notnull array< SCR_ButtonBaseComponent > elements)
SCR_ButtonBaseComponent GetItem (int index)
override int AddItem (string item, bool last=false, Managed data=null)
override void ClearAll ()
override void RemoveItem (int item, bool last=false)
bool IsItemSelected (int index)
void SetItemSelected (int index, bool select, bool animate=true)
void SetFocusedItem (int index, bool animate=true)
void SetFocusedItem (SCR_ButtonBaseComponent element, bool animate=true)
int GetFocusedItem ()

Static Protected Member Functions

static SCR_ToolboxComponent GetToolboxComponent (string name, Widget parent, bool searchAllChildren=true)

Protected Attributes

Widget m_wButtonRow
bool m_bAllowMultiselection
ResourceName m_ElementLayout
float m_fElementSpacing
bool m_bCycleMode
ref array< SCR_ButtonBaseComponentm_aSelectionElements = new array<SCR_ButtonBaseComponent>
SCR_ButtonBaseComponent m_FocusedElement

Detailed Description

Definition at line 2 of file SCR_ToolboxComponent.c.

Member Function Documentation

◆ AddItem()

override int SCR_ToolboxComponent::AddItem ( string item,
bool last = false,
Managed data = null )
inlineprotected

Definition at line 312 of file SCR_ToolboxComponent.c.

◆ ClearAll()

override void SCR_ToolboxComponent::ClearAll ( )
inlineprotected

Definition at line 321 of file SCR_ToolboxComponent.c.

◆ ClearWidgets()

void SCR_ToolboxComponent::ClearWidgets ( )
inlineprotected

Definition at line 70 of file SCR_ToolboxComponent.c.

◆ CreateWidgets()

void SCR_ToolboxComponent::CreateWidgets ( )
inlineprotected

Definition at line 35 of file SCR_ToolboxComponent.c.

◆ GetFirstSelectedIndex()

SCR_ButtonBaseComponent SCR_ToolboxComponent::GetFirstSelectedIndex ( )
inlineprotected

Definition at line 143 of file SCR_ToolboxComponent.c.

◆ GetFocusedItem()

int SCR_ToolboxComponent::GetFocusedItem ( )
inlineprotected

Definition at line 393 of file SCR_ToolboxComponent.c.

◆ GetItem()

SCR_ButtonBaseComponent SCR_ToolboxComponent::GetItem ( int index)
inlineprotected

Definition at line 303 of file SCR_ToolboxComponent.c.

◆ GetItems()

int SCR_ToolboxComponent::GetItems ( notnull array< SCR_ButtonBaseComponent > elements)
inlineprotected

Definition at line 293 of file SCR_ToolboxComponent.c.

◆ GetNextValidItem()

int SCR_ToolboxComponent::GetNextValidItem ( bool toLeft)
inlineprotected

Definition at line 250 of file SCR_ToolboxComponent.c.

◆ GetToolboxComponent()

SCR_ToolboxComponent SCR_ToolboxComponent::GetToolboxComponent ( string name,
Widget parent,
bool searchAllChildren = true )
inlinestaticprotected

Static method to easily find component by providing name and parent. Searching all children will go through whole hierarchy, instead of immediate chidren

Definition at line 401 of file SCR_ToolboxComponent.c.

◆ HandlerAttached()

override void SCR_ToolboxComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 22 of file SCR_ToolboxComponent.c.

◆ IsItemSelected()

bool SCR_ToolboxComponent::IsItemSelected ( int index)
inlineprotected

Definition at line 336 of file SCR_ToolboxComponent.c.

◆ OnElementChanged()

void SCR_ToolboxComponent::OnElementChanged ( SCR_ButtonBaseComponent comp,
bool state )
inlineprotected

Definition at line 177 of file SCR_ToolboxComponent.c.

◆ OnElementClicked()

void SCR_ToolboxComponent::OnElementClicked ( SCR_ButtonBaseComponent comp)
inlineprotected

Definition at line 155 of file SCR_ToolboxComponent.c.

◆ OnFocus()

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

Definition at line 86 of file SCR_ToolboxComponent.c.

◆ OnFocusLost()

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

Definition at line 110 of file SCR_ToolboxComponent.c.

◆ OnMenuLeft()

void SCR_ToolboxComponent::OnMenuLeft ( )
inlineprotected

Definition at line 224 of file SCR_ToolboxComponent.c.

◆ OnMenuRight()

void SCR_ToolboxComponent::OnMenuRight ( )
inlineprotected

Definition at line 237 of file SCR_ToolboxComponent.c.

◆ OnMenuSelect()

void SCR_ToolboxComponent::OnMenuSelect ( )
inlineprotected

Definition at line 136 of file SCR_ToolboxComponent.c.

◆ OnMouseEnter()

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

Definition at line 214 of file SCR_ToolboxComponent.c.

◆ RemoveItem()

override void SCR_ToolboxComponent::RemoveItem ( int item,
bool last = false )
inlineprotected

Definition at line 328 of file SCR_ToolboxComponent.c.

◆ SetCurrentItem()

override bool SCR_ToolboxComponent::SetCurrentItem ( int i,
bool playSound = false,
bool animate = false )
inlineprotected

Definition at line 191 of file SCR_ToolboxComponent.c.

◆ SetFocusedItem() [1/2]

void SCR_ToolboxComponent::SetFocusedItem ( int index,
bool animate = true )
inlineprotected

Definition at line 355 of file SCR_ToolboxComponent.c.

◆ SetFocusedItem() [2/2]

void SCR_ToolboxComponent::SetFocusedItem ( SCR_ButtonBaseComponent element,
bool animate = true )
inlineprotected

Definition at line 376 of file SCR_ToolboxComponent.c.

◆ SetInitialState()

void SCR_ToolboxComponent::SetInitialState ( )
inlineprotected

Definition at line 127 of file SCR_ToolboxComponent.c.

◆ SetItemSelected()

void SCR_ToolboxComponent::SetItemSelected ( int index,
bool select,
bool animate = true )
inlineprotected

Definition at line 345 of file SCR_ToolboxComponent.c.

Member Data Documentation

◆ m_aSelectionElements

ref array<SCR_ButtonBaseComponent> SCR_ToolboxComponent::m_aSelectionElements = new array<SCR_ButtonBaseComponent>
protected

Definition at line 18 of file SCR_ToolboxComponent.c.

◆ m_bAllowMultiselection

bool SCR_ToolboxComponent::m_bAllowMultiselection
protected

Definition at line 7 of file SCR_ToolboxComponent.c.

◆ m_bCycleMode

bool SCR_ToolboxComponent::m_bCycleMode
protected

Definition at line 16 of file SCR_ToolboxComponent.c.

◆ m_ElementLayout

ResourceName SCR_ToolboxComponent::m_ElementLayout
protected

Definition at line 10 of file SCR_ToolboxComponent.c.

◆ m_fElementSpacing

float SCR_ToolboxComponent::m_fElementSpacing
protected

Definition at line 13 of file SCR_ToolboxComponent.c.

◆ m_FocusedElement

SCR_ButtonBaseComponent SCR_ToolboxComponent::m_FocusedElement
protected

Definition at line 19 of file SCR_ToolboxComponent.c.

◆ m_wButtonRow

Widget SCR_ToolboxComponent::m_wButtonRow
protected

Definition at line 4 of file SCR_ToolboxComponent.c.


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