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

Protected Member Functions

override void HandlerAttached (Widget w)
SCR_NearbyContextWidgetComponentInteract GetIconComponent ()
void SetVisible (bool state)
bool Set (notnull BaseUserAction userAction, bool isSelected, bool isAvailable, SCR_ActionUIInfo actionUIInfo)
void SetIconFromAction (SCR_ActionUIInfo info, BaseUserAction userAction)
 Try to set the Icon defined in the UIInfo from action first.
void UpdateColors ()
void SetOpacity (float position)

Protected Attributes

ref SCR_ActionMenuElementWidgets m_Widgets = new SCR_ActionMenuElementWidgets()
const float NEARBY_INTERACTION_OPACITY_DIVIDER = 3
const float NEARBY_INTERACTION_OPACITY_MULTIPLIER = 0.9
const float NEARBY_INTERACTION_OPACITY_CUTOFF = 0.1
const int m_iFontSizeSelected = 24
const int m_iFontSizeNotSelected = 20
bool m_bIsSelected
bool m_bIsDisabled

Detailed Description

Definition at line 2 of file SCR_ActionMenuElementComponent.c.

Member Function Documentation

◆ GetIconComponent()

SCR_NearbyContextWidgetComponentInteract SCR_ActionMenuElementComponent::GetIconComponent ( )
inlineprotected

Definition at line 25 of file SCR_ActionMenuElementComponent.c.

◆ HandlerAttached()

override void SCR_ActionMenuElementComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 17 of file SCR_ActionMenuElementComponent.c.

◆ Set()

bool SCR_ActionMenuElementComponent::Set ( notnull BaseUserAction userAction,
bool isSelected,
bool isAvailable,
SCR_ActionUIInfo actionUIInfo )
inlineprotected

Set all the data and how it should be displayed

Parameters
[in]userActionContext the Widget gets assigned to
[in]isSelectedis the userAction currently selected by the player
[in]isAvailableis the userAction available (not disabled/blocked)
[in]actionUIInfocontaining all the information for the widget Icon, etc. Can be null return True if the userAction has at least one actionName

Definition at line 43 of file SCR_ActionMenuElementComponent.c.

◆ SetIconFromAction()

void SCR_ActionMenuElementComponent::SetIconFromAction ( SCR_ActionUIInfo info,
BaseUserAction userAction )
inlineprotected

Try to set the Icon defined in the UIInfo from action first.

Definition at line 105 of file SCR_ActionMenuElementComponent.c.

◆ SetOpacity()

void SCR_ActionMenuElementComponent::SetOpacity ( float position)
inlineprotected

Definition at line 156 of file SCR_ActionMenuElementComponent.c.

◆ SetVisible()

void SCR_ActionMenuElementComponent::SetVisible ( bool state)
inlineprotected

Definition at line 31 of file SCR_ActionMenuElementComponent.c.

◆ UpdateColors()

void SCR_ActionMenuElementComponent::UpdateColors ( )
inlineprotected

Definition at line 127 of file SCR_ActionMenuElementComponent.c.

Member Data Documentation

◆ m_bIsDisabled

bool SCR_ActionMenuElementComponent::m_bIsDisabled
protected

Definition at line 14 of file SCR_ActionMenuElementComponent.c.

◆ m_bIsSelected

bool SCR_ActionMenuElementComponent::m_bIsSelected
protected

Definition at line 13 of file SCR_ActionMenuElementComponent.c.

◆ m_iFontSizeNotSelected

const int SCR_ActionMenuElementComponent::m_iFontSizeNotSelected = 20
protected

Definition at line 11 of file SCR_ActionMenuElementComponent.c.

◆ m_iFontSizeSelected

const int SCR_ActionMenuElementComponent::m_iFontSizeSelected = 24
protected

Definition at line 10 of file SCR_ActionMenuElementComponent.c.

◆ m_Widgets

ref SCR_ActionMenuElementWidgets SCR_ActionMenuElementComponent::m_Widgets = new SCR_ActionMenuElementWidgets()
protected

Definition at line 4 of file SCR_ActionMenuElementComponent.c.

◆ NEARBY_INTERACTION_OPACITY_CUTOFF

const float SCR_ActionMenuElementComponent::NEARBY_INTERACTION_OPACITY_CUTOFF = 0.1
protected

Definition at line 8 of file SCR_ActionMenuElementComponent.c.

◆ NEARBY_INTERACTION_OPACITY_DIVIDER

const float SCR_ActionMenuElementComponent::NEARBY_INTERACTION_OPACITY_DIVIDER = 3
protected

Definition at line 6 of file SCR_ActionMenuElementComponent.c.

◆ NEARBY_INTERACTION_OPACITY_MULTIPLIER

const float SCR_ActionMenuElementComponent::NEARBY_INTERACTION_OPACITY_MULTIPLIER = 0.9
protected

Definition at line 7 of file SCR_ActionMenuElementComponent.c.


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