TORCS  1.3.9
The Open Racing Car Simulator
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 rmSet (void *vp)
 
static void rmUpdateMM (void *vp)
 
static void rmUpdateM (void *vp)
 
static void rmUpdateP (void *vp)
 
static void rmUpdatePP (void *vp)
 
static void enableLoadButtons ()
 
static void onSave (void *vp)
 
static void onSaveAndExit (void *vp)
 
static void onLoad (void *vp)
 
static void onActivate (void *vp)
 
static void onLoadDefault (void *vp)
 
void * RmCarSetupScreenInit (void *prevMenu, tCarElt *car, tRmInfo *reInfo)
 Display car setup screen, for loading, saving and changing car setups. More...
 

Variables

static void * scrHandle = NULL
 
static void * prevHandle = NULL
 
static void * rmCarHandle = NULL
 
static tCarPitSetuprmSetup = 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
Version
$Id$

Definition in file carsetupscreen.cpp.

Function Documentation

◆ enableLoadButtons()

static void enableLoadButtons ( )
static

Definition at line 282 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onActivate()

static void onActivate ( void *  vp)
static

Definition at line 296 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onLoad()

static void onLoad ( void *  vp)
static

Definition at line 260 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onLoadDefault()

static void onLoadDefault ( void *  vp)
static

Definition at line 302 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onSave()

static void onSave ( void *  vp)
static

Definition at line 190 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ onSaveAndExit()

static void onSaveAndExit ( void *  vp)
static

Definition at line 214 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ rmSet()

static void rmSet ( void *  vp)
static

Definition at line 159 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ rmUpdateM()

static void rmUpdateM ( void *  vp)
static

Definition at line 171 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ rmUpdateMM()

static void rmUpdateMM ( void *  vp)
static

Definition at line 165 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ rmUpdateP()

static void rmUpdateP ( void *  vp)
static

Definition at line 177 of file carsetupscreen.cpp.

Here is the call graph for this function:

◆ rmUpdatePP()

static void rmUpdatePP ( void *  vp)
static

Definition at line 183 of file carsetupscreen.cpp.

Here is the call graph for this function:

Variable Documentation

◆ d3

const char* d3 = "%3.0f"
static

Definition at line 252 of file carsetupscreen.cpp.

◆ d5

const char* d5 = "%5.0f"
static

Definition at line 253 of file carsetupscreen.cpp.

◆ f43

const char* f43 = "%4.3f"
static

Definition at line 251 of file carsetupscreen.cpp.

◆ f52

const char* f52 = "%5.2f"
static

Definition at line 250 of file carsetupscreen.cpp.

◆ loadbuttonid

int loadbuttonid[6]
static

Definition at line 257 of file carsetupscreen.cpp.

◆ prevHandle

void* prevHandle = NULL
static

Definition at line 38 of file carsetupscreen.cpp.

◆ rmCarHandle

void* rmCarHandle = NULL
static

Definition at line 40 of file carsetupscreen.cpp.

◆ rmCarName

char* rmCarName = NULL
static

Definition at line 45 of file carsetupscreen.cpp.

◆ rmIdx

int rmIdx = 0
static

Definition at line 43 of file carsetupscreen.cpp.

◆ rmModName

char* rmModName = NULL
static

Definition at line 42 of file carsetupscreen.cpp.

◆ rmRaceType

int rmRaceType = RM_TYPE_PRACTICE
static

Definition at line 46 of file carsetupscreen.cpp.

◆ rmSetup

tCarPitSetup* rmSetup = NULL
static

Definition at line 41 of file carsetupscreen.cpp.

◆ rmTrack

char* rmTrack = NULL
static

Definition at line 44 of file carsetupscreen.cpp.

◆ scrHandle

void* scrHandle = NULL
static

Definition at line 37 of file carsetupscreen.cpp.

◆ setuplabel

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

Definition at line 256 of file carsetupscreen.cpp.

◆ setuptype

Definition at line 255 of file carsetupscreen.cpp.

◆ unitcms

const char* unitcms = "cm/s"
static

Definition at line 248 of file carsetupscreen.cpp.

◆ unitdeg

const char* unitdeg = "deg"
static

Definition at line 242 of file carsetupscreen.cpp.

◆ unitkpa

const char* unitkpa = "kPa"
static

Definition at line 243 of file carsetupscreen.cpp.

◆ unitlbfin

const char* unitlbfin = "lbf/in"
static

Definition at line 244 of file carsetupscreen.cpp.

◆ unitlbfins

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

Definition at line 246 of file carsetupscreen.cpp.

◆ unitmm

const char* unitmm = "mm"
static

Definition at line 245 of file carsetupscreen.cpp.

◆ unitNm

const char* unitNm = "N.m"
static

Definition at line 247 of file carsetupscreen.cpp.

◆ values

std::vector<cGuiSetupValue*> values
static

Definition at line 240 of file carsetupscreen.cpp.