69 const char *optionName;
71 const int BUFSIZE = 1024;
118 const int BUFSIZE = 1024;
201 int x,
y, x2, x3, x4, dy;
227 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
233 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
245 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
251 "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.
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 MM_ATT_SOUND_ENABLE
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.
static int MenuMusicOptionId
#define MM_VAL_SOUND_DISABLED
int GfuiLabelCreate(void *scr, const char *text, int font, int x, int y, int align, int maxlen)
Add a label to a screen.
static int curOptionMenuMusic
static void changeMenuMusicState(void *vp)
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background to a screen.
#define MM_SOUND_PARM_CFG
int GfParmWriteFile(const char *file, void *parmHandle, const char *name)
Write parameter set into file.
#define GR_ATT_SOUND_STATE_DISABLED
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).
static const char * menuMusicList[]
void * GfuiScreenCreateEx(float *bgColor, void *userDataOnActivate, tfuiCallback onActivate, void *userDataOnDeactivate, tfuiCallback onDeactivate, int mouseAllowed)
Create a screen.
static const int nbOptions
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
static float LabelColor[]
#define GR_SOUND_PARM_CFG
#define GFPARM_RMODE_REREAD
reread the parameters from file and release the previous ones
void GfuiLabelSetColor(void *scr, int id, float *color)
Change the color of a label.
Graphic Module Interface Definition.
void * SoundMenuInit(void *prevMenu)
#define GR_ATT_SOUND_VOLUME
static void saveSoundOption(void *)
void(* tfuiCallback)(void *)
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 GfuiScreenShot(void *)
Save a screen shot in png format.
#define GR_ATT_SOUND_STATE_OPENAL
int GfuiTitleCreate(void *scr, const char *text, int maxlen)
Add a Title to the screen.
#define GR_ATT_SOUND_STATE
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 readSoundCfg(void)
static const char * soundOptionList[]
static void onActivate(void *)
static void changeSoundState(void *vp)
#define GFPARM_RMODE_CREAT
Create the file if doesn't exist.
#define MM_VAL_SOUND_ENABLED