Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AttributeTickboxUIComponent Class Reference

Using a controller will show/hide the Select button hint if the attribute with this script is focused on. More...

Inheritance diagram for SCR_AttributeTickboxUIComponent:
ScriptedWidgetComponent

Protected Member Functions

void ToggleTickbox (bool toggled)
void ToggleEnableByAttribute (bool enabled)
void OnButtonToggle ()
bool GetToggled ()
bool IsVisibleAndEnabled ()
ScriptInvokerBool GetOnToggleChanged ()
void SetVisible (bool frameVisible, bool buttonVisible)
void SetEnabled (bool enabled)
bool GetEnabled ()
void InitTickbox (bool toggleState, SCR_BaseEditorAttributeUIComponent attributeUI, typename linkedOverrideAttributeType=typename.Empty)
void InitDisabled ()
 On init as overriding attributes (multiple entities with the same attribute) but non of them are conflicting dus show the tickbox but disable it.
void OnAttributeEnabledByAttribute (bool enabled)
override void HandlerAttached (Widget w)
override void HandlerDeattached (Widget w)

Protected Attributes

string m_sTickBoxImageName
string m_sTickBoxButtonName
ResourceName m_sTickBoxImageToggled
ResourceName m_sTickBoxImageUntoggled
SCR_BaseEditorAttributeUIComponent m_AttributeUI
 m_LinkedOverrideAttributeType = typename.Empty
Widget m_Root
ImageWidget m_TickBoxImage
Widget m_TickBoxButton
float m_fDisabledAlphaColor = 0.25
bool m_bToggled
bool m_bEnabled = true
ref ScriptInvokerBool m_OnToggleChanged

Detailed Description

Using a controller will show/hide the Select button hint if the attribute with this script is focused on.

Definition at line 4 of file SCR_AttributeTickboxUIComponent.c.

Member Function Documentation

◆ GetEnabled()

bool SCR_AttributeTickboxUIComponent::GetEnabled ( )
inlineprotected

Get if tickbox is enabled or not.

Returns
Tickbox is enabled true or false

Definition at line 141 of file SCR_AttributeTickboxUIComponent.c.

◆ GetOnToggleChanged()

ScriptInvokerBool SCR_AttributeTickboxUIComponent::GetOnToggleChanged ( )
inlineprotected

Definition at line 103 of file SCR_AttributeTickboxUIComponent.c.

◆ GetToggled()

bool SCR_AttributeTickboxUIComponent::GetToggled ( )
inlineprotected

Get if tickbox is toggled or not.

Returns
m_bToggled, If toggled editing the attribute is enabled (unless the attribute itself is disabled)

Definition at line 89 of file SCR_AttributeTickboxUIComponent.c.

◆ HandlerAttached()

override void SCR_AttributeTickboxUIComponent::HandlerAttached ( Widget w)
inlineprotected

Definition at line 185 of file SCR_AttributeTickboxUIComponent.c.

◆ HandlerDeattached()

override void SCR_AttributeTickboxUIComponent::HandlerDeattached ( Widget w)
inlineprotected

Definition at line 202 of file SCR_AttributeTickboxUIComponent.c.

◆ InitDisabled()

void SCR_AttributeTickboxUIComponent::InitDisabled ( )
inlineprotected

On init as overriding attributes (multiple entities with the same attribute) but non of them are conflicting dus show the tickbox but disable it.

Definition at line 169 of file SCR_AttributeTickboxUIComponent.c.

◆ InitTickbox()

void SCR_AttributeTickboxUIComponent::InitTickbox ( bool toggleState,
SCR_BaseEditorAttributeUIComponent attributeUI,
typename linkedOverrideAttributeType = typename.Empty )
inlineprotected

On init as overriding attributes (multiple entities with the same attribute) and one or more of the values are conflicting with each other This will enable the tickbox and allow the value to be overridden for all

Parameters
toggleState
attributeUI
linkedOverrideAttributeType

Definition at line 152 of file SCR_AttributeTickboxUIComponent.c.

◆ IsVisibleAndEnabled()

bool SCR_AttributeTickboxUIComponent::IsVisibleAndEnabled ( )
inlineprotected

Get if tickbox is visible and enabled

Returns
false if the tickbox is either disabled or invisible, true otherwise

Definition at line 97 of file SCR_AttributeTickboxUIComponent.c.

◆ OnAttributeEnabledByAttribute()

void SCR_AttributeTickboxUIComponent::OnAttributeEnabledByAttribute ( bool enabled)
inlineprotected

Definition at line 179 of file SCR_AttributeTickboxUIComponent.c.

◆ OnButtonToggle()

void SCR_AttributeTickboxUIComponent::OnButtonToggle ( )
inlineprotected

Definition at line 81 of file SCR_AttributeTickboxUIComponent.c.

◆ SetEnabled()

void SCR_AttributeTickboxUIComponent::SetEnabled ( bool enabled)
inlineprotected

Definition at line 122 of file SCR_AttributeTickboxUIComponent.c.

◆ SetVisible()

void SCR_AttributeTickboxUIComponent::SetVisible ( bool frameVisible,
bool buttonVisible )
inlineprotected

Set tickbox's visibility

Parameters
frameVisible
buttonVisible

Definition at line 115 of file SCR_AttributeTickboxUIComponent.c.

◆ ToggleEnableByAttribute()

void SCR_AttributeTickboxUIComponent::ToggleEnableByAttribute ( bool enabled)
inlineprotected

If subAttribute toggles the tickbox if the 'parent' attribute disabled the attribute

Parameters
enabled,Iftrue sets itself as enabled. Else disables it

Definition at line 75 of file SCR_AttributeTickboxUIComponent.c.

◆ ToggleTickbox()

void SCR_AttributeTickboxUIComponent::ToggleTickbox ( bool toggled)
inlineprotected

Set if tickbox is toggled or not.

Parameters
toggledIf toggled editing the attribute is enabled (unless the attribute itself is disabled)

Definition at line 39 of file SCR_AttributeTickboxUIComponent.c.

Member Data Documentation

◆ m_AttributeUI

SCR_BaseEditorAttributeUIComponent SCR_AttributeTickboxUIComponent::m_AttributeUI
protected

Definition at line 21 of file SCR_AttributeTickboxUIComponent.c.

◆ m_bEnabled

bool SCR_AttributeTickboxUIComponent::m_bEnabled = true
protected

Definition at line 31 of file SCR_AttributeTickboxUIComponent.c.

◆ m_bToggled

bool SCR_AttributeTickboxUIComponent::m_bToggled
protected

Definition at line 30 of file SCR_AttributeTickboxUIComponent.c.

◆ m_fDisabledAlphaColor

float SCR_AttributeTickboxUIComponent::m_fDisabledAlphaColor = 0.25
protected

Definition at line 27 of file SCR_AttributeTickboxUIComponent.c.

◆ m_LinkedOverrideAttributeType

SCR_AttributeTickboxUIComponent::m_LinkedOverrideAttributeType = typename.Empty
protected

Definition at line 22 of file SCR_AttributeTickboxUIComponent.c.

◆ m_OnToggleChanged

ref ScriptInvokerBool SCR_AttributeTickboxUIComponent::m_OnToggleChanged
protected

Definition at line 34 of file SCR_AttributeTickboxUIComponent.c.

◆ m_Root

Widget SCR_AttributeTickboxUIComponent::m_Root
protected

Definition at line 23 of file SCR_AttributeTickboxUIComponent.c.

◆ m_sTickBoxButtonName

string SCR_AttributeTickboxUIComponent::m_sTickBoxButtonName
protected

Definition at line 11 of file SCR_AttributeTickboxUIComponent.c.

◆ m_sTickBoxImageName

string SCR_AttributeTickboxUIComponent::m_sTickBoxImageName
protected

Definition at line 8 of file SCR_AttributeTickboxUIComponent.c.

◆ m_sTickBoxImageToggled

ResourceName SCR_AttributeTickboxUIComponent::m_sTickBoxImageToggled
protected

Definition at line 15 of file SCR_AttributeTickboxUIComponent.c.

◆ m_sTickBoxImageUntoggled

ResourceName SCR_AttributeTickboxUIComponent::m_sTickBoxImageUntoggled
protected

Definition at line 18 of file SCR_AttributeTickboxUIComponent.c.

◆ m_TickBoxButton

Widget SCR_AttributeTickboxUIComponent::m_TickBoxButton
protected

Definition at line 25 of file SCR_AttributeTickboxUIComponent.c.

◆ m_TickBoxImage

ImageWidget SCR_AttributeTickboxUIComponent::m_TickBoxImage
protected

Definition at line 24 of file SCR_AttributeTickboxUIComponent.c.


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