|
Public Member Functions |
void | Setup (CDXUTDialog *g_HUD) |
| You can set the dialog that manages input and rendering for the GUI controls.
|
void | Setup (CDXUTDialog *g_HUD, ONCHANGE_CALLBACK OnReset, ONCHANGE_CALLBACK OnSave=OnChange, ONCHANGE_CALLBACK OnLoad=OnChange) |
| You can set the dialog that manages input and rendering for the GUI controls.
|
bool | Get (bool_t i) |
| Returns value of the specified boolean parameter, e.g. Get( bShowHelp ).
|
float | Get (number_t i) |
| Returns float value of the specified numeric parameter, in range 0..1.
|
int | GetInt (number_t i) |
| Returns integer value of the specified numeric parameter, in range 0...number-of-steps.
|
void | SetBool (bool_t ID, bool b) |
void | SetFloat (number_t ID, float v) |
void | SetInt (number_t ID, int v) |
void | Add (bool_t ID, char *label, char cHotKey=0, ONCHANGE_CALLBACK bchf=OnChange) |
| Adds a boolean parameter represented by a GUI checkbox. Specifies hotkey and callback function.
|
void | Add (int radiogroupID, bool_t ID, char *label, char cHotKey=0, ONCHANGE_CALLBACK bchf=OnChange) |
| Adds a boolean parameter represented by a GUI radio button. Specifies hotkey and callback function.
|
void | Add (number_t ID, char *label, int num_steps) |
| Adds a numeric parameter represented by a GUI slider.
|
void | Add (number_t ID, char *label, int num_steps, CONVERTER ff, ONCHANGE_CALLBACK chf=OnChange) |
| Adds a numeric parameter represented by a GUI slider. Specifies callback functions.
|
void | Add (number_t ID, char *label, int num_steps, char cKeyDecr, char cKeyIncr=0, CONVERTER ff=noconvert, ONCHANGE_CALLBACK chf=OnChange) |
| Adds a numeric parameter represented by a GUI slider. Specifies hotkeys and callback functions.
|
void | SetEnabled (bool_t ID, bool bEnabled) |
void | SetEnabled (number_t ID, bool bEnabled) |
void | UpdateFromHUD (int controlID) |
| Updates the specified parameter from the GUI.
|
void | SaveToFile (char *fileName) |
| Writes all parameter values into the specified file.
|
void | LoadFromFile (char *fileName) |
| Loads all parameter values from the specified file.
|
Private Types |
enum | {
checkboxID0 = 1000,
sliderID0 = 2000,
staticID0 = 3000,
upID0 = 4000,
downID0 = 5000
} |
Private Attributes |
bool | bparam [LAST_BOOL] |
| current param value (boolean)
|
wchar_t | bname [LAST_BOOL][CHARBUF] |
| param name
|
int | radiogroup [LAST_BOOL] |
| for boolean params that are represented by a checkbox
|
int | param [LAST_NUMBER] |
| current param value (numeric)
|
wchar_t | name [LAST_NUMBER][CHARBUF] |
| param name
|
int | numsteps [LAST_NUMBER] |
| number of possible steps for param
|
bool | rotate [LAST_NUMBER] |
| stores whether the slider can rotate around
|
CONVERTER | ffunc [LAST_NUMBER] |
ONCHANGE_CALLBACK | chfunc [LAST_NUMBER+3] |
ONCHANGE_CALLBACK | bchfunc [LAST_BOOL] |
CDXUTDialog * | g_HUD |
bool | bSilent |
| to avoid an endless loop due to a change
|
Static Private Attributes |
static const int | CHARBUFFER_SIZE = 200 |