ui_main.h File Reference

#include "ui_data.h"
#include "ui_windows.h"
Include dependency graph for ui_main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void UI_Init (void)
void UI_Shutdown (void)
 Reset and free the UI data hunk.
void UI_Reinit (void)
void UI_SetCvar (const char *name, const char *str, float value)
void UI_ExecuteConfunc (const char *fmt,...) __attribute__((format(__printf__
void int UI_DebugMode (void)

Variables

struct cvar_smn_sequence
struct cvar_smn_hud

Detailed Description

Definition in file ui_main.h.


Function Documentation

void int UI_DebugMode ( void   ) 
See also:
UI_DisplayNotice
Todo:
move it into a better file

Definition at line 67 of file ui_main.c.

References cvar_s::integer.

Referenced by UI_Draw(), and UI_GetNodeInTreeAtPosition().

void UI_ExecuteConfunc ( const char *  fmt,
  ... 
)
void UI_Init ( void   ) 
void UI_Reinit ( void   ) 

Reinit input and font

Definition at line 258 of file ui_main.c.

References UI_InitFonts(), UI_InvalidateMouse(), and UI_ReleaseInput().

Referenced by VID_Restart_f().

void UI_SetCvar ( const char *  name,
const char *  str,
float  value 
)
Parameters:
[in] name Name of the cvar
[in] str Might be NULL if you want to set a float value
[in] value Float value to set
Todo:
move it into a better file

Definition at line 82 of file ui_main.c.

References Com_Printf(), Cvar_FindVar(), Cvar_Set(), Cvar_SetValue(), cvar_s::name, and UI_CheckCvar().

Referenced by UI_AbstractOptionSetCurrentValue(), UI_BarNodeCapturedMouseMove(), UI_CheckBoxNodeActivate(), UI_NodeSetProperty(), UI_RadioButtonNodeActivate(), and UI_SpinnerNodeStep().

void UI_Shutdown ( void   ) 

Reset and free the UI data hunk.

Note:
Even called in case of an error when CL_Shutdown was called - maybe even before CL_InitLocal (and thus UI_Init) was called
See also:
CL_Shutdown
UI_Init

Definition at line 272 of file ui_main.c.

References uiGlobal_s::adata, uiGlobal_s::adataize, uiNode_s::behaviour, Cmd_Exists(), Cmd_RemoveCommand(), uiNode_s::firstChild, Mem_Free, Mem_FreePool, uiNode_s::name, uiNode_s::next, uiGlobal_s::numWindows, uiNode_s::parent, UI_GetNodeBehaviour(), and uiGlobal_s::windows.

Referenced by CL_Shutdown().


Variable Documentation

struct cvar_s* mn_hud
Todo:
client code should manage itself this vars

Definition at line 35 of file ui_main.c.

Referenced by CL_SequenceStart_f().


Generated by  doxygen 1.6.2