Arma Reforger Script API
|
Public Member Functions | |
void | ToggleTickbox (bool toggled) |
Set if tickbox is toggled or not. | |
void | ToggleEnableByAttribute (bool enabled) |
If subAttribute toggles the tickbox if the 'parent' attribute disabled the attribute. | |
bool | GetToggled () |
Get if tickbox is toggled or not. | |
bool | IsVisibleAndEnabled () |
Get if tickbox is visible and enabled. | |
ScriptInvokerBool | GetOnToggleChanged () |
bool | GetEnabled () |
Get if tickbox is enabled or not. | |
void | InitTickbox (bool toggleState, SCR_BaseEditorAttributeUIComponent attributeUI, TypeName linkedOverrideAttributeType=TypeName.Empty) |
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. | |
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. | |
override void | HandlerAttached (Widget w) |
override void | HandlerDeattached (Widget w) |
Protected Member Functions | |
void | OnButtonToggle () |
void | SetVisible (bool frameVisible, bool buttonVisible) |
Set tickbox's visibility. | |
void | SetEnabled (bool enabled) |
void | OnAttributeEnabledByAttribute (bool enabled) |
Protected Attributes | |
string | m_sTickBoxImageName |
string | m_sTickBoxButtonName |
ResourceName | m_sTickBoxImageToggled |
ResourceName | m_sTickBoxImageUntoggled |
SCR_BaseEditorAttributeUIComponent | m_AttributeUI |
TypeName | 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 |
Using a controller will show/hide the Select button hint if the attribute with this script is focused on
bool SCR_AttributeTickboxUIComponent.GetEnabled | ( | ) |
Get if tickbox is enabled or not.
ScriptInvokerBool SCR_AttributeTickboxUIComponent.GetOnToggleChanged | ( | ) |
bool SCR_AttributeTickboxUIComponent.GetToggled | ( | ) |
Get if tickbox is toggled or not.
override void SCR_AttributeTickboxUIComponent.HandlerAttached | ( | Widget | w | ) |
override void SCR_AttributeTickboxUIComponent.HandlerDeattached | ( | Widget | w | ) |
void SCR_AttributeTickboxUIComponent.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 SCR_AttributeTickboxUIComponent.InitTickbox | ( | bool | toggleState, |
SCR_BaseEditorAttributeUIComponent | attributeUI, | ||
TypeName | linkedOverrideAttributeType = TypeName::Empty |
||
) |
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.
toggleState | |
attributeUI | |
linkedOverrideAttributeType |
bool SCR_AttributeTickboxUIComponent.IsVisibleAndEnabled | ( | ) |
Get if tickbox is visible and enabled.
|
protected |
|
protected |
|
protected |
|
protected |
Set tickbox's visibility.
frameVisible | |
buttonVisible |
void SCR_AttributeTickboxUIComponent.ToggleEnableByAttribute | ( | bool | enabled | ) |
If subAttribute toggles the tickbox if the 'parent' attribute disabled the attribute.
enabled,If | true sets itself as enabled. Else disables it |
void SCR_AttributeTickboxUIComponent.ToggleTickbox | ( | bool | toggled | ) |
Set if tickbox is toggled or not.
toggled | If toggled editing the attribute is enabled (unless the attribute itself is disabled) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |