Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Member Functions
Script2Game::DashBoardManagerClass Class Reference

Binding of RoR::DashBoardManager. More...

#include <DashBoardManagerClass.h>

Public Member Functions

bool getBool (int key)
 Gets the boolean value of the given dashboard link ID.
 
float getNumeric (int key)
 Gets the numeric value of the given dashboard link ID.
 
string getString (int key)
 Gets the string value of the given dashboard link ID.
 
bool getEnabled (int key)
 
void setBool (int key, bool value)
 Sets a boolean value to the given dashboard link ID.
 
void setInt (int key, int value)
 Sets an integer value to the given dashboard link ID.
 
void setFloat (int key, float value)
 Sets a floating point value to the given dashboard link ID.
 
void setString (int key, const string &value)
 Sets a string value to the given dashboard link ID.
 
void setEnabled (int key, bool value)
 Enables or disables the given dashboard input.
 
DashboardDataTypes getDataType (int key)
 
int getLinkIDForName (string &key)
 
void updateFeatures ()
 Updates the visibility of all the dashboard controls linked to the manager, according to the enabled/disabled status of their dashboard input link.
 

Detailed Description

Binding of RoR::DashBoardManager.

Allows you to modify custom dashboard inputs in AngelScript.

Definition at line 14 of file DashBoardManagerClass.h.

Member Function Documentation

◆ getBool()

bool Script2Game::DashBoardManagerClass::getBool ( int  key)

Gets the boolean value of the given dashboard link ID.

◆ getDataType()

DashboardDataTypes Script2Game::DashBoardManagerClass::getDataType ( int  key)
Returns
The data type of the given dashboard input.

◆ getEnabled()

bool Script2Game::DashBoardManagerClass::getEnabled ( int  key)
Returns
Whether the dashboard input is enabled or not.

◆ getLinkIDForName()

int Script2Game::DashBoardManagerClass::getLinkIDForName ( string &  key)
Returns
The link ID associated to the dashboard input name.

◆ getNumeric()

float Script2Game::DashBoardManagerClass::getNumeric ( int  key)

Gets the numeric value of the given dashboard link ID.

◆ getString()

string Script2Game::DashBoardManagerClass::getString ( int  key)

Gets the string value of the given dashboard link ID.

◆ setBool()

void Script2Game::DashBoardManagerClass::setBool ( int  key,
bool  value 
)

Sets a boolean value to the given dashboard link ID.

◆ setEnabled()

void Script2Game::DashBoardManagerClass::setEnabled ( int  key,
bool  value 
)

Enables or disables the given dashboard input.

Call updateFeatures() afterwards to make your changes effective.

◆ setFloat()

void Script2Game::DashBoardManagerClass::setFloat ( int  key,
float  value 
)

Sets a floating point value to the given dashboard link ID.

◆ setInt()

void Script2Game::DashBoardManagerClass::setInt ( int  key,
int  value 
)

Sets an integer value to the given dashboard link ID.

◆ setString()

void Script2Game::DashBoardManagerClass::setString ( int  key,
const string &  value 
)

Sets a string value to the given dashboard link ID.

◆ updateFeatures()

void Script2Game::DashBoardManagerClass::updateFeatures ( )

Updates the visibility of all the dashboard controls linked to the manager, according to the enabled/disabled status of their dashboard input link.


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