Health and morale ekg images for actors. More...
#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "../ui_render.h"
#include "ui_node_ekg.h"
#include "ui_node_abstractnode.h"
#include "../../client.h"
Go to the source code of this file.
Defines | |
#define | EXTRADATA_TYPE ekgExtraData_t |
#define | EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE) |
Functions | |
static void | UI_EKGNodeDraw (uiNode_t *node) |
static void | UI_EKGNodeLoading (uiNode_t *node) |
Called at the begin of the load from script. | |
void | UI_RegisterEKGNode (uiBehaviour_t *behaviour) |
Variables | |
static const value_t | properties [] |
Health and morale ekg images for actors.
Definition in file ui_node_ekg.c.
#define EXTRADATA | ( | node | ) | UI_EXTRADATA(node, EXTRADATA_TYPE) |
Definition at line 35 of file ui_node_ekg.c.
#define EXTRADATA_TYPE ekgExtraData_t |
Definition at line 34 of file ui_node_ekg.c.
static void UI_EKGNodeDraw | ( | uiNode_t * | node | ) | [static] |
Definition at line 37 of file ui_node_ekg.c.
References CL_Milliseconds(), Cvar_GetValue(), EXTRADATA, image_s::height, uiNode_s::image, int(), uiNode_s::name, scale, uiNode_s::size, UI_DrawNormImage(), UI_GetNodeAbsPos(), UI_GetReferenceString(), UI_LoadImage(), Vector2Copy, Vector2Set, and image_s::width.
Referenced by UI_RegisterEKGNode().
static void UI_EKGNodeLoading | ( | uiNode_t * | node | ) | [static] |
Called at the begin of the load from script.
Definition at line 105 of file ui_node_ekg.c.
References EXTRADATA.
Referenced by UI_RegisterEKGNode().
void UI_RegisterEKGNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 120 of file ui_node_ekg.c.
References uiBehaviour_s::draw, uiBehaviour_s::extends, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::loading, uiBehaviour_s::name, uiBehaviour_s::properties, UI_EKGNodeDraw(), and UI_EKGNodeLoading().
const value_t properties[] [static] |
{ {"scrollspeed", V_FLOAT, UI_EXTRADATA_OFFSETOF(ekgExtraData_t, scrollSpeed), MEMBER_SIZEOF(ekgExtraData_t, scrollSpeed)}, {"scale", V_FLOAT, UI_EXTRADATA_OFFSETOF(ekgExtraData_t, scaleCvarValue), MEMBER_SIZEOF(ekgExtraData_t, scaleCvarValue)}, {NULL, V_NULL, 0, 0} }
Definition at line 111 of file ui_node_ekg.c.