68 const int BUFSIZE = 1024;
91 const int BUFSIZE = 1024;
106 const int BUFSIZE = 1024;
121 const int BUFSIZE = 1024;
136 const int BUFSIZE = 1024;
140 SkidValue = strtol(val, (
char **)NULL, 0);
173 const int width = 130;
174 const int center = x2 + width/2;
181 const int BUFSIZE = 1024;
224 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
230 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
#define GR_ATT_MAXSTRIPBYWHEEL
static int FovFactorValue
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.
#define GR_ATT_WHEELRENDERING_DETAILED
static tdble LodFactorValue
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.
#define GFPARM_RMODE_STD
if handle already openned return it
static int WheelDetailOptionId
static void SaveGraphicOptions(void *prevMenu)
void GfParmReleaseHandle(void *parmHandle)
Release given parameter set handle parmHandle.
void GfuiAddKey(void *scr, unsigned char key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased)
Add a Keyboard callback to a 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.
static const int nbOptionsWheelDetail
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.
static int curOptionWheelDetail
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background to a screen.
void * GraphMenuInit(void *prevMenu)
int GfParmWriteFile(const char *file, void *parmHandle, const char *name)
Write parameter set into file.
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 GR_ATT_WHEELRENDERING_SIMPLE
void GfuiEditboxSetString(void *scr, int id, const char *text)
Set a new string.
static void ChangeSmoke(void *)
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
float tdble
Floating point type used in TORCS.
static void ChangeSkid(void *)
#define GR_ATT_WHEELRENDERING
static int LodFactorEditId
static void ChangeFov(void *)
void GfuiLabelSetColor(void *scr, int id, float *color)
Change the color of a label.
Graphic Module Interface Definition.
static void changeWheelDetailState(void *vp)
static void ChangeLodFactor(void *)
void(* tfuiCallback)(void *)
void GfuiScreenActivate(void *screen)
Activate a screen and make it current.
int GfParmSetNum(void *handle, const char *path, const char *key, const char *unit, tdble val)
Set a numerical parameter in the parameter set handle.
static float LabelColor[]
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 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
static void ExitGraphicOptions(void *prevMenu)
static const char * wheelDetailOptionList[]
#define GFPARM_RMODE_CREAT
Create the file if doesn't exist.