52 const char *label1,
const char *tip1,
void *screen1,
53 const char *label2,
const char *tip2,
void *screen2)
86 const char *label1,
const char *tip1,
void *screen1,
87 const char *label2,
const char *tip2,
void *screen2,
88 const char *label3,
const char *tip3,
void *screen3)
125 const char *label1,
const char *tip1,
void *screen1,
126 const char *label2,
const char *tip2,
void *screen2,
127 const char *label3,
const char *tip3,
void *screen3,
128 const char *label4,
const char *tip4,
void *screen4)
172 for (i = 0; i < n; i++) {
215 const int BUFSIZE = 1024;
225 void *params = info->
params;
226 const char *race = info->_reRaceName;
247 for (i = start; i <
MIN(start +
MAX_LINES, nCars); i++) {
253 snprintf(path, BUFSIZE,
"%sdrivers/%s/%s.xml",
GetLocalDir(), name, name);
256 snprintf(path, BUFSIZE,
"drivers/%s/%s.xml", name, name);
265 snprintf(path, BUFSIZE,
"cars/%s/%s.xml", carName, carName);
269 snprintf(path, BUFSIZE,
"%d - %s - (%s)", i + 1, name, carName);
276 curRow = (curRow + 1) % rows;
287 "data/img/arrow-up.png",
"data/img/arrow-up-pushed.png",
300 "data/img/arrow-down.png",
"data/img/arrow-down-pushed.png",
static void rmChgStartScreen(void *vpsrc)
Race Manager General Info.
static tStartRaceCall prevStartRace
void GfuiScreenReplace(void *screen)
Activate a screen and make it current plus release the current screen.
void * GfParmReadFile(const char *file, int mode)
Read parameter set from file and return handle to parameter set.
int GfuiButtonCreate(void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost)
Add a button to a screen.
int GfuiMenuButtonCreate(void *scr, const char *text, const char *tip, void *userdata, tfuiCallback onpush)
Add a button to a menu screen.
#define GFPARM_RMODE_STD
if handle already openned return it
void GfParmReleaseHandle(void *parmHandle)
Release given parameter set handle parmHandle.
static void * fourStateHdle
void GfuiAddKey(void *scr, unsigned char key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased)
Add a Keyboard callback to a screen.
Robot Module Interface Definition.
#define RM_ATTR_DISP_START_GRID
void GfuiScreenRelease(void *scr)
Release the given screen.
int GfuiLabelCreate(void *scr, const char *text, int font, int x, int y, int align, int maxlen)
Add a label to a screen.
void * GfuiMenuScreenCreate(const char *title)
Create a new menu screen.
#define RM_SECT_STARTINGGRID
static void * triStateHdle
static void rmDisplayStartRace(tRmInfo *info, void *startScr, void *abortScr, int start)
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background to a screen.
static void * twoStateHdle
const char * GfParmGetStr(void *parmHandle, const char *path, const char *key, const char *deflt)
Get a string parameter from the parameter set handle.
The Gaming Framework API (client part).
static void * nStateHandle
void(* tfuiCallback)(void *)
void GfuiScreenActivate(void *screen)
Activate a screen and make it current.
void GfuiAddSKey(void *scr, int key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased)
Add a Special Keyboard shortcut to the screen.
tdble GfParmGetNum(void *handle, const char *path, const char *key, const char *unit, tdble deflt)
Get a numerical parameter from the parameter set handle.
void GfuiScreenShot(void *)
Save a screen shot in png format.
int GfuiTitleCreate(void *scr, const char *text, int maxlen)
Add a Title to the screen.
int GfuiGrButtonCreate(void *scr, const char *disabled, const char *enabled, const char *focused, const char *pushed, int x, int y, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost)
Add a graphical button to a screen.
void * GfuiScreenCreate(void)
Create a new screen.
#define GFUI_FONT_MEDIUM_C
int GfParmGetEltNb(void *handle, const char *path)
Count the number of subsections in a section in the parameter set handle.
static tStartRaceCall nextStartRace
void RmDisplayStartRace(tRmInfo *info, void *startScr, void *abortScr)
char * GfParmGetName(void *handle)
Get the name property of the parameter set handle.
#define RM_SECT_DRIVERS_RACING
void * params
Raceman parameters.