29#include <portability.h>
67 const int BUFSIZE = 1024;
90 const int BUFSIZE = 1024;
105 const int BUFSIZE = 1024;
120 const int BUFSIZE = 1024;
135 const int BUFSIZE = 1024;
139 SkidValue = strtol(val, (
char **)NULL, 0);
172 const int width = 130;
173 const int center = x2 + width/2;
180 const int BUFSIZE = 1024;
223 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
228 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
static float LabelColor[]
static void ChangeSkid(void)
static int FovFactorValue
static const char * wheelDetailOptionList[]
static void ChangeFov(void)
static void ChangeLodFactor(void)
static void ChangeSmoke(void)
static int curOptionWheelDetail
static const int nbOptionsWheelDetail
static void ExitGraphicOptions(void *prevMenu)
static int WheelDetailOptionId
static tdble LodFactorValue
static int LodFactorEditId
static void SaveGraphicOptions(void *prevMenu)
static void changeWheelDetailState(int delta)
void * GraphMenuInit(void *prevMenu)
#define GR_ATT_WHEELRENDERING_DETAILED
#define GR_ATT_WHEELRENDERING
#define GR_ATT_WHEELRENDERING_SIMPLE
#define GR_ATT_MAXSTRIPBYWHEEL
float tdble
Floating point type used in TORCS.
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
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 GfuiEditboxCreateAction(void *scr, const char *text, int font, int x, int y, int width, int maxlen, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost, int margin)
Add an edit box to a screen.
void * GfuiMenuScreenCreate(const char *title)
Create a new menu screen.
void GfuiEditboxSetString(void *scr, int id, const char *text)
Set a new string.
char * GfuiEditboxGetString(void *scr, int id)
Get the current text of an edit box.
int GfuiLabelCreate(void *scr, const char *text, int font, int x, int y, int align, int maxlen)
Add a label to a screen.
void GfuiLabelSetColor(void *scr, int id, float *color)
Change the color of a label.
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 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.
int GfParmSetStr(void *handle, const char *path, const char *key, const char *val)
Set a string 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.
int GfParmSetNum(void *handle, const char *path, const char *key, const char *unit, tdble val)
Set a numerical parameter in the parameter set handle.
void GfParmReleaseHandle(void *parmHandle)
Release given parameter set handle parmHandle.
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.
#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