Arma Reforger Script API
|
Map tool menu entry data class. More...
Public Member Functions | |
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 () |
void | SCR_MapToolEntry (SCR_MapToolMenuUI menu, ResourceName imageset, string icon, int sortPriority=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() |
Protected Member Functions | |
void | SetColor (Color color) |
Set entry image color. | |
void | SetBorderColor (Color color) |
Set border color. | |
void | OnClick () |
On click callback. | |
Protected Attributes | |
bool | m_bToolActive |
bool | m_bIsEnabled = true |
bool | m_bIsVisible = true |
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 |
||
) |
[in] | menu | |
[in] | imageset | |
[in] | icon | |
[in] | sortPriority |
string SCR_MapToolEntry.GetImageSet | ( | ) |
|
static |
bool SCR_MapToolEntry.IsEntryActive | ( | ) |
bool SCR_MapToolEntry.IsEntryEnabled | ( | ) |
Whether entry can be activated.
|
protected |
On click callback.
void SCR_MapToolEntry.SetActive | ( | bool | toolActive | ) |
Activation behavior, ON/OFF if entry is active (visual distinction)
|
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 |
SCR_ToolMenuButtonComponent SCR_MapToolEntry.m_ButtonComp |
int SCR_MapToolEntry.m_iSortPriority |
ref ScriptInvoker SCR_MapToolEntry.m_OnClick = new ScriptInvoker() |
SCR_MapToolMenuUI SCR_MapToolEntry.m_OwnerMenu |
string SCR_MapToolEntry.m_sIconQuad |
ResourceName SCR_MapToolEntry.m_sImageSet |
|
staticprotected |