Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_BaseEditorAttributeUIComponent Class Reference
Inheritance diagram for SCR_BaseEditorAttributeUIComponent:
ScriptedWidgetComponent SCR_ButtonBoxAttributeUIComponent SCR_CheckboxEditorAttributeUIComponent SCR_DateAttributeUIComponent SCR_DropdownEditorAttributeUIComponent SCR_OverrideEditorAttributeUIComponent SCR_PositionEditorAttributeUIComponent SCR_SliderEditorAttributeUIComponent SCR_SpinboxEditorAttributeUIComponent

Protected Member Functions

Get attribute this component represents return Editor attribute *SCR_BaseEditorAttribute GetAttribute ()
void SetFromVar (SCR_BaseEditorAttributeVar var)
void SetFromVarOrDefault ()
Initialize GUI from attribute To be overridden by inherited classes param w Widget this component is attached to param attribute Editor attribute this component represents *void Init (Widget w, SCR_BaseEditorAttribute attribute)
void ToggleButtonSelected (bool selected, int index, bool animated=true)
void SetAsSubAttribute ()
bool OnChangeInternal (Widget w, int x, int y, bool finished)
void AttributeValueChanged ()
 if (!m_TickBoxAttribute.GetToggled() &&m_TickBoxAttribute.IsVisibleAndEnabled())
m_Attribute GetDynamicDescriptionArray (dynamicDescriptionArray)
 foreach (SCR_BaseAttributeDynamicDescription discription:dynamicDescriptionArray)
 if (dynamicDescription)
 if (m_bShowButtonDescription &&(!buttonDynamicDescription||!buttonDynamicDescription.HasPriorityOverButton()))
 if (dynamicDescription)
m_AttributeManager SetAttributeDescription (GetAttribute().GetUIInfo())
void HideAttributeDescription ()
void ShowButtonDescription (SCR_AttributeButtonUIComponent button, bool showButtonDescription, string buttonDescription=string.Empty)
Called on attribute changed via UI return Event_OnAttributeChanged ScriptInvoker *ScriptInvoker GetOnAttributeChanged ()
ScriptInvoker GetOnAttributeUIFocusChanged ()
ScriptInvoker GetOnEnabledByAttribute ()
ScriptInvoker GetOnMouseLeave ()
void SetVariableToDefaultValue (SCR_BaseEditorAttributeVar var)
void ToggleEnableAttribute (bool enabled)
void ToggleEnable (bool enabled)
bool GetTickboxEnabled ()
void ToggleEnableAttributeTickbox ()
void OnTickboxToggleChanged (bool toggle)
void GamePadLockedSelectorFocusChanged (bool newFocus)
bool GetIsFocused ()
void OnFocusAttributeWidget (Widget w)
 Callback for focus of widget used.
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)
void SetGamepadLockSelectorActive (bool isGamepad)
 if (m_GamePadLockedSelector)

Protected Attributes

string m_sUiComponentName
string m_sTickBoxAttributeName
string m_sAttributeHolder
string m_sGamePadLockedSelectorName
string m_sSubAttributeIndicatorName
float m_fSubAttributeDisabledAlphaColor
ref SCR_EditorAttributeUIInfo m_ButtonDescriptionUIInfo = new SCR_EditorAttributeUIInfo
SCR_AttributeButtonUIComponent m_ActiveButtonDescription
SCR_ChangeableComponentBase m_UIComponent
float m_fBottomPadding = 1
bool m_bIsSubAttribute
SCR_AttributeTickboxUIComponent m_TickBoxAttribute
Widget m_GamePadLockedSelector
SCR_AttributesManagerEditorComponent m_AttributeManager
InputManager m_InputManager
Widget m_SubAttributeIndicator
Widget m_wAttributeHolder
bool m_bEnabledByAttribute
bool m_bEnabledByTickbox
bool m_bIsFocused
bool m_bIsShowingDescription
bool m_bShowButtonDescription
string m_sButtonDescription
string m_sButtonDescriptionParam1
ref ScriptInvoker Event_OnAttributeChanged = new ScriptInvoker
ref ScriptInvoker Event_OnEnabledByAttribute = new ScriptInvoker
ref ScriptInvoker Event_OnAttributeUIFocusChanged = new ScriptInvoker
ref ScriptInvoker Event_OnInputDeviceChanged = new ScriptInvoker
ref ScriptInvoker Event_OnMouseLeave = new ScriptInvoker
 m_bIsShowingDescription = true
array< SCR_BaseAttributeDynamicDescriptiondynamicDescriptionArray = {}
SCR_BaseAttributeDynamicDescription dynamicDescription
SCR_BaseButtonAttributeDynamicDescription buttonDynamicDescription

Detailed Description

Definition at line 3 of file SCR_BaseEditorAttributeUIComponent.c.

Member Function Documentation

◆ AttributeValueChanged()

void SCR_BaseEditorAttributeUIComponent::AttributeValueChanged ( )
inlineprotected

Definition at line 289 of file SCR_BaseEditorAttributeUIComponent.c.

◆ foreach()

SCR_BaseEditorAttributeUIComponent::foreach ( SCR_BaseAttributeDynamicDescription discription:dynamicDescriptionArray )
inlineprotected

Definition at line 319 of file SCR_BaseEditorAttributeUIComponent.c.

◆ GamePadLockedSelectorFocusChanged()

void SCR_BaseEditorAttributeUIComponent::GamePadLockedSelectorFocusChanged ( bool newFocus)
inlineprotected

Definition at line 550 of file SCR_BaseEditorAttributeUIComponent.c.

◆ GetAttribute()

Get attribute this component represents return Editor attribute *SCR_BaseEditorAttribute SCR_BaseEditorAttributeUIComponent::GetAttribute ( )
inlineprotected

Definition at line 59 of file SCR_BaseEditorAttributeUIComponent.c.

◆ GetDynamicDescriptionArray()

m_Attribute SCR_BaseEditorAttributeUIComponent::GetDynamicDescriptionArray ( dynamicDescriptionArray )
protected

◆ GetIsFocused()

bool SCR_BaseEditorAttributeUIComponent::GetIsFocused ( )
inlineprotected

Get if attribute is focused /return if attribute is focused

Definition at line 572 of file SCR_BaseEditorAttributeUIComponent.c.

◆ GetOnAttributeChanged()

Called on attribute changed via UI return Event_OnAttributeChanged ScriptInvoker *ScriptInvoker SCR_BaseEditorAttributeUIComponent::GetOnAttributeChanged ( )
inlineprotected

Definition at line 407 of file SCR_BaseEditorAttributeUIComponent.c.

◆ GetOnAttributeUIFocusChanged()

ScriptInvoker SCR_BaseEditorAttributeUIComponent::GetOnAttributeUIFocusChanged ( )
inlineprotected

Called on focus changes. For gamepad to know if the attribute is being focused on

Returns
Event_OnAttributeUIFocusChanged ScriptInvoker

Definition at line 416 of file SCR_BaseEditorAttributeUIComponent.c.

◆ GetOnEnabledByAttribute()

ScriptInvoker SCR_BaseEditorAttributeUIComponent::GetOnEnabledByAttribute ( )
inlineprotected

Called when another attribute enables/disables the attribute

Returns
Event_OnEnabledByAttribute ScriptInvoker when on enabled by attribute happens

Definition at line 425 of file SCR_BaseEditorAttributeUIComponent.c.

◆ GetOnMouseLeave()

ScriptInvoker SCR_BaseEditorAttributeUIComponent::GetOnMouseLeave ( )
inlineprotected

Called when the mouse leaves the attribute

Returns
Event_OnMouseLeave ScriptInvoker on mouse leave

Definition at line 434 of file SCR_BaseEditorAttributeUIComponent.c.

◆ GetTickboxEnabled()

bool SCR_BaseEditorAttributeUIComponent::GetTickboxEnabled ( )
inlineprotected

Get if tickbox is enabled or not.

Returns
Tickbox is enabled true or false

Definition at line 510 of file SCR_BaseEditorAttributeUIComponent.c.

◆ HideAttributeDescription()

void SCR_BaseEditorAttributeUIComponent::HideAttributeDescription ( )
inlineprotected

Definition at line 374 of file SCR_BaseEditorAttributeUIComponent.c.

◆ if() [1/5]

SCR_BaseEditorAttributeUIComponent::if ( !m_TickBoxAttribute. GetToggled) &&m_TickBoxAttribute.IsVisibleAndEnabled()
inlineprotected

Definition at line 308 of file SCR_BaseEditorAttributeUIComponent.c.

◆ if() [2/5]

SCR_BaseEditorAttributeUIComponent::if ( dynamicDescription )
inlineprotected

Definition at line 343 of file SCR_BaseEditorAttributeUIComponent.c.

◆ if() [3/5]

SCR_BaseEditorAttributeUIComponent::if ( dynamicDescription )
inlineprotected

Definition at line 330 of file SCR_BaseEditorAttributeUIComponent.c.

◆ if() [4/5]

SCR_BaseEditorAttributeUIComponent::if ( m_bShowButtonDescription && !buttonDynamicDescription||!buttonDynamicDescription.HasPriorityOverButton())
inlineprotected

Definition at line 336 of file SCR_BaseEditorAttributeUIComponent.c.

◆ if() [5/5]

SCR_BaseEditorAttributeUIComponent::if ( m_GamePadLockedSelector )
inlineprotected

Definition at line 653 of file SCR_BaseEditorAttributeUIComponent.c.

◆ Init()

Initialize GUI from attribute To be overridden by inherited classes param w Widget this component is attached to param attribute Editor attribute this component represents *void SCR_BaseEditorAttributeUIComponent::Init ( Widget w,
SCR_BaseEditorAttribute attribute )
inlineprotected

Definition at line 115 of file SCR_BaseEditorAttributeUIComponent.c.

◆ OnChangeInternal()

bool SCR_BaseEditorAttributeUIComponent::OnChangeInternal ( Widget w,
int x,
int y,
bool finished )
inlineprotected

Definition at line 282 of file SCR_BaseEditorAttributeUIComponent.c.

◆ OnFocus()

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

Definition at line 586 of file SCR_BaseEditorAttributeUIComponent.c.

◆ OnFocusAttributeWidget()

void SCR_BaseEditorAttributeUIComponent::OnFocusAttributeWidget ( Widget w)
inlineprotected

Callback for focus of widget used.

Definition at line 579 of file SCR_BaseEditorAttributeUIComponent.c.

◆ OnFocusLost()

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

Definition at line 603 of file SCR_BaseEditorAttributeUIComponent.c.

◆ OnMouseEnter()

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

Definition at line 613 of file SCR_BaseEditorAttributeUIComponent.c.

◆ OnMouseLeave()

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

Definition at line 618 of file SCR_BaseEditorAttributeUIComponent.c.

◆ OnTickboxToggleChanged()

void SCR_BaseEditorAttributeUIComponent::OnTickboxToggleChanged ( bool toggle)
inlineprotected

Definition at line 530 of file SCR_BaseEditorAttributeUIComponent.c.

◆ SetAsSubAttribute()

void SCR_BaseEditorAttributeUIComponent::SetAsSubAttribute ( )
inlineprotected

Definition at line 258 of file SCR_BaseEditorAttributeUIComponent.c.

◆ SetAttributeDescription()

m_AttributeManager SCR_BaseEditorAttributeUIComponent::SetAttributeDescription ( GetAttribute().GetUIInfo() )
protected

◆ SetFromVar()

void SCR_BaseEditorAttributeUIComponent::SetFromVar ( SCR_BaseEditorAttributeVar var)
inlineprotected

Update GUI from attribute variable. Called when attributes are initialized in a dialog or when they are reset based on user request.

Parameters
varAttribute variable

Definition at line 87 of file SCR_BaseEditorAttributeUIComponent.c.

◆ SetFromVarOrDefault()

void SCR_BaseEditorAttributeUIComponent::SetFromVarOrDefault ( )
inlineprotected

Definition at line 92 of file SCR_BaseEditorAttributeUIComponent.c.

◆ SetGamepadLockSelectorActive()

void SCR_BaseEditorAttributeUIComponent::SetGamepadLockSelectorActive ( bool isGamepad)
inlineprotected

Definition at line 625 of file SCR_BaseEditorAttributeUIComponent.c.

◆ SetVariableToDefaultValue()

void SCR_BaseEditorAttributeUIComponent::SetVariableToDefaultValue ( SCR_BaseEditorAttributeVar var)
inlineprotected

Definition at line 441 of file SCR_BaseEditorAttributeUIComponent.c.

◆ ShowButtonDescription()

void SCR_BaseEditorAttributeUIComponent::ShowButtonDescription ( SCR_AttributeButtonUIComponent button,
bool showButtonDescription,
string buttonDescription = string.Empty )
inlineprotected

Definition at line 383 of file SCR_BaseEditorAttributeUIComponent.c.

◆ ToggleButtonSelected()

void SCR_BaseEditorAttributeUIComponent::ToggleButtonSelected ( bool selected,
int index,
bool animated = true )
inlineprotected

Definition at line 252 of file SCR_BaseEditorAttributeUIComponent.c.

◆ ToggleEnable()

void SCR_BaseEditorAttributeUIComponent::ToggleEnable ( bool enabled)
inlineprotected

Toggle UI enabled. Disabled will delete the var if is conflicting var /param bool enable true or false

Definition at line 461 of file SCR_BaseEditorAttributeUIComponent.c.

◆ ToggleEnableAttribute()

void SCR_BaseEditorAttributeUIComponent::ToggleEnableAttribute ( bool enabled)
inlineprotected

Definition at line 446 of file SCR_BaseEditorAttributeUIComponent.c.

◆ ToggleEnableAttributeTickbox()

void SCR_BaseEditorAttributeUIComponent::ToggleEnableAttributeTickbox ( )
inlineprotected

Toggle tickbox UI, flipping the tickbox from true to false and viceversa

Definition at line 518 of file SCR_BaseEditorAttributeUIComponent.c.

Member Data Documentation

◆ buttonDynamicDescription

SCR_BaseButtonAttributeDynamicDescription SCR_BaseEditorAttributeUIComponent::buttonDynamicDescription
protected

Definition at line 329 of file SCR_BaseEditorAttributeUIComponent.c.

◆ dynamicDescription

SCR_BaseAttributeDynamicDescription SCR_BaseEditorAttributeUIComponent::dynamicDescription
protected

Definition at line 318 of file SCR_BaseEditorAttributeUIComponent.c.

◆ dynamicDescriptionArray

array<SCR_BaseAttributeDynamicDescription> SCR_BaseEditorAttributeUIComponent::dynamicDescriptionArray = {}
protected

Definition at line 314 of file SCR_BaseEditorAttributeUIComponent.c.

◆ Event_OnAttributeChanged

ref ScriptInvoker SCR_BaseEditorAttributeUIComponent::Event_OnAttributeChanged = new ScriptInvoker
protected

Definition at line 47 of file SCR_BaseEditorAttributeUIComponent.c.

◆ Event_OnAttributeUIFocusChanged

ref ScriptInvoker SCR_BaseEditorAttributeUIComponent::Event_OnAttributeUIFocusChanged = new ScriptInvoker
protected

Definition at line 49 of file SCR_BaseEditorAttributeUIComponent.c.

◆ Event_OnEnabledByAttribute

ref ScriptInvoker SCR_BaseEditorAttributeUIComponent::Event_OnEnabledByAttribute = new ScriptInvoker
protected

Definition at line 48 of file SCR_BaseEditorAttributeUIComponent.c.

◆ Event_OnInputDeviceChanged

ref ScriptInvoker SCR_BaseEditorAttributeUIComponent::Event_OnInputDeviceChanged = new ScriptInvoker
protected

Definition at line 50 of file SCR_BaseEditorAttributeUIComponent.c.

◆ Event_OnMouseLeave

ref ScriptInvoker SCR_BaseEditorAttributeUIComponent::Event_OnMouseLeave = new ScriptInvoker
protected

Definition at line 51 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_ActiveButtonDescription

SCR_AttributeButtonUIComponent SCR_BaseEditorAttributeUIComponent::m_ActiveButtonDescription
protected

Definition at line 24 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_AttributeManager

SCR_AttributesManagerEditorComponent SCR_BaseEditorAttributeUIComponent::m_AttributeManager
protected

Definition at line 32 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_bEnabledByAttribute

bool SCR_BaseEditorAttributeUIComponent::m_bEnabledByAttribute
protected

Definition at line 37 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_bEnabledByTickbox

bool SCR_BaseEditorAttributeUIComponent::m_bEnabledByTickbox
protected

Definition at line 38 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_bIsFocused

bool SCR_BaseEditorAttributeUIComponent::m_bIsFocused
protected

Definition at line 39 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_bIsShowingDescription [1/2]

SCR_BaseEditorAttributeUIComponent::m_bIsShowingDescription = true
protected

Definition at line 305 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_bIsShowingDescription [2/2]

bool SCR_BaseEditorAttributeUIComponent::m_bIsShowingDescription
protected

Definition at line 42 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_bIsSubAttribute

bool SCR_BaseEditorAttributeUIComponent::m_bIsSubAttribute
protected

Definition at line 29 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_bShowButtonDescription

bool SCR_BaseEditorAttributeUIComponent::m_bShowButtonDescription
protected

Definition at line 43 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_ButtonDescriptionUIInfo

ref SCR_EditorAttributeUIInfo SCR_BaseEditorAttributeUIComponent::m_ButtonDescriptionUIInfo = new SCR_EditorAttributeUIInfo
protected

Definition at line 23 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_fBottomPadding

float SCR_BaseEditorAttributeUIComponent::m_fBottomPadding = 1
protected

Definition at line 28 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_fSubAttributeDisabledAlphaColor

float SCR_BaseEditorAttributeUIComponent::m_fSubAttributeDisabledAlphaColor
protectedattribute

Definition at line 21 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_GamePadLockedSelector

Widget SCR_BaseEditorAttributeUIComponent::m_GamePadLockedSelector
protected

Definition at line 31 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_InputManager

InputManager SCR_BaseEditorAttributeUIComponent::m_InputManager
protected

Definition at line 33 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_sAttributeHolder

string SCR_BaseEditorAttributeUIComponent::m_sAttributeHolder
protected

Definition at line 12 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_sButtonDescription

string SCR_BaseEditorAttributeUIComponent::m_sButtonDescription
protected

Definition at line 44 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_sButtonDescriptionParam1

string SCR_BaseEditorAttributeUIComponent::m_sButtonDescriptionParam1
protected

Definition at line 45 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_sGamePadLockedSelectorName

string SCR_BaseEditorAttributeUIComponent::m_sGamePadLockedSelectorName
protected

Definition at line 15 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_sSubAttributeIndicatorName

string SCR_BaseEditorAttributeUIComponent::m_sSubAttributeIndicatorName
protectedattribute

Definition at line 18 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_sTickBoxAttributeName

string SCR_BaseEditorAttributeUIComponent::m_sTickBoxAttributeName
protected

Definition at line 9 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_SubAttributeIndicator

Widget SCR_BaseEditorAttributeUIComponent::m_SubAttributeIndicator
protected

Definition at line 34 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_sUiComponentName

string SCR_BaseEditorAttributeUIComponent::m_sUiComponentName
protected

Definition at line 6 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_TickBoxAttribute

SCR_AttributeTickboxUIComponent SCR_BaseEditorAttributeUIComponent::m_TickBoxAttribute
protected

Definition at line 30 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_UIComponent

SCR_ChangeableComponentBase SCR_BaseEditorAttributeUIComponent::m_UIComponent
protected

Definition at line 26 of file SCR_BaseEditorAttributeUIComponent.c.

◆ m_wAttributeHolder

Widget SCR_BaseEditorAttributeUIComponent::m_wAttributeHolder
protected

Definition at line 35 of file SCR_BaseEditorAttributeUIComponent.c.


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