Loading...
Searching...
No Matches
DiagMenu Interface Reference

Diagnostic and developer menu system. More...

Static Public Member Functions

static proto void RegisterMenu (int id, string name, string parent)
 Registers a new menu.
 
static proto void RegisterItem (int id, string shortcut, string name, string parent, string values)
 Registers a new item in a menu.
 
static proto void Unregister (int id)
 Unregisters a menu or item by id.
 
static proto void RegisterBool (int id, string shortcut, string name, string parent, bool reverse=false)
 Registers a boolean setting.
 
static proto void RegisterRange (int id, string shortcut, string name, string parent, string valuenames)
 Registers a range-setting menu item.
 
static proto bool GetBool (int id, bool reverse=false)
 Gets the value of a boolean item.
 
static proto int GetValue (int id)
 Gets the value of an integer menu item.
 
static proto void SetValue (int id, int value)
 Sets an integer value for an item.
 
static proto float GetRangeValue (int id)
 Gets the floating-point value for a range item.
 
static proto void SetRangeValue (int id, float value)
 Sets the floating-point value for a range item.
 
static proto void SetEngineValue (int id, int value)
 Sets an engine value directly.
 
static proto int GetEngineValue (int id)
 Gets an engine integer value.
 
static proto void SetEngineRangeValue (int id, float value)
 Sets an engine float value for a range item.
 
static proto float GetEngineRangeValue (int id)
 Gets an engine float value for a range item.
 
static proto void SelectMenuByName (string name)
 Selects a menu by its name.
 
static proto void SelectMenuById (int id)
 Selects a menu by its id.
 

Detailed Description

Diagnostic and developer menu system.

Note
Check EDiagMenu enum for 'id' values \

Member Function Documentation

◆ GetBool()

static proto bool DiagMenu.GetBool ( int id,
bool reverse = false )
static

Gets the value of a boolean item.

Parameters
idBoolean item identifier.
reverseIf true, the value is logically inverted.
Returns
Boolean value (true or false).

◆ GetEngineRangeValue()

static proto float DiagMenu.GetEngineRangeValue ( int id)
static

Gets an engine float value for a range item.

Parameters
idIdentifier.
Returns
Float value.

◆ GetEngineValue()

static proto int DiagMenu.GetEngineValue ( int id)
static

Gets an engine integer value.

Parameters
idIdentifier.
Returns
Integer value.

◆ GetRangeValue()

static proto float DiagMenu.GetRangeValue ( int id)
static

Gets the floating-point value for a range item.

Parameters
idRange item identifier.
Returns
Current float value.

◆ GetValue()

static proto int DiagMenu.GetValue ( int id)
static

Gets the value of an integer menu item.

Parameters
idItem identifier.
Returns
Integer value.

◆ RegisterBool()

static proto void DiagMenu.RegisterBool ( int id,
string shortcut,
string name,
string parent,
bool reverse = false )
static

Registers a boolean setting.

Parameters
idUnique identifier.
shortcutShortcut key(s), e.g. "lctrl+lshift+f"; supported keys: lctrl, rctrl, lshift, rshift, shift, lalt, ralt, a-z, 0-9, num0-num9, f1-f12.
nameDisplay name for the boolean item.
parentParent menu name.
reverseIf true, the boolean sense is inverted.

◆ RegisterItem()

static proto void DiagMenu.RegisterItem ( int id,
string shortcut,
string name,
string parent,
string values )
static

Registers a new item in a menu.

Parameters
idUnique item identifier.
shortcutShortcut key(s), e.g. "lctrl+lshift+f"; supported keys: lctrl, rctrl, lshift, rshift, shift, lalt, ralt, a-z, 0-9, num0-num9, f1-f12.
nameItem name.
parentParent menu name.
valuesList of possible values for the item.

◆ RegisterMenu()

static proto void DiagMenu.RegisterMenu ( int id,
string name,
string parent )
static

Registers a new menu.

Parameters
idUnique menu identifier.
nameMenu name.
parentParent menu name.

◆ RegisterRange()

static proto void DiagMenu.RegisterRange ( int id,
string shortcut,
string name,
string parent,
string valuenames )
static

Registers a range-setting menu item.

Range value is defined as "min,max,startValue,step". E.g. "-2, 2, 0, 0.1" creates a variable in range [-2,2], starting at 0, step size 0.1.

Parameters
idUnique identifier.
shortcutShortcut key(s), e.g. "lctrl+lshift+f"; supported keys: lctrl, rctrl, lshift, rshift, shift, lalt, ralt, a-z, 0-9, num0-num9, f1-f12.
nameDisplay name.
parentParent menu name.
valuenamesString representing the range parameters.

◆ SelectMenuById()

static proto void DiagMenu.SelectMenuById ( int id)
static

Selects a menu by its id.

Parameters
idMenu identifier.

◆ SelectMenuByName()

static proto void DiagMenu.SelectMenuByName ( string name)
static

Selects a menu by its name.

Parameters
nameMenu name.

◆ SetEngineRangeValue()

static proto void DiagMenu.SetEngineRangeValue ( int id,
float value )
static

Sets an engine float value for a range item.

Parameters
idIdentifier.
valueValue to set.

◆ SetEngineValue()

static proto void DiagMenu.SetEngineValue ( int id,
int value )
static

Sets an engine value directly.

Warning
Only for debugging.
Parameters
idIdentifier.
valueValue to set.

◆ SetRangeValue()

static proto void DiagMenu.SetRangeValue ( int id,
float value )
static

Sets the floating-point value for a range item.

Parameters
idRange item identifier.
valueValue to set.

◆ SetValue()

static proto void DiagMenu.SetValue ( int id,
int value )
static

Sets an integer value for an item.

Parameters
idItem identifier.
valueValue to set.

◆ Unregister()

static proto void DiagMenu.Unregister ( int id)
static

Unregisters a menu or item by id.

Parameters
idIdentifier of the element to unregister.

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