63 const int BUFSIZE = 1024;
82 const int BUFSIZE = 1024;
86 rmrpLaps = strtol(val, (
char **)NULL, 0);
90 snprintf(buf, BUFSIZE,
"%d",
rmrpLaps);
138 int y, x, x2, dy, dx;
139 const int BUFSIZE = 1024;
144 snprintf(buf, BUFSIZE,
"%s Options",
rp->
title);
174 snprintf(buf, BUFSIZE,
"%d",
rmrpLaps);
186 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
191 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
int GfParmSetStr(void *handle, const char *path, const char *key, const char *val)
Set a string parameter in the parameter set handle.
char * GfuiEditboxGetString(void *scr, int id)
Get the string.
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.
const char * title
Title for race parameters (for screen title)
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.
void * nextScreen
Race manager screen to go after select.
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.
int GfuiEditboxCreate(void *scr, const char *text, int font, int x, int y, int width, int maxlen, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost, int margin)
Add a editbox to a screen.
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background 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.
The Gaming Framework API (client part).
#define RM_CONF_DISP_MODE
void GfuiEditboxSetString(void *scr, int id, const char *text)
Set a new string.
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
int GfuiFontHeight(int font)
unsigned int confMask
Tell what to configure.
void(* tfuiCallback)(void *)
This is the car structure.
This is the race information structures.
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.
int GfParmSetNum(void *handle, const char *path, const char *key, const char *unit, tdble val)
Set a numerical parameter in 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.
void GfuiHelpScreen(void *prevScreen)
Generate a help screen.
void GfuiScreenShot(void *)
Save a screen shot in png format.
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.
Structure for configuring parameters.
#define GFUI_FONT_MEDIUM_C
void * prevScreen
Race manager screen to go back.
void * param
Pointer to race manager parameter set (to set the parameters)
Track Structure and Track Loader Module Definition.