|
Arma Reforger Script API
|
Map tool menu entry data class. More...
Public Member Functions | |
| ScriptInvokerVoid | GetOnDisableMapUIInvoker () |
| void | OnDisableMapUIComponent () |
| void | SetActive (bool toolActive) |
| Activation behavior, ON/OFF if entry is active (visual distinction) | |
| bool | IsEntryActive () |
| void | SetEnabled (bool isEnabled) |
| Disabled behavior, ON/OFF determines whether can be activated (clicked) | |
| bool | IsEntryEnabled () |
| Whether entry can be activated. | |
| void | SetVisible (bool state) |
| Visibility, determines whether the entry is visible with the menu. | |
| void | SetButtonSoundsDisabled (bool state) |
| Enable button sounds. | |
| void | UpdateVisual () |
| Update visual based on current state. | |
| string | GetImageSet () |
| bool | IsExclusiveEntry () |
| void | SCR_MapToolEntry (SCR_MapToolMenuUI menu, ResourceName imageset, string icon, int sortPriority=0, bool isExclusive=0) |
Static Public Member Functions | |
| static ScriptInvoker | GetOnEntryToggledInvoker () |
Public Attributes | |
| bool | m_bButtonSoundsDisabled |
| int | m_iSortPriority |
| ResourceName | m_sImageSet |
| string | m_sIconQuad |
| SCR_ToolMenuButtonComponent | m_ButtonComp |
| SCR_MapToolMenuUI | m_OwnerMenu |
| ref ScriptInvoker | m_OnClick = new ScriptInvoker() |
| ref ScriptInvokerVoid | m_OnDisableMapUIComponent |
Protected Member Functions | |
| void | SetColor (notnull Color color) |
| Set entry image color. | |
| void | SetBorderColor (notnull Color color) |
| Set border color. | |
| void | SetBackgroundColor (notnull Color color) |
| Set background color. | |
| void | OnClick () |
| On click callback. | |
Protected Attributes | |
| bool | m_bToolActive |
| bool | m_bIsEnabled = true |
| bool | m_bIsVisible = true |
| bool | m_bIsExclusiveEntry = false |
Static Protected Attributes | |
| static ref ScriptInvoker< SCR_MapToolEntry > | s_OnEntryToggled = new ScriptInvoker() |
Map tool menu entry data class.
| void SCR_MapToolEntry.SCR_MapToolEntry | ( | SCR_MapToolMenuUI | menu, |
| ResourceName | imageset, | ||
| string | icon, | ||
| int | sortPriority = 0, | ||
| bool | isExclusive = 0 ) |
| [in] | menu | |
| [in] | imageset | |
| [in] | icon | |
| [in] | sortPriority | |
| [in] | isExclusive |
| string SCR_MapToolEntry.GetImageSet | ( | ) |
| ScriptInvokerVoid SCR_MapToolEntry.GetOnDisableMapUIInvoker | ( | ) |
|
static |
| bool SCR_MapToolEntry.IsEntryActive | ( | ) |
| bool SCR_MapToolEntry.IsEntryEnabled | ( | ) |
Whether entry can be activated.
| bool SCR_MapToolEntry.IsExclusiveEntry | ( | ) |
|
protected |
On click callback.
| void SCR_MapToolEntry.OnDisableMapUIComponent | ( | ) |
| void SCR_MapToolEntry.SetActive | ( | bool | toolActive | ) |
Activation behavior, ON/OFF if entry is active (visual distinction)
|
protected |
Set background color.
| [in] | color | is target color |
|
protected |
Set border color.
| [in] | color | is target color |
| void SCR_MapToolEntry.SetButtonSoundsDisabled | ( | bool | state | ) |
Enable button sounds.
|
protected |
Set entry image color.
| [in] | color | is target color |
| void SCR_MapToolEntry.SetEnabled | ( | bool | isEnabled | ) |
Disabled behavior, ON/OFF determines whether can be activated (clicked)
| void SCR_MapToolEntry.SetVisible | ( | bool | state | ) |
Visibility, determines whether the entry is visible with the menu.
| void SCR_MapToolEntry.UpdateVisual | ( | ) |
Update visual based on current state.
| bool SCR_MapToolEntry.m_bButtonSoundsDisabled |
|
protected |
|
protected |
|
protected |
|
protected |
| SCR_ToolMenuButtonComponent SCR_MapToolEntry.m_ButtonComp |
| int SCR_MapToolEntry.m_iSortPriority |
| ref ScriptInvoker SCR_MapToolEntry.m_OnClick = new ScriptInvoker() |
| ref ScriptInvokerVoid SCR_MapToolEntry.m_OnDisableMapUIComponent |
| SCR_MapToolMenuUI SCR_MapToolEntry.m_OwnerMenu |
| string SCR_MapToolEntry.m_sIconQuad |
| ResourceName SCR_MapToolEntry.m_sImageSet |
|
staticprotected |