Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SCR_ComboBoxIconComponent Interface Reference
Inheritance diagram for SCR_ComboBoxIconComponent:
[legend]

Public Member Functions

int AddItemAndIcon (string item, ResourceName icon, float rotation=0, Managed data=null)
 
ImageWidget GetIconWidget ()
 
override int AddItem (string item, bool last=false, Managed data=null)
 
override void ClearAll ()
 
void AllowFocus (bool allowFocus)
 
ScriptInvoker GetOnCreateElement ()
 
void SetElementEnabled (int index, bool enable)
 
override void RemoveItem (int item, bool last=false)
 
override void HandlerAttached (Widget w)
 
- Public Member Functions inherited from SCR_ComboBoxComponent
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)
 
override bool SetCurrentItem (int i, bool playSound=false, bool animate=false)
 
void CreateEntries ()
 
void OpenList ()
 
void CloseList ()
 
override int AddItem (string item, bool last=false, Managed data=null)
 
override void ClearAll ()
 
override void RemoveItem (int item, bool last=false)
 
void SetElementWidgetEnabled (int index, bool enable, bool animate=true)
 Set given element index as enabled or disabled.
 
int GetElementWidgets (notnull array< Widget > elementWidgets)
 Get elementWidgets array.
 
bool IsOpened ()
 
- Public Member Functions inherited from SCR_SelectionWidgetComponent
int AddItem (string item, bool last=false, Managed data=null)
 
void ClearAll ()
 
void RemoveItem (int item, bool last=false)
 
int GetCurrentIndex ()
 
string GetCurrentItem ()
 
Managed GetCurrentItemData ()
 
string GetItemName (int item)
 
Managed GetItemData (int item)
 
int GetNumItems ()
 
bool SetCurrentItem (int i, bool playSound=false, bool animate=false)
 
- Public Member Functions inherited from SCR_ChangeableComponentBase
override void HandlerAttached (Widget w)
 
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)
 
TextWidget GetLabel ()
 
void SetLabel (string label)
 
void UseLabel (bool use)
 
bool IsUsingLabel ()
 
Widget GetLabelWidget ()
 If label is not used, label widget might not exist at all!
 
- Public Member Functions inherited from SCR_WLibComponentBase
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)
 
- Public Member Functions inherited from SCR_ScriptedWidgetComponent
override void HandlerAttached (Widget w)
 
override bool OnClick (Widget w, int x, int y, int button)
 
Widget GetRootWidget ()
 
bool IsVisible ()
 

Protected Member Functions

override void UpdateName ()
 
override void OnCreateElement (Widget elementWidget, int index)
 
- Protected Member Functions inherited from SCR_ComboBoxComponent
bool OnHandlerClicked ()
 
void OnHandlerFocus ()
 
void OnHandlerFocusLost ()
 
void OnHandlerHovered ()
 
void OnHandlerUnhovered ()
 
void OnMenuFocusLost (ChimeraMenuBase menu)
 
override void OnEnabled (bool animate)
 
override void OnDisabled (bool animate)
 
void UpdateName ()
 
void CheckElementsInitialized ()
 
void OnCreateElement (Widget elementWidget, int index)
 
void OnMenuBack ()
 
- Protected Member Functions inherited from SCR_ChangeableComponentBase
void SetupLabel ()
 
void ClearLabel ()
 
- 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)
 

Protected Attributes

ref array< ResourceName > m_aElementIcons
 
ref array< float > m_aElementIconRotations
 
string m_sIconWidgetName
 
ImageWidget m_IconWidget
 
ref ScriptInvoker Event_OnCreateElement = new ScriptInvoker
 
ref Color m_cIconDisabledColor = new Color (0.8, 0.8, 0.8, 1)
 
- Protected Attributes inherited from SCR_ComboBoxComponent
float m_fArrowDefaultAngle
 
bool m_bForceListWidth
 
float m_fListForcedWidth
 
float m_fListXOffset
 
string m_sSoundClosed
 
string m_sButton
 
ref Color m_BackgroundDefault
 
ref Color m_BackgroundInteracting
 
ref Color m_ArrowDefault
 
ref Color m_ArrowInteracting
 
ref Color m_ArrowFocused
 
bool m_bRotateArrow
 
InputManager m_InputManager
 
ref array< Widget > m_aElementWidgets = new array<Widget>()
 
Widget m_wButton
 
ImageWidget m_wArrowImage
 
TextWidget m_wText
 
VerticalLayoutWidget m_wContent
 
ScrollLayoutWidget m_wScrollLayout
 
Widget m_wElementsRoot
 
Widget m_wContentRoot
 
WorkspaceWidget m_Workspace
 
ref SCR_ComboModalHandler m_ModalHandler
 
bool m_bOpened
 
float posX
 
float posY
 
Widget m_wTextBackground
 
- Protected Attributes inherited from SCR_SelectionWidgetComponent
ref array< ref Managed > m_aElementData = new array<ref Managed>
 
- Protected Attributes inherited from SCR_ChangeableComponentBase
bool m_bUseLabel
 
string m_sLabel
 
bool m_bForceSize
 
float m_fSizeWithLabel
 
float m_fSizeWithoutLabel
 
ResourceName m_sLabelLayout
 
string m_sSizeLayout
 
Widget m_wBorder
 
Widget m_wBackground
 
Widget m_wLabelRoot
 
- Protected Attributes inherited from SCR_WLibComponentBase
string m_sSoundHovered
 
string m_sSoundClicked
 
float m_fAnimationTime
 
bool m_bMouseOverToFocus
 
float m_fDisabledOpacity
 
float m_fAnimationRate
 
- Protected Attributes inherited from SCR_ScriptedWidgetComponent
Widget m_wRoot
 

Additional Inherited Members

- Static Public Member Functions inherited from SCR_ComboBoxComponent
static SCR_ComboBoxComponent GetComboBoxComponent (string name, Widget parent, bool searchAllChildren=true)
 Static method to easily find component by providing name and parent.
 
- Static Public Member Functions inherited from SCR_SelectionWidgetComponent
static SCR_SelectionWidgetComponent GetSelectionComponent (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_ComboBoxComponent
float m_fMaxListHeight
 
bool m_bCreateListBelow
 
ResourceName m_sListRootLayout
 
ResourceName m_sElementLayout
 
float m_fItemsGap
 
float m_fExtraPaddingLeft
 
float m_fExtraPaddingRight
 
ref ScriptInvoker m_OnOpened = new ScriptInvoker()
 
ref ScriptInvoker m_OnClosed = new ScriptInvoker()
 
- Public Attributes inherited from SCR_SelectionWidgetComponent
ref array< string > m_aElementNames
 
int m_iSelectedItem
 
- Public Attributes inherited from SCR_ChangeableComponentBase
ref ScriptInvoker m_OnChanged = 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_ComboBoxComponent
const int INITIALIZATION_CHECK_FREQUENCY = 10
 

Member Function Documentation

◆ AddItem()

override int SCR_ComboBoxIconComponent.AddItem ( string  item,
bool  last = false,
Managed  data = null 
)

Implements SCR_ComboBoxComponent.

◆ AddItemAndIcon()

int SCR_ComboBoxIconComponent.AddItemAndIcon ( string  item,
ResourceName  icon,
float  rotation = 0,
Managed  data = null 
)

◆ AllowFocus()

void SCR_ComboBoxIconComponent.AllowFocus ( bool  allowFocus)

◆ ClearAll()

override void SCR_ComboBoxIconComponent.ClearAll ( )

Implements SCR_ComboBoxComponent.

◆ GetIconWidget()

ImageWidget SCR_ComboBoxIconComponent.GetIconWidget ( )

◆ GetOnCreateElement()

ScriptInvoker SCR_ComboBoxIconComponent.GetOnCreateElement ( )

◆ HandlerAttached()

override void SCR_ComboBoxIconComponent.HandlerAttached ( Widget  w)

Implements SCR_ComboBoxComponent.

◆ OnCreateElement()

override void SCR_ComboBoxIconComponent.OnCreateElement ( Widget  elementWidget,
int  index 
)
protected

Implements SCR_ComboBoxComponent.

◆ RemoveItem()

override void SCR_ComboBoxIconComponent.RemoveItem ( int  item,
bool  last = false 
)

Implements SCR_ComboBoxComponent.

◆ SetElementEnabled()

void SCR_ComboBoxIconComponent.SetElementEnabled ( int  index,
bool  enable 
)

◆ UpdateName()

override void SCR_ComboBoxIconComponent.UpdateName ( )
protected

Implements SCR_ComboBoxComponent.

Member Data Documentation

◆ Event_OnCreateElement

ref ScriptInvoker SCR_ComboBoxIconComponent.Event_OnCreateElement = new ScriptInvoker
protected

◆ m_aElementIconRotations

ref array<float> SCR_ComboBoxIconComponent.m_aElementIconRotations
protected

◆ m_aElementIcons

ref array<ResourceName> SCR_ComboBoxIconComponent.m_aElementIcons
protected

◆ m_cIconDisabledColor

ref Color SCR_ComboBoxIconComponent.m_cIconDisabledColor = new Color (0.8, 0.8, 0.8, 1)
protected

◆ m_IconWidget

ImageWidget SCR_ComboBoxIconComponent.m_IconWidget
protected

◆ m_sIconWidgetName

string SCR_ComboBoxIconComponent.m_sIconWidgetName
protected

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