ui_node_ekg.c File Reference

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"
Include dependency graph for ui_node_ekg.c:

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 []

Detailed Description

Health and morale ekg images for actors.

Definition in file ui_node_ekg.c.


Define Documentation

#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.


Function Documentation

static void UI_EKGNodeDraw ( uiNode_t node  )  [static]

Todo:
this magic number should be replaced with a sane calculation of the value
Todo:
these cvars should come from the script
Todo:
code is duplicated in the image node code

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  ) 

Variable Documentation

const value_t properties[] [static]
Initial value:
 {
    
    {"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.


Generated by  doxygen 1.6.2