Common functions for race managers. More...
Classes | |
| struct | tRmTrackSelect |
| Structure for track selection. More... | |
| struct | tRmDrvSelect |
| Structure for driver selection. More... | |
| struct | tRmRaceParam |
| Structure for configuring parameters. More... | |
| struct | tRmFileSelect |
| Structure for file selection. More... | |
Typedefs | |
| typedef void(* | tfSelectFile) (char *) |
| Callback function definition for handling file selection. More... | |
Functions | |
| void * | RmCarSetupScreenInit (void *prevMenu, tCarElt *car, tRmInfo *reInfo) |
| Display car setup screen, for loading, saving and changing car setups. More... | |
| void | RmDriversSelect (void *vs) |
| Drivers list selection, the race manager parameter set is handed over in vs, tRmDrvSelect.param. More... | |
| void | RmFileSelect (void *vs) |
| File selection. More... | |
| void | RmLoadingScreenStart (const char *title, const char *bgimg) |
| Set up loading screen. More... | |
| void | RmShutdownLoadingScreen (void) |
| Shut down loading screen. More... | |
| void | RmLoadingScreenSetText (const char *text) |
| Set a new line of text on the loading screen. More... | |
| void * | RmTwoStateScreen (const char *title, const char *label1, const char *tip1, void *screen1, const char *label2, const char *tip2, void *screen2) |
| Screen with 2 menu options (buttons) More... | |
| void * | RmTriStateScreen (const char *title, const char *label1, const char *tip1, void *screen1, const char *label2, const char *tip2, void *screen2, const char *label3, const char *tip3, void *screen3) |
| Screen with 3 menu options (buttons) More... | |
| void * | RmFourStateScreen (const char *title, const char *label1, const char *tip1, void *screen1, const char *label2, const char *tip2, void *screen2, const char *label3, const char *tip3, void *screen3, const char *label4, const char *tip4, void *screen4) |
| Screen with 4 menu options (buttons) More... | |
| void * | RmNStateScreen (const char *title, const char **label, const char **tip, void **screen, const int n) |
| Screen with N menu options (buttons) More... | |
| void | RmPitMenuStart (tCarElt *car, tRmInfo *reInfo, void *userdata, tfuiCallback callback) |
| Pit menu. More... | |
| void | RmRaceParamMenu (void *vrp) |
| Race options menu. More... | |
| void | RmShowResults (void *prevHdle, tRmInfo *info) |
| Display results. More... | |
| void | RmShowStandings (void *prevHdle, tRmInfo *info) |
| Display standings. More... | |
| char * | RmGetTrackName (char *category, char *trackName) |
| Get the track name defined in the parameters. More... | |
| char * | RmGetCategoryName (char *category) |
| Get the track category name from the track category file. More... | |
| void | RmTrackSelect (void *vs) |
| Track selection, the race manager parameter set is handed over in vs, tRmTrackSelect.param. More... | |
Common functions for race managers.
| typedef void(* tfSelectFile) (char *) |
Callback function definition for handling file selection.
Definition at line 70 of file racescreens.h.
Display car setup screen, for loading, saving and changing car setups.
| [in] | prevMenu | Link to previous menu |
| [in,out] | car | Car to set up, changes go into tCarElt.pitcmd.setup, see tCarPitSetup |
| [in] | reInfo | Information to construct setup file name (track name, session type) |
Definition at line 325 of file carsetupscreen.cpp.

| void RmDriversSelect | ( | void * | vs | ) |
Drivers list selection, the race manager parameter set is handed over in vs, tRmDrvSelect.param.
| [in,out] | vs | Pointer on tRmDrvSelect structure (cast to void) |
Definition at line 249 of file driverselect.cpp.

| void RmFileSelect | ( | void * | vs | ) |
File selection.
The files listed are the ones contained in the directory given by the path in tRmFileSelect.path
| [in,out] | vs | Pointer on tRmFileSelect structure (cast to void) |
Definition at line 81 of file fileselect.cpp.

| void* RmFourStateScreen | ( | const char * | title, |
| const char * | label1, | ||
| const char * | tip1, | ||
| void * | screen1, | ||
| const char * | label2, | ||
| const char * | tip2, | ||
| void * | screen2, | ||
| const char * | label3, | ||
| const char * | tip3, | ||
| void * | screen3, | ||
| const char * | label4, | ||
| const char * | tip4, | ||
| void * | screen4 | ||
| ) |
Screen with 4 menu options (buttons)
| [in] | title | Title of the screen |
| [in] | label1 | Button text for first option |
| [in] | tip1 | Description for first option |
| [in] | screen1 | Target screen to activate for first option |
| [in] | label2 | Button text for second option |
| [in] | tip2 | Description for second option |
| [in] | screen2 | Target screen to activate for second option |
| [in] | label3 | Button text for third option |
| [in] | tip3 | Description for third option |
| [in] | screen3 | Target screen to activate for third option |
| [in] | label4 | Button text for fourth option |
| [in] | tip4 | Description for fourth option |
| [in] | screen4 | Target screen to activate for fourth option |
Definition at line 123 of file miscscreens.cpp.

| char* RmGetCategoryName | ( | char * | category | ) |
Get the track category name from the track category file.
| [in] | category | Track category file |
Definition at line 223 of file trackselect.cpp.

| char* RmGetTrackName | ( | char * | category, |
| char * | trackName | ||
| ) |
Get the track name defined in the parameters.
| [in] | category | Track category directory |
| [in] | trackName | Track file name |
Definition at line 194 of file trackselect.cpp.

| void RmLoadingScreenSetText | ( | const char * | text | ) |
Set a new line of text on the loading screen.
| [in] | text | Text to display |
Definition at line 112 of file loadingscreen.cpp.

| void RmLoadingScreenStart | ( | const char * | title, |
| const char * | bgimg | ||
| ) |
Set up loading screen.
| title | Screen title. |
| bgimg | Optionnal backgrounf image (NULL for no img). |
Definition at line 54 of file loadingscreen.cpp.

| void* RmNStateScreen | ( | const char * | title, |
| const char ** | label, | ||
| const char ** | tip, | ||
| void ** | screen, | ||
| const int | n | ||
| ) |
Screen with N menu options (buttons)
| [in] | title | Title of the screen |
| [in] | label | Array of n button texts |
| [in] | tip | Array of n descriptions |
| [in] | screen | Array of n screens |
| [in] | n | Size of arrays |
Definition at line 156 of file miscscreens.cpp.

| void RmPitMenuStart | ( | tCarElt * | car, |
| tRmInfo * | reInfo, | ||
| void * | userdata, | ||
| tfuiCallback | callback | ||
| ) |
Pit menu.
| [in,out] | car | Car data is returned in tCarElt.pitcmd |
| [in] | reInfo | Required for passing data to car setup screen, RmCarSetupScreenInit |
| [in] | userdata | Userdata for callback |
| [in] | callback | Callback to take action on the changes made |
Definition at line 129 of file pitmenu.cpp.

| void RmRaceParamMenu | ( | void * | vrp | ) |
Race options menu.
| [in,out] | vrp | Pointer on tRmRaceParam structure (cast to void) |
Definition at line 136 of file racemenu.cpp.

| void RmShowResults | ( | void * | prevHdle, |
| tRmInfo * | info | ||
| ) |
Display results.
| [in] | prevHdle | Handle to previous result screen (used if the results require more than one screen) |
| [in] | info | tRmInfo.results carries the result parameter set handle |
Definition at line 600 of file results.cpp.

| void RmShowStandings | ( | void * | prevHdle, |
| tRmInfo * | info | ||
| ) |
Display standings.
| [in] | prevHdle | Handle to previous standings screen (used if the standings require more than one screen) |
| [in] | info | tRmInfo.results carries the result parameter set handle containing the standings |
Definition at line 623 of file results.cpp.

| void RmShutdownLoadingScreen | ( | void | ) |
Shut down loading screen.
Definition at line 98 of file loadingscreen.cpp.

| void RmTrackSelect | ( | void * | vs | ) |
Track selection, the race manager parameter set is handed over in vs, tRmTrackSelect.param.
| [in,out] | vs | Pointer on a tRmTrackSelect structure (cast to void *) |
Definition at line 250 of file trackselect.cpp.

| void* RmTriStateScreen | ( | const char * | title, |
| const char * | label1, | ||
| const char * | tip1, | ||
| void * | screen1, | ||
| const char * | label2, | ||
| const char * | tip2, | ||
| void * | screen2, | ||
| const char * | label3, | ||
| const char * | tip3, | ||
| void * | screen3 | ||
| ) |
Screen with 3 menu options (buttons)
| [in] | title | Title of the screen |
| [in] | label1 | Button text for first option |
| [in] | tip1 | Description for first option |
| [in] | screen1 | Target screen to activate for first option |
| [in] | label2 | Button text for second option |
| [in] | tip2 | Description for second option |
| [in] | screen2 | Target screen to activate for second option |
| [in] | label3 | Button text for third option |
| [in] | tip3 | Description for third option |
| [in] | screen3 | Target screen to activate for third option |
Definition at line 84 of file miscscreens.cpp.

| void* RmTwoStateScreen | ( | const char * | title, |
| const char * | label1, | ||
| const char * | tip1, | ||
| void * | screen1, | ||
| const char * | label2, | ||
| const char * | tip2, | ||
| void * | screen2 | ||
| ) |
Screen with 2 menu options (buttons)
| [in] | title | Title of the screen |
| [in] | label1 | Button text for first option |
| [in] | tip1 | Description for first option |
| [in] | screen1 | Target screen to activate for first option |
| [in] | label2 | Button text for second option |
| [in] | tip2 | Description for second option |
| [in] | screen2 | Target screen to activate for second option |
Definition at line 50 of file miscscreens.cpp.
