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

Public Member Functions

void SetDropdownEnable (bool enable)
 If enabled shows the dropdown arrow else it looks like a static header.
 
void AddItem (SCR_EditorModeUIInfo uiInfo, Color color)
 
bool IsOpened ()
 If dropdown is open.
 
void OpenDropdown (int focusIndex=-1)
 Open the dropdown.
 
void CloseDropdown ()
 Close the dropdown.
 
void SetCurrentItem (int index, bool callOnChanged)
 Set current item selected in dropdown.
 
int GetSelectedIndex ()
 Get selected index.
 
Widget GetRootWidget ()
 
void SetItemEnabled (int index, bool enabled)
 Set item enabled.
 
void SetItemVisible (int index, bool visible)
 Set item visible.
 
ScriptInvoker GetOnChanged ()
 
ScriptInvoker GetOnOpened ()
 
ScriptInvoker GetOnClosed ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override void HandlerAttached (Widget w)
 
override void HandlerDeattached (Widget w)
 

Protected Member Functions

void OnDropDownClicked (SCR_ButtonImageComponent button)
 
void OnItemClicked (SCR_ButtonImageComponent button)
 
void OnDropDownFocus ()
 
void OnMenuActionLeft ()
 
void OnLMB ()
 
void OnInputDeviceIsGamepad (bool isGamepad)
 

Protected Attributes

string m_sItemHolderName
 
string m_sListWidgetName
 
string m_sListWidgetStripeName
 
string m_sDropdownButtonName
 
string m_DropdownTextName
 
string m_sArrowWidgetName
 
string m_sGamepadHintWidgetName
 
ResourceName m_sItemPrefab
 
float m_fFadeDelayNextButton
 
float m_fButtonFadeSpeed
 
int m_iAvailableActionsOffsetY
 
Widget m_Root
 
Widget m_ItemHolder
 
Widget m_ListWidget
 
SCR_FadeUIComponent m_ListWidgetStripeFadeComponent
 
TextWidget m_DropdownText
 
ImageWidget m_ArrowWidget
 
SCR_ButtonImageComponent m_DropdownButton
 
ref array< SCR_ButtonImageComponentm_aItemButtons = {}
 
ref array< SCR_EditorModeUIInfom_aModeUIInfo = {}
 
bool m_bIsOpened
 
int m_iSelectedItem
 
bool m_bHovered
 
ref ScriptInvoker Event_OnDropdownOpened
 
ref ScriptInvoker Event_OnDropdownClosed
 
ref ScriptInvoker Event_OnChanged
 
int m_iCloseOnIndex
 
bool m_bIsEnabled = true
 

Member Function Documentation

◆ AddItem()

void SCR_CustomDropdownEditorUIComponent.AddItem ( SCR_EditorModeUIInfo  uiInfo,
Color  color 
)
Parameters
[in]uiInfo
[in]color

◆ CloseDropdown()

void SCR_CustomDropdownEditorUIComponent.CloseDropdown ( )

Close the dropdown.

◆ GetOnChanged()

ScriptInvoker SCR_CustomDropdownEditorUIComponent.GetOnChanged ( )
Returns
On Change script invoker

◆ GetOnClosed()

ScriptInvoker SCR_CustomDropdownEditorUIComponent.GetOnClosed ( )
Returns
On Closed script invoker

◆ GetOnOpened()

ScriptInvoker SCR_CustomDropdownEditorUIComponent.GetOnOpened ( )
Returns
On Opened script invoker

◆ GetRootWidget()

Widget SCR_CustomDropdownEditorUIComponent.GetRootWidget ( )
Returns
root widget

◆ GetSelectedIndex()

int SCR_CustomDropdownEditorUIComponent.GetSelectedIndex ( )

Get selected index.

Returns
int get selected index

◆ HandlerAttached()

override void SCR_CustomDropdownEditorUIComponent.HandlerAttached ( Widget  w)

◆ HandlerDeattached()

override void SCR_CustomDropdownEditorUIComponent.HandlerDeattached ( Widget  w)

◆ IsOpened()

bool SCR_CustomDropdownEditorUIComponent.IsOpened ( )

If dropdown is open.

Returns
bool if dropdown is open

◆ OnDropDownClicked()

void SCR_CustomDropdownEditorUIComponent.OnDropDownClicked ( SCR_ButtonImageComponent  button)
protected

◆ OnDropDownFocus()

void SCR_CustomDropdownEditorUIComponent.OnDropDownFocus ( )
protected

◆ OnInputDeviceIsGamepad()

void SCR_CustomDropdownEditorUIComponent.OnInputDeviceIsGamepad ( bool  isGamepad)
protected

◆ OnItemClicked()

void SCR_CustomDropdownEditorUIComponent.OnItemClicked ( SCR_ButtonImageComponent  button)
protected

◆ OnLMB()

void SCR_CustomDropdownEditorUIComponent.OnLMB ( )
protected

◆ OnMenuActionLeft()

void SCR_CustomDropdownEditorUIComponent.OnMenuActionLeft ( )
protected

◆ OnMouseEnter()

override bool SCR_CustomDropdownEditorUIComponent.OnMouseEnter ( Widget  w,
int  x,
int  y 
)

◆ OnMouseLeave()

override bool SCR_CustomDropdownEditorUIComponent.OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)

◆ OpenDropdown()

void SCR_CustomDropdownEditorUIComponent.OpenDropdown ( int  focusIndex = -1)

Open the dropdown.

Parameters
[in]focusIndexset which button should be focused. Ignored if -1

◆ SetCurrentItem()

void SCR_CustomDropdownEditorUIComponent.SetCurrentItem ( int  index,
bool  callOnChanged 
)

Set current item selected in dropdown.

Parameters
[in]indexindex of item
[in]callOnChangedif the Event_OnChanged event should be called

◆ SetDropdownEnable()

void SCR_CustomDropdownEditorUIComponent.SetDropdownEnable ( bool  enable)

If enabled shows the dropdown arrow else it looks like a static header.

Parameters
[in]enabledto set enabled or disabled

◆ SetItemEnabled()

void SCR_CustomDropdownEditorUIComponent.SetItemEnabled ( int  index,
bool  enabled 
)

Set item enabled.

Parameters
[in]indexindex of item
[in]enabledenabled state

◆ SetItemVisible()

void SCR_CustomDropdownEditorUIComponent.SetItemVisible ( int  index,
bool  visible 
)

Set item visible.

Parameters
[in]indexindex of item
[in]visiblevisible state

Member Data Documentation

◆ Event_OnChanged

ref ScriptInvoker SCR_CustomDropdownEditorUIComponent.Event_OnChanged
protected

◆ Event_OnDropdownClosed

ref ScriptInvoker SCR_CustomDropdownEditorUIComponent.Event_OnDropdownClosed
protected

◆ Event_OnDropdownOpened

ref ScriptInvoker SCR_CustomDropdownEditorUIComponent.Event_OnDropdownOpened
protected

◆ m_aItemButtons

ref array<SCR_ButtonImageComponent> SCR_CustomDropdownEditorUIComponent.m_aItemButtons = {}
protected

◆ m_aModeUIInfo

ref array<SCR_EditorModeUIInfo> SCR_CustomDropdownEditorUIComponent.m_aModeUIInfo = {}
protected

◆ m_ArrowWidget

ImageWidget SCR_CustomDropdownEditorUIComponent.m_ArrowWidget
protected

◆ m_bHovered

bool SCR_CustomDropdownEditorUIComponent.m_bHovered
protected

◆ m_bIsEnabled

bool SCR_CustomDropdownEditorUIComponent.m_bIsEnabled = true
protected

◆ m_bIsOpened

bool SCR_CustomDropdownEditorUIComponent.m_bIsOpened
protected

◆ m_DropdownButton

SCR_ButtonImageComponent SCR_CustomDropdownEditorUIComponent.m_DropdownButton
protected

◆ m_DropdownText

TextWidget SCR_CustomDropdownEditorUIComponent.m_DropdownText
protected

◆ m_DropdownTextName

string SCR_CustomDropdownEditorUIComponent.m_DropdownTextName
protected

◆ m_fButtonFadeSpeed

float SCR_CustomDropdownEditorUIComponent.m_fButtonFadeSpeed
protected

◆ m_fFadeDelayNextButton

float SCR_CustomDropdownEditorUIComponent.m_fFadeDelayNextButton
protected

◆ m_iAvailableActionsOffsetY

int SCR_CustomDropdownEditorUIComponent.m_iAvailableActionsOffsetY
protected

◆ m_iCloseOnIndex

int SCR_CustomDropdownEditorUIComponent.m_iCloseOnIndex
protected

◆ m_iSelectedItem

int SCR_CustomDropdownEditorUIComponent.m_iSelectedItem
protected

◆ m_ItemHolder

Widget SCR_CustomDropdownEditorUIComponent.m_ItemHolder
protected

◆ m_ListWidget

Widget SCR_CustomDropdownEditorUIComponent.m_ListWidget
protected

◆ m_ListWidgetStripeFadeComponent

SCR_FadeUIComponent SCR_CustomDropdownEditorUIComponent.m_ListWidgetStripeFadeComponent
protected

◆ m_Root

Widget SCR_CustomDropdownEditorUIComponent.m_Root
protected

◆ m_sArrowWidgetName

string SCR_CustomDropdownEditorUIComponent.m_sArrowWidgetName
protected

◆ m_sDropdownButtonName

string SCR_CustomDropdownEditorUIComponent.m_sDropdownButtonName
protected

◆ m_sGamepadHintWidgetName

string SCR_CustomDropdownEditorUIComponent.m_sGamepadHintWidgetName
protected

◆ m_sItemHolderName

string SCR_CustomDropdownEditorUIComponent.m_sItemHolderName
protected

◆ m_sItemPrefab

ResourceName SCR_CustomDropdownEditorUIComponent.m_sItemPrefab
protected

◆ m_sListWidgetName

string SCR_CustomDropdownEditorUIComponent.m_sListWidgetName
protected

◆ m_sListWidgetStripeName

string SCR_CustomDropdownEditorUIComponent.m_sListWidgetStripeName
protected

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