Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Public Member Functions
Script2Game::DashBoardManagerClass Class Reference

Description

Binding of RoR::DashBoardManager.

Allows you to modify custom dashboard inputs in AngelScript.

Definition at line 14 of file DashBoardManagerClass.h.

Public Member Functions

bool getBool (int key)
 
float getNumeric (int key)
 
string getString (int key)
 
bool getEnabled (int key)
 
void setBool (int key, bool value)
 
void setInt (int key, int value)
 
void setFloat (int key, float value)
 
void setString (int key, const string &value)
 
void setEnabled (int key, bool value)
 
DashboardDataTypes getDataType (int key)
 
int getLinkIDForName (string &key)
 
void updateFeatures ()
 

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: