Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CustomDropdownEditorUIComponent Class Reference
Inheritance diagram for SCR_CustomDropdownEditorUIComponent:
ScriptedWidgetComponent

Protected Member Functions

void SetDropdownEnable (bool enable)
void OnDropDownClicked (SCR_ButtonImageComponent button)
void OnItemClicked (SCR_ButtonImageComponent button)
void OnDropDownFocus ()
void OnMenuActionLeft ()
void AddItem (SCR_EditorModeUIInfo uiInfo, Color color)
bool IsOpened ()
void OpenDropdown (int focusIndex=-1)
void CloseDropdown ()
 Close the dropdown.
void OnLMB ()
void SetCurrentItem (int index, bool callOnChanged)
int GetSelectedIndex ()
Widget GetRootWidget ()
void SetItemEnabled (int index, bool enabled)
void SetItemVisible (int index, bool visible)
ScriptInvoker GetOnChanged ()
ScriptInvoker GetOnOpened ()
ScriptInvoker GetOnClosed ()
void OnInputDeviceIsGamepad (bool isGamepad)
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 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

Detailed Description

Definition at line 1 of file SCR_CustomDropdownEditorUIComponent.c.

Member Function Documentation

◆ AddItem()

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

Definition at line 126 of file SCR_CustomDropdownEditorUIComponent.c.

◆ CloseDropdown()

void SCR_CustomDropdownEditorUIComponent::CloseDropdown ( )
inlineprotected

Close the dropdown.

Definition at line 234 of file SCR_CustomDropdownEditorUIComponent.c.

◆ GetOnChanged()

ScriptInvoker SCR_CustomDropdownEditorUIComponent::GetOnChanged ( )
inlineprotected
Returns
On Change script invoker

Definition at line 349 of file SCR_CustomDropdownEditorUIComponent.c.

◆ GetOnClosed()

ScriptInvoker SCR_CustomDropdownEditorUIComponent::GetOnClosed ( )
inlineprotected
Returns
On Closed script invoker

Definition at line 369 of file SCR_CustomDropdownEditorUIComponent.c.

◆ GetOnOpened()

ScriptInvoker SCR_CustomDropdownEditorUIComponent::GetOnOpened ( )
inlineprotected
Returns
On Opened script invoker

Definition at line 359 of file SCR_CustomDropdownEditorUIComponent.c.

◆ GetRootWidget()

Widget SCR_CustomDropdownEditorUIComponent::GetRootWidget ( )
inlineprotected
Returns
root widget

Definition at line 315 of file SCR_CustomDropdownEditorUIComponent.c.

◆ GetSelectedIndex()

int SCR_CustomDropdownEditorUIComponent::GetSelectedIndex ( )
inlineprotected

Get selected index

Returns
int get selected index

Definition at line 302 of file SCR_CustomDropdownEditorUIComponent.c.

◆ HandlerAttached()

override void SCR_CustomDropdownEditorUIComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 405 of file SCR_CustomDropdownEditorUIComponent.c.

◆ HandlerDeattached()

override void SCR_CustomDropdownEditorUIComponent::HandlerDeattached ( Widget w)
inlineprotected

Definition at line 450 of file SCR_CustomDropdownEditorUIComponent.c.

◆ IsOpened()

bool SCR_CustomDropdownEditorUIComponent::IsOpened ( )
inlineprotected

If dropdown is open

Returns
bool if dropdown is open

Definition at line 169 of file SCR_CustomDropdownEditorUIComponent.c.

◆ OnDropDownClicked()

void SCR_CustomDropdownEditorUIComponent::OnDropDownClicked ( SCR_ButtonImageComponent button)
inlineprotected

Definition at line 88 of file SCR_CustomDropdownEditorUIComponent.c.

◆ OnDropDownFocus()

void SCR_CustomDropdownEditorUIComponent::OnDropDownFocus ( )
inlineprotected

Definition at line 108 of file SCR_CustomDropdownEditorUIComponent.c.

◆ OnInputDeviceIsGamepad()

void SCR_CustomDropdownEditorUIComponent::OnInputDeviceIsGamepad ( bool isGamepad)
inlineprotected

Definition at line 378 of file SCR_CustomDropdownEditorUIComponent.c.

◆ OnItemClicked()

void SCR_CustomDropdownEditorUIComponent::OnItemClicked ( SCR_ButtonImageComponent button)
inlineprotected

Definition at line 97 of file SCR_CustomDropdownEditorUIComponent.c.

◆ OnLMB()

void SCR_CustomDropdownEditorUIComponent::OnLMB ( )
inlineprotected

Definition at line 270 of file SCR_CustomDropdownEditorUIComponent.c.

◆ OnMenuActionLeft()

void SCR_CustomDropdownEditorUIComponent::OnMenuActionLeft ( )
inlineprotected

Definition at line 117 of file SCR_CustomDropdownEditorUIComponent.c.

◆ OnMouseEnter()

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

Definition at line 391 of file SCR_CustomDropdownEditorUIComponent.c.

◆ OnMouseLeave()

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

Definition at line 398 of file SCR_CustomDropdownEditorUIComponent.c.

◆ OpenDropdown()

void SCR_CustomDropdownEditorUIComponent::OpenDropdown ( int focusIndex = -1)
inlineprotected

Open the dropdown

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

Definition at line 179 of file SCR_CustomDropdownEditorUIComponent.c.

◆ SetCurrentItem()

void SCR_CustomDropdownEditorUIComponent::SetCurrentItem ( int index,
bool callOnChanged )
inlineprotected

Set current item selected in dropdown

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

Definition at line 280 of file SCR_CustomDropdownEditorUIComponent.c.

◆ SetDropdownEnable()

void SCR_CustomDropdownEditorUIComponent::SetDropdownEnable ( bool enable)
inlineprotected

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

Parameters
[in]enabledto set enabled or disabled

Definition at line 63 of file SCR_CustomDropdownEditorUIComponent.c.

◆ SetItemEnabled()

void SCR_CustomDropdownEditorUIComponent::SetItemEnabled ( int index,
bool enabled )
inlineprotected

Set item enabled

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

Definition at line 324 of file SCR_CustomDropdownEditorUIComponent.c.

◆ SetItemVisible()

void SCR_CustomDropdownEditorUIComponent::SetItemVisible ( int index,
bool visible )
inlineprotected

Set item visible

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

Definition at line 337 of file SCR_CustomDropdownEditorUIComponent.c.

Member Data Documentation

◆ Event_OnChanged

ref ScriptInvoker SCR_CustomDropdownEditorUIComponent::Event_OnChanged
protected

Definition at line 55 of file SCR_CustomDropdownEditorUIComponent.c.

◆ Event_OnDropdownClosed

ref ScriptInvoker SCR_CustomDropdownEditorUIComponent::Event_OnDropdownClosed
protected

Definition at line 54 of file SCR_CustomDropdownEditorUIComponent.c.

◆ Event_OnDropdownOpened

ref ScriptInvoker SCR_CustomDropdownEditorUIComponent::Event_OnDropdownOpened
protected

Definition at line 53 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_aItemButtons

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

Definition at line 45 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_aModeUIInfo

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

Definition at line 46 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_ArrowWidget

ImageWidget SCR_CustomDropdownEditorUIComponent::m_ArrowWidget
protected

Definition at line 43 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_bHovered

bool SCR_CustomDropdownEditorUIComponent::m_bHovered
protected

Definition at line 51 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_bIsEnabled

bool SCR_CustomDropdownEditorUIComponent::m_bIsEnabled = true
protected

Definition at line 58 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_bIsOpened

bool SCR_CustomDropdownEditorUIComponent::m_bIsOpened
protected

Definition at line 49 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_DropdownButton

SCR_ButtonImageComponent SCR_CustomDropdownEditorUIComponent::m_DropdownButton
protected

Definition at line 44 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_DropdownText

TextWidget SCR_CustomDropdownEditorUIComponent::m_DropdownText
protected

Definition at line 42 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_DropdownTextName

string SCR_CustomDropdownEditorUIComponent::m_DropdownTextName
protected

Definition at line 17 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_fButtonFadeSpeed

float SCR_CustomDropdownEditorUIComponent::m_fButtonFadeSpeed
protected

Definition at line 32 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_fFadeDelayNextButton

float SCR_CustomDropdownEditorUIComponent::m_fFadeDelayNextButton
protected

Definition at line 29 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_iAvailableActionsOffsetY

int SCR_CustomDropdownEditorUIComponent::m_iAvailableActionsOffsetY
protected

Definition at line 35 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_iCloseOnIndex

int SCR_CustomDropdownEditorUIComponent::m_iCloseOnIndex
protected

Definition at line 57 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_iSelectedItem

int SCR_CustomDropdownEditorUIComponent::m_iSelectedItem
protected

Definition at line 50 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_ItemHolder

Widget SCR_CustomDropdownEditorUIComponent::m_ItemHolder
protected

Definition at line 39 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_ListWidget

Widget SCR_CustomDropdownEditorUIComponent::m_ListWidget
protected

Definition at line 40 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_ListWidgetStripeFadeComponent

SCR_FadeUIComponent SCR_CustomDropdownEditorUIComponent::m_ListWidgetStripeFadeComponent
protected

Definition at line 41 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_Root

Widget SCR_CustomDropdownEditorUIComponent::m_Root
protected

Definition at line 38 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_sArrowWidgetName

string SCR_CustomDropdownEditorUIComponent::m_sArrowWidgetName
protected

Definition at line 20 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_sDropdownButtonName

string SCR_CustomDropdownEditorUIComponent::m_sDropdownButtonName
protected

Definition at line 14 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_sGamepadHintWidgetName

string SCR_CustomDropdownEditorUIComponent::m_sGamepadHintWidgetName
protected

Definition at line 23 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_sItemHolderName

string SCR_CustomDropdownEditorUIComponent::m_sItemHolderName
protected

Definition at line 5 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_sItemPrefab

ResourceName SCR_CustomDropdownEditorUIComponent::m_sItemPrefab
protected

Definition at line 26 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_sListWidgetName

string SCR_CustomDropdownEditorUIComponent::m_sListWidgetName
protected

Definition at line 8 of file SCR_CustomDropdownEditorUIComponent.c.

◆ m_sListWidgetStripeName

string SCR_CustomDropdownEditorUIComponent::m_sListWidgetStripeName
protected

Definition at line 11 of file SCR_CustomDropdownEditorUIComponent.c.


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