29#include <portability.h>
50 const char *label1,
const char *tip1,
void *screen1,
51 const char *label2,
const char *tip2,
void *screen2)
84 const char *label1,
const char *tip1,
void *screen1,
85 const char *label2,
const char *tip2,
void *screen2,
86 const char *label3,
const char *tip3,
void *screen3)
123 const char *label1,
const char *tip1,
void *screen1,
124 const char *label2,
const char *tip2,
void *screen2,
125 const char *label3,
const char *tip3,
void *screen3,
126 const char *label4,
const char *tip4,
void *screen4)
170 for (i = 0; i < n; i++) {
171 void *target = screen[i];
175 void *backTarget = screen[n-1];
214 const int BUFSIZE = 1024;
224 void *params = info->
params;
225 const char *race = info->_reRaceName;
246 for (i = start; i <
MIN(start +
MAX_LINES, nCars); i++) {
252 snprintf(path, BUFSIZE,
"%sdrivers/%s/%s.xml",
GetLocalDir(), name, name);
255 snprintf(path, BUFSIZE,
"drivers/%s/%s.xml", name, name);
264 snprintf(path, BUFSIZE,
"cars/%s/%s.xml", carName, carName);
268 snprintf(path, BUFSIZE,
"%d - %s - (%s)", i + 1, name, carName);
275 curRow = (curRow + 1) % rows;
286 "data/img/arrow-up.png",
"data/img/arrow-up-pushed.png",
298 "data/img/arrow-down.png",
"data/img/arrow-down-pushed.png",
int GfuiMenuButtonCreateAction(void *scr, const char *text, const char *tip, const tGfuiAction &onpush)
Add a menu button with a focus tip.
void GfuiScreenRelease(void *scr)
Release the given screen.
int GfuiTitleCreate(void *scr, const char *text, int maxlen)
Add a Title to the screen.
void GfuiAddKeyAction(void *scr, unsigned char key, const char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased)
Add a Keyboard callback to a screen.
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background to a screen.
void * GfuiMenuScreenCreate(const char *title)
Create a new menu screen.
void GfuiAddSKeyAction(void *scr, int key, const char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased)
Add a Special Keyboard shortcut to the screen.
void GfuiScreenReplace(void *screen)
Activate a screen and make it current plus release the current screen.
int GfuiLabelCreate(void *scr, const char *text, int font, int x, int y, int align, int maxlen)
Add a label to a screen.
int GfuiGrButtonCreateAction(void *scr, const char *disabled, const char *enabled, const char *focused, const char *pushed, int x, int y, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost)
Add a graphical button to a screen.
void * GfuiScreenCreate(void)
Create a new screen.
void GfuiScreenActivate(void *screen)
Activate a screen and make it current.
int GfuiButtonCreateAction(void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost)
Add a button to a screen.
const char * GfParmGetStr(void *parmHandle, const char *path, const char *key, const char *deflt)
Get a string parameter from the parameter set handle.
tdble GfParmGetNum(void *handle, const char *path, const char *key, const char *unit, tdble deflt)
Get a numerical parameter from the parameter set handle.
char * GfParmGetName(void *handle)
Get the name property of the parameter set handle.
void GfParmReleaseHandle(void *parmHandle)
Release given parameter set handle parmHandle.
void * GfParmReadFile(const char *file, int mode)
Read parameter set from file and return handle to parameter set.
int GfParmGetEltNb(void *handle, const char *path)
Count the number of subsections in a section in the parameter set handle.
void GfuiScreenShot(void *)
Save a screen shot in png format.
static void rmDisplayStartRace(tRmInfo *info, void *startScr, void *abortScr, int start)
static void * twoStateHdle
static void * nStateHandle
static tStartRaceCall nextStartRace
static tStartRaceCall prevStartRace
static void * triStateHdle
static void * fourStateHdle
void RmDisplayStartRace(tRmInfo *info, void *startScr, void *abortScr)
static void rmChgStartScreen(tStartRaceCall *psrc)
struct RmInfo tRmInfo
Race Manager General Info.
#define RM_SECT_STARTINGGRID
#define RM_SECT_DRIVERS_RACING
#define RM_ATTR_DISP_START_GRID
void * params
Raceman parameters.
#define GFPARM_RMODE_STD
Return a new handle sharing cached data for this filename, if available.
#define GFUI_FONT_MEDIUM_C
std::function< void()> tGfuiAction