RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Member Functions | Private Attributes
RoR::AngelScriptExamples Class Reference

#include <GUI_AngelScriptExamples.h>

Public Member Functions

void Draw ()
 

Private Member Functions

void DrawRowSlider (const char *nameStr, std::string codeStr, const char *descStr, float min, float max, float &var_ref)
 
void DrawRowText (const char *nameStr, std::string codeStr, const char *descStr)
 
void DrawRowCheckbox (const char *nameStr, std::string codeStr, const char *descStr, bool &var_ref, const char *label)
 
void DrawRowInt (const char *nameStr, std::string codeStr, const char *descStr, int &var_ref)
 
void DrawRowIntCheckbox (const char *nameStr, std::string codeStr, const char *descStr, int &var_ref, bool &on, const char *label)
 
void DrawRowIntNode (const char *nameStr, std::string codeStr, const char *descStr, int &var_ref, int &node_x, int &node_y, int &node_z)
 
void ExecuteString (std::string const &code)
 Runs code using 'as' console command. More...
 

Private Attributes

float scale = 1.f
 
float mass = 1000.f
 
bool reset = false
 
bool locked = false
 
int light = 1
 
int blink = 1
 
int node = 1
 
bool visible = false
 
int custom_light = 1
 

Detailed Description

Definition at line 26 of file GUI_AngelScriptExamples.h.

Member Function Documentation

◆ Draw()

void AngelScriptExamples::Draw ( )

Definition at line 22 of file GUI_AngelScriptExamples.cpp.

+ Here is the call graph for this function:

◆ DrawRowCheckbox()

void AngelScriptExamples::DrawRowCheckbox ( const char *  nameStr,
std::string  codeStr,
const char *  descStr,
bool &  var_ref,
const char *  label 
)
private

Definition at line 87 of file GUI_AngelScriptExamples.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawRowInt()

void AngelScriptExamples::DrawRowInt ( const char *  nameStr,
std::string  codeStr,
const char *  descStr,
int &  var_ref 
)
private

Definition at line 100 of file GUI_AngelScriptExamples.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawRowIntCheckbox()

void AngelScriptExamples::DrawRowIntCheckbox ( const char *  nameStr,
std::string  codeStr,
const char *  descStr,
int &  var_ref,
bool &  on,
const char *  label 
)
private

Definition at line 134 of file GUI_AngelScriptExamples.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawRowIntNode()

void AngelScriptExamples::DrawRowIntNode ( const char *  nameStr,
std::string  codeStr,
const char *  descStr,
int &  var_ref,
int &  node_x,
int &  node_y,
int &  node_z 
)
private

Definition at line 117 of file GUI_AngelScriptExamples.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawRowSlider()

void AngelScriptExamples::DrawRowSlider ( const char *  nameStr,
std::string  codeStr,
const char *  descStr,
float  min,
float  max,
float &  var_ref 
)
private

Definition at line 57 of file GUI_AngelScriptExamples.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawRowText()

void AngelScriptExamples::DrawRowText ( const char *  nameStr,
std::string  codeStr,
const char *  descStr 
)
private

Definition at line 74 of file GUI_AngelScriptExamples.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ExecuteString()

void AngelScriptExamples::ExecuteString ( std::string const &  code)
private

Runs code using 'as' console command.

Definition at line 153 of file GUI_AngelScriptExamples.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ blink

int RoR::AngelScriptExamples::blink = 1
private

Definition at line 45 of file GUI_AngelScriptExamples.h.

◆ custom_light

int RoR::AngelScriptExamples::custom_light = 1
private

Definition at line 48 of file GUI_AngelScriptExamples.h.

◆ light

int RoR::AngelScriptExamples::light = 1
private

Definition at line 44 of file GUI_AngelScriptExamples.h.

◆ locked

bool RoR::AngelScriptExamples::locked = false
private

Definition at line 43 of file GUI_AngelScriptExamples.h.

◆ mass

float RoR::AngelScriptExamples::mass = 1000.f
private

Definition at line 41 of file GUI_AngelScriptExamples.h.

◆ node

int RoR::AngelScriptExamples::node = 1
private

Definition at line 46 of file GUI_AngelScriptExamples.h.

◆ reset

bool RoR::AngelScriptExamples::reset = false
private

Definition at line 42 of file GUI_AngelScriptExamples.h.

◆ scale

float RoR::AngelScriptExamples::scale = 1.f
private

Definition at line 40 of file GUI_AngelScriptExamples.h.

◆ visible

bool RoR::AngelScriptExamples::visible = false
private

Definition at line 47 of file GUI_AngelScriptExamples.h.


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