26#include <racescreens.h>
27#include <driverconfig.h>
28#include <portability.h>
37static float red[4] = {1.0, 0.0, 0.0, 1.0};
84 void *params =
ReInfo->params;
145 void *params =
ReInfo->params;
146 const int BUFSIZE = 1024;
151 GfOut(
"End of configuration\n");
156 snprintf(path, BUFSIZE,
"%s/%d",
RM_SECT_CONF, curConf);
163 GfOut(
"Configuration step %s\n", conf);
200 for (i = 1; i < numOpt + 1; i++) {
231 void *params =
ReInfo->params;
241 const int BUFSIZE = 1024;
244 snprintf(buf, BUFSIZE,
"%sresults/%s/%s",
GetLocalDir(),
ReInfo->_reFilename, filename);
245 GfOut(
"Loading Saved File %s...\n", buf);
258 void *params =
ReInfo->params;
277 void *params =
ReInfo->params;
307 "Configure Race",
"Configure The Race",
316 "Load",
"Load a Previously Saved Game",
321 "Back to Main",
"Return to previous Menu",
339 void *params =
ReInfo->params;
340 void *results =
ReInfo->results;
341 const int BUFSIZE = 1024;
363 snprintf(buf, BUFSIZE,
"Race Day #%d/%d on %s",
376 "Start Event",
"Start The Current Race",
381 "Abandon",
"Abandon The Race",
int GfuiMenuButtonCreateAction(void *scr, const char *text, const char *tip, const tGfuiAction &onpush)
Add a menu button with a focus tip.
void * GfuiScreenCreateExAction(float *bgColor, const tGfuiAction &onActivate, const tGfuiAction &onDeactivate, int mouseAllowed)
Create a screen.
void GfuiMenuDefaultKeysAdd(void *scr)
Add the default menu keyboard callback to a screen.
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.
int GfuiMenuButtonCreateActionWithDisabledTip(void *scr, const char *text, const char *tip, const char *disabledTip, const tGfuiAction &onpush)
Add a button to a menu screen.
int GfuiEnable(void *scr, int id, int flag)
Enable / Disable an object.
void * GfuiHookCreateAction(const tGfuiAction &onActivate)
Create a callback hook.
int GfuiLabelCreateEx(void *scr, const char *text, float *fgColor, int font, int x, int y, int align, int maxlen)
Create a new label (extended version).
int GfuiMenuBackQuitButtonCreateAction(void *scr, const char *text, const char *tip, const tGfuiAction &onpush)
Add the "Back" or "Quit" button at the bottom of the menu screen.
void GfuiScreenActivate(void *screen)
Activate a screen and make it current.
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.
int GfParmSetNum(void *handle, const char *path, const char *key, const char *unit, tdble val)
Set a numerical parameter in the parameter set handle.
int GfParmWriteFile(const char *file, void *parmHandle, const char *name)
Write parameter set into file.
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 ReStartNewRace(void *)
#define RM_VAL_CONFDISPMODE
#define RE_ATTR_CUR_TRACK
#define RM_VAL_CONFRACELEN
#define RM_CONF_DISP_MODE
Structure for driver selection.
Structure for file selection.
Structure for configuring parameters.
Structure for track selection.
#define GFPARM_RMODE_CREAT
Allow an empty in-memory set on file-open failure; does not write a file.
#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