51#define EXTRADATA_TYPE radioButtonExtraData_t
52#define EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE)
53#define EXTRADATACONST(node) UI_EXTRADATACONST(node, EXTRADATA_TYPE)
58#define UI_4STATUS_TEX_HEIGHT 64
87 }
else if (isSelected) {
90 }
else if (node->
state) {
104 texX + node->
box.
size[0], texY + node->
box.
size[1], texX, texY, image);
204 behaviour->
name =
"radiobutton";
void Cvar_SetValue(const char *varName, float value)
Expands value to a string and calls Cvar_Set.
cvar_t * Cvar_Set(const char *varName, const char *value,...)
Sets a cvar value.
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags, const char *desc)
Init or return a cvar.
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Header for lua script functions.
char const * Q_strstart(char const *str, char const *start)
Matches the start of a string.
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
node behaviour, how a node work
Atomic structure used to define most of the UI.
uiBehaviour_t * behaviour
struct uiAction_s * onChange
struct uiAction_s * onClick
void UI_ExecuteEventActions(uiNode_t *source, const uiAction_t *firstAction)
#define UI_RegisterExtradataNodeProperty(BEHAVIOUR, NAME, TYPE, EXTRADATATYPE, ATTRIBUTE)
Initialize a property from extradata of node.
bool UI_ExecuteLuaEventScript(uiNode_t *node, LUA_EVENT event)
Executes a lua event handler.
bool UI_ExecuteLuaEventScript_XY(uiNode_t *node, LUA_EVENT event, int x, int y)
Executes a lua event handler with (x,y) argument.
Basic lua initialization for the ui.
void * UI_SWIG_TypeQuery(const char *name)
This function queries the SWIG type table for a type information structure. It is used in combination...
void UI_GetNodeAbsPos(const uiNode_t *node, vec2_t pos)
Returns the absolute position of a node.
SharedPtr< uiNode > UINodePtr
float UI_GetReferenceFloat(const uiNode_t *const node, const void *ref)
Returns the value of the reference variable.
const char * UI_GetReferenceString(const uiNode_t *const node, const char *ref)
const image_t * UI_DrawNormImageByName(bool flip, float x, float y, float w, float h, float sh, float th, float sl, float tl, const char *name)
Draws an image or parts of it.
void UI_DrawSpriteInBox(bool flip, const uiSprite_t *sprite, uiSpriteStatus_t status, int posX, int posY, int sizeX, int sizeY)
uiSprite_t * UI_GetSpriteByName(const char *name)
Return an sprite by is name.