Arma Reforger Script API
|
Scripted base for selection menu used in HUD. More...
Public Member Functions | |
ScriptInvoker | GetOnBeforeOpen () |
ScriptInvoker | GetOnOpen () |
ScriptInvoker | GetOnClose () |
ScriptInvoker | GetOnSelect () |
ScriptInvoker | GetOnOpenFailed () |
ScriptInvoker | GetOnPerform () |
ScriptInvoker | GetOnOpenCategory () |
ScriptInvoker | GetOnAddEntry () |
ScriptInvoker | GetOnRemoveEntry () |
ScriptInvoker | GetOnUpdateEntries () |
ScriptInvoker | GetOnControllerChanged () |
void | Open () |
void | Close () |
Callback when close is requested. | |
void | Update (float timeSlice) |
void | Init () |
void | PerformEntry (notnull SCR_SelectionMenuEntry entry) |
void | AddEntry (SCR_SelectionMenuEntry entry=null) |
Add new entry into menu root Entries update is notified only if menu is opened in root level. | |
void | AddCategoryEntry (SCR_SelectionMenuCategoryEntry category=null) |
Add empty or custom category entry. | |
void | AddEntries (notnull array< ref SCR_SelectionMenuEntry > entries, bool replace=false) |
Add multiple entries in array Replace true will clear menu and use given entries. | |
void | UpdateEntries () |
Invoke data update for all entries. | |
void | UpdateSelectedEntries (notnull array< ref SCR_SelectionMenuEntry > entries) |
Invoke data update for selected entries. | |
void | RemoveEntry (notnull SCR_SelectionMenuEntry entry) |
Remove selected entry and invoke data update. | |
void | ClearEntries () |
Clear all entries and invoke data update. | |
SCR_SelectionMenuCategoryEntry | CurrentCategory () |
Return current opened category entry Null means menu is in root. | |
void | SetMenuDisplay (SCR_SelectionMenuDisplay display=null) |
Find and setup display used for menu. | |
bool | IsOpened () |
void | SetController (IEntity owner, SCR_SelectionMenuControllerInputs controls) |
Set controller entity and controls. | |
SCR_SelectionMenuControllerInputs | GetControllerInputs () |
SCR_SelectionMenuEntry | GetSelectionEntry () |
int | GetSelectedEntryId () |
bool | GetEntryPerformed () |
array< ref SCR_SelectionMenuEntry > | GetEntries () |
int | GetEntryCount () |
bool | HasDisplay () |
Protected Member Functions | |
void | InvokeOnBeforeOpen () |
void | InvokeOnOpen () |
void | InvokeOnClose () |
void | InvokeOnSelect (SCR_SelectionMenuEntry entry, int id) |
void | InvokeOnPerform (SCR_SelectionMenuEntry entry) |
void | InvokeOnOpenCategory (SCR_SelectionMenuCategoryEntry entry, int level) |
void | InvokeOnAddEntry (SCR_SelectionMenuEntry entry) |
void | InvokeOnRemoveEntry (SCR_SelectionMenuEntry entry) |
void | InvokeOnUpdateEntries (array< ref SCR_SelectionMenuEntry > entries) |
void | InvokeOnControllerChanged (SCR_SelectionMenuControllerInputs inputs) |
void | AllowClosing () |
Allow closing after some time in order to have alternative toggle action with double press. | |
void | OnOpen () |
Empty method called on open ready for override. | |
void | OnClose () |
Empty method called on close ready for override. | |
void | OnUpdate (float timeSlice) |
Empty method called on update ready for override. | |
void | PlaySound (string sound) |
void | SelectEntry () |
Generic method for custom entry selection based on used interface. | |
void | OpenCategoryEntry (notnull SCR_SelectionMenuCategoryEntry category) |
Specific peform action for category to change menu content. | |
void | LeaveCategory () |
void | OpenInRoot () |
Clear open categories and use entries from root. | |
void | AddActionListeners () |
Add all action listeners for basic menu control. | |
void | RemoveActionListeners () |
Remove all action listeners for basic menu control. | |
void | OnOpenInputRelease (float value, EActionTrigger reason) |
On open input handle menu closing. | |
void | OnPerformInput () |
On select input handle entry selection and moving into layers. | |
void | OnBackInput () |
void | OnAlternativeToggleInput () |
void | DebugPrint (string method, string msg) |
Static Protected Attributes | |
const int | OPEN_DELAY = 200 |
Scripted base for selection menu used in HUD.
|
protected |
Add all action listeners for basic menu control.
Implemented in SCR_RadialMenu.
void SCR_SelectionMenu.AddCategoryEntry | ( | SCR_SelectionMenuCategoryEntry | category = null | ) |
Add empty or custom category entry.
void SCR_SelectionMenu.AddEntries | ( | notnull array< ref SCR_SelectionMenuEntry > | entries, |
bool | replace = false |
||
) |
Add multiple entries in array Replace true will clear menu and use given entries.
void SCR_SelectionMenu.AddEntry | ( | SCR_SelectionMenuEntry | entry = null | ) |
Add new entry into menu root Entries update is notified only if menu is opened in root level.
|
protected |
Allow closing after some time in order to have alternative toggle action with double press.
void SCR_SelectionMenu.ClearEntries | ( | ) |
Clear all entries and invoke data update.
void SCR_SelectionMenu.Close | ( | ) |
Callback when close is requested.
SCR_SelectionMenuCategoryEntry SCR_SelectionMenu.CurrentCategory | ( | ) |
Return current opened category entry Null means menu is in root.
|
protected |
SCR_SelectionMenuControllerInputs SCR_SelectionMenu.GetControllerInputs | ( | ) |
array< ref SCR_SelectionMenuEntry > SCR_SelectionMenu.GetEntries | ( | ) |
int SCR_SelectionMenu.GetEntryCount | ( | ) |
bool SCR_SelectionMenu.GetEntryPerformed | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnAddEntry | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnBeforeOpen | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnClose | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnControllerChanged | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnOpen | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnOpenCategory | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnOpenFailed | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnPerform | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnRemoveEntry | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnSelect | ( | ) |
ScriptInvoker SCR_SelectionMenu.GetOnUpdateEntries | ( | ) |
int SCR_SelectionMenu.GetSelectedEntryId | ( | ) |
SCR_SelectionMenuEntry SCR_SelectionMenu.GetSelectionEntry | ( | ) |
bool SCR_SelectionMenu.HasDisplay | ( | ) |
void SCR_SelectionMenu.Init | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Implemented in SCR_RadialMenu.
bool SCR_SelectionMenu.IsOpened | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Empty method called on close ready for override.
Implemented in SCR_RadialMenu.
|
protected |
Empty method called on open ready for override.
Implemented in SCR_RadialMenu.
|
protected |
On open input handle menu closing.
|
protected |
On select input handle entry selection and moving into layers.
Implemented in SCR_RadialMenu.
|
protected |
Empty method called on update ready for override.
Implemented in SCR_RadialMenu.
void SCR_SelectionMenu.Open | ( | ) |
|
protected |
Specific peform action for category to change menu content.
|
protected |
Clear open categories and use entries from root.
void SCR_SelectionMenu.PerformEntry | ( | notnull SCR_SelectionMenuEntry | entry | ) |
|
protected |
|
protected |
Remove all action listeners for basic menu control.
Implemented in SCR_RadialMenu.
void SCR_SelectionMenu.RemoveEntry | ( | notnull SCR_SelectionMenuEntry | entry | ) |
Remove selected entry and invoke data update.
|
protected |
Generic method for custom entry selection based on used interface.
Implemented in SCR_RadialMenu.
void SCR_SelectionMenu.SetController | ( | IEntity | owner, |
SCR_SelectionMenuControllerInputs | controls | ||
) |
Set controller entity and controls.
Implemented in SCR_RadialMenu.
void SCR_SelectionMenu.SetMenuDisplay | ( | SCR_SelectionMenuDisplay | display = null | ) |
Find and setup display used for menu.
Implemented in SCR_RadialMenu.
void SCR_SelectionMenu.Update | ( | float | timeSlice | ) |
Implemented in SCR_RadialMenu.
void SCR_SelectionMenu.UpdateEntries | ( | ) |
Invoke data update for all entries.
void SCR_SelectionMenu.UpdateSelectedEntries | ( | notnull array< ref SCR_SelectionMenuEntry > | entries | ) |
Invoke data update for selected entries.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |