TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
carsetupscreen.cpp File Reference

Car setup screen. More...

#include <stdlib.h>
#include <tgfclient.h>
#include <car.h>
#include <portability.h>
#include <racescreens.h>
#include <robottools.h>
#include <vector>
Include dependency graph for carsetupscreen.cpp:

Go to the source code of this file.

Classes

class  cGuiSetupValue

Functions

static void enableLoadButtons ()
static void onSave (rtCarPitSetupType *type)
static void onSaveAndExit (void *vp)
static void onLoad (rtCarPitSetupType *type)
static void onActivate (void)
static void onLoadDefault (void)
void * RmCarSetupScreenInit (void *prevMenu, tCarElt *car, tRmInfo *reInfo)
 Display car setup screen, for loading, saving and changing car setups.

Variables

static void * scrHandle = NULL
static void * prevHandle = NULL
static void * rmCarHandle = NULL
static tCarPitSetup * rmSetup = NULL
static char * rmModName = NULL
static int rmIdx = 0
static char * rmTrack = NULL
static char * rmCarName = NULL
static int rmRaceType = RM_TYPE_PRACTICE
static std::vector< cGuiSetupValue * > values
static const char * unitdeg = "deg"
static const char * unitkpa = "kPa"
static const char * unitlbfin = "lbf/in"
static const char * unitmm = "mm"
static const char * unitlbfins = "lbf/in/s"
static const char * unitNm = "N.m"
static const char * unitcms = "cm/s"
static const char * f52 = "%5.2f"
static const char * f43 = "%4.3f"
static const char * d3 = "%3.0f"
static const char * d5 = "%5.0f"
static rtCarPitSetupType setuptype [6] = { PRACTICE, QUALIFYING, RACE, BACKUP1, BACKUP2, BACKUP3}
static const char * setuplabel [6] = { "Practice", "Qualifying", "Race", "Backup 1", "Backup 2", "Backup 3"}
static int loadbuttonid [6]

Detailed Description

Car setup screen.

Author
Bernhard Wymann

Definition in file carsetupscreen.cpp.

Function Documentation

◆ enableLoadButtons()

void enableLoadButtons ( )
static

Definition at line 242 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onActivate()

void onActivate ( void )
static

Definition at line 256 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onLoad()

void onLoad ( rtCarPitSetupType * type)
static

Definition at line 221 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onLoadDefault()

void onLoadDefault ( void )
static

Definition at line 262 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onSave()

void onSave ( rtCarPitSetupType * type)
static

Definition at line 152 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onSaveAndExit()

void onSaveAndExit ( void * vp)
static

Definition at line 175 of file carsetupscreen.cpp.

Here is the call graph for this function:

Variable Documentation

◆ d3

const char* d3 = "%3.0f"
static

Definition at line 213 of file carsetupscreen.cpp.

◆ d5

const char* d5 = "%5.0f"
static

Definition at line 214 of file carsetupscreen.cpp.

◆ f43

const char* f43 = "%4.3f"
static

Definition at line 212 of file carsetupscreen.cpp.

◆ f52

const char* f52 = "%5.2f"
static

Definition at line 211 of file carsetupscreen.cpp.

◆ loadbuttonid

int loadbuttonid[6]
static

Definition at line 218 of file carsetupscreen.cpp.

◆ prevHandle

void* prevHandle = NULL
static

Definition at line 36 of file carsetupscreen.cpp.

◆ rmCarHandle

void* rmCarHandle = NULL
static

Definition at line 38 of file carsetupscreen.cpp.

◆ rmCarName

char* rmCarName = NULL
static

Definition at line 43 of file carsetupscreen.cpp.

◆ rmIdx

int rmIdx = 0
static

Definition at line 41 of file carsetupscreen.cpp.

◆ rmModName

char* rmModName = NULL
static

Definition at line 40 of file carsetupscreen.cpp.

◆ rmRaceType

int rmRaceType = RM_TYPE_PRACTICE
static

Definition at line 44 of file carsetupscreen.cpp.

◆ rmSetup

tCarPitSetup* rmSetup = NULL
static

Definition at line 39 of file carsetupscreen.cpp.

◆ rmTrack

char* rmTrack = NULL
static

Definition at line 42 of file carsetupscreen.cpp.

◆ scrHandle

void* scrHandle = NULL
static

Definition at line 35 of file carsetupscreen.cpp.

◆ setuplabel

const char* setuplabel[6] = { "Practice", "Qualifying", "Race", "Backup 1", "Backup 2", "Backup 3"}
static

Definition at line 217 of file carsetupscreen.cpp.

◆ setuptype

Definition at line 216 of file carsetupscreen.cpp.

◆ unitcms

const char* unitcms = "cm/s"
static

Definition at line 209 of file carsetupscreen.cpp.

◆ unitdeg

const char* unitdeg = "deg"
static

Definition at line 203 of file carsetupscreen.cpp.

◆ unitkpa

const char* unitkpa = "kPa"
static

Definition at line 204 of file carsetupscreen.cpp.

◆ unitlbfin

const char* unitlbfin = "lbf/in"
static

Definition at line 205 of file carsetupscreen.cpp.

◆ unitlbfins

const char* unitlbfins = "lbf/in/s"
static

Definition at line 207 of file carsetupscreen.cpp.

◆ unitmm

const char* unitmm = "mm"
static

Definition at line 206 of file carsetupscreen.cpp.

◆ unitNm

const char* unitNm = "N.m"
static

Definition at line 208 of file carsetupscreen.cpp.

◆ values

std::vector<cGuiSetupValue*> values
static

Definition at line 201 of file carsetupscreen.cpp.