59 const int BUFSIZE = 32;
72 const int BUFSIZE = 32;
131 const int BUFSIZE = 256;
145 snprintf(buf, BUFSIZE,
"Driver: %s", car->_name);
150 snprintf(buf, BUFSIZE,
"Remaining Laps: %d", car->_remainingLaps);
154 snprintf(buf, BUFSIZE,
"Remaining Fuel: %.1f l", car->_fuel);
161 snprintf(buf, BUFSIZE,
"%d", (
int)car->
pitcmd.
fuel);
176 int x2 = x + dx - 15;
177 int x3 = x + dx + 100 + 14;
190 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
195 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
Race Manager General Info.
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.
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.
tSituation * s
Situation during race.
#define RM_PENALTY_STOPANDGO
#define GFUI_FONT_LARGE_C
The Gaming Framework API (client part).
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.
float tdble
Floating point type used in TORCS.
int GfuiFontHeight(int font)
void GfuiLabelSetColor(void *scr, int id, float *color)
Change the color of a label.
void(* tfuiCallback)(void *)
This is the car structure.
void GfuiScreenActivate(void *screen)
Activate a screen and make it current.
int GfuiEnable(void *scr, int id, int flag)
Enable / Disable an object.
int GfuiFontWidth(int font, const char *text)
#define GF_TAILQ_FIRST(head)
First element of a TAILQ.
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.
#define GFUI_FONT_MEDIUM_C
int skillLevel
Driver's skill level (0=rookie -> 3=pro)