UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_node_abstractvalue.cpp File Reference

The abstractvalue node is an abstract node (we can't instanciate it). It provide common properties to concrete nodes, to manage a value in a range. More...

Include dependency graph for ui_node_abstractvalue.cpp:

Go to the source code of this file.

Macros

#define EXTRADATA_TYPE   abstractValueExtraData_t
#define EXTRADATA(node)
#define EXTRADATACONST(node)

Functions

static void UI_InitCvarOrFloat (float **adress, float defaultValue)
 Allocates a float and initializes it if the pointer value is not set, else does nothing.
static void UI_CloneCvarOrFloat (const uiNode_t *source, uiNode_t *clone, const float *const *sourceData, float **cloneData)
static void UI_FreeCvarOrFloat (const uiNode_t *node, void **data)
float UI_AbstractValue_GetMin (uiNode_t *node)
float UI_AbstractValue_GetMax (uiNode_t *node)
float UI_AbstractValue_GetValue (uiNode_t *node)
float UI_AbstractValue_GetDelta (uiNode_t *node)
float UI_AbstractValue_GetLastDiff (uiNode_t *node)
float UI_AbstractValue_GetShiftIncreaseFactor (uiNode_t *node)
void UI_AbstractValue_IncValue (uiNode_t *node)
void UI_AbstractValue_DecValue (uiNode_t *node)
void UI_AbstractValue_SetRange (uiNode_t *node, float min, float max)
void UI_AbstractValue_SetMin (uiNode_t *node, float min)
void UI_AbstractValue_SetMax (uiNode_t *node, float max)
void UI_AbstractValue_SetValue (uiNode_t *node, float value)
void UI_AbstractValue_SetDelta (uiNode_t *node, float delta)
void UI_AbstractValue_SetRangeCvar (uiNode_t *node, const char *min, const char *max)
void UI_AbstractValue_SetMinCvar (uiNode_t *node, const char *min)
void UI_AbstractValue_SetMaxCvar (uiNode_t *node, const char *max)
void UI_AbstractValue_SetValueCvar (uiNode_t *node, const char *value)
void UI_AbstractValue_SetShiftIncreaseFactor (uiNode_t *node, float factor)
void UI_RegisterAbstractValueNode (uiBehaviour_t *behaviour)

Detailed Description

The abstractvalue node is an abstract node (we can't instanciate it). It provide common properties to concrete nodes, to manage a value in a range.

Definition in file ui_node_abstractvalue.cpp.

Macro Definition Documentation

◆ EXTRADATA

◆ EXTRADATA_TYPE

#define EXTRADATA_TYPE   abstractValueExtraData_t

Definition at line 39 of file ui_node_abstractvalue.cpp.

◆ EXTRADATACONST

Function Documentation

◆ UI_AbstractValue_DecValue()

◆ UI_AbstractValue_GetDelta()

float UI_AbstractValue_GetDelta ( uiNode_t * node)

◆ UI_AbstractValue_GetLastDiff()

float UI_AbstractValue_GetLastDiff ( uiNode_t * node)

◆ UI_AbstractValue_GetMax()

float UI_AbstractValue_GetMax ( uiNode_t * node)

◆ UI_AbstractValue_GetMin()

float UI_AbstractValue_GetMin ( uiNode_t * node)

◆ UI_AbstractValue_GetShiftIncreaseFactor()

float UI_AbstractValue_GetShiftIncreaseFactor ( uiNode_t * node)

◆ UI_AbstractValue_GetValue()

float UI_AbstractValue_GetValue ( uiNode_t * node)

◆ UI_AbstractValue_IncValue()

◆ UI_AbstractValue_SetDelta()

void UI_AbstractValue_SetDelta ( uiNode_t * node,
float delta )

◆ UI_AbstractValue_SetMax()

◆ UI_AbstractValue_SetMaxCvar()

void UI_AbstractValue_SetMaxCvar ( uiNode_t * node,
const char * max )

◆ UI_AbstractValue_SetMin()

◆ UI_AbstractValue_SetMinCvar()

void UI_AbstractValue_SetMinCvar ( uiNode_t * node,
const char * min )

◆ UI_AbstractValue_SetRange()

void UI_AbstractValue_SetRange ( uiNode_t * node,
float min,
float max )

◆ UI_AbstractValue_SetRangeCvar()

void UI_AbstractValue_SetRangeCvar ( uiNode_t * node,
const char * min,
const char * max )

◆ UI_AbstractValue_SetShiftIncreaseFactor()

void UI_AbstractValue_SetShiftIncreaseFactor ( uiNode_t * node,
float factor )

Definition at line 400 of file ui_node_abstractvalue.cpp.

References EXTRADATA.

Referenced by uiAbstractValueNode_t_set_shiftmultiplier().

◆ UI_AbstractValue_SetValue()

void UI_AbstractValue_SetValue ( uiNode_t * node,
float value )

◆ UI_AbstractValue_SetValueCvar()

void UI_AbstractValue_SetValueCvar ( uiNode_t * node,
const char * value )

◆ UI_CloneCvarOrFloat()

void UI_CloneCvarOrFloat ( const uiNode_t * source,
uiNode_t * clone,
const float *const * sourceData,
float ** cloneData )
static

◆ UI_FreeCvarOrFloat()

◆ UI_InitCvarOrFloat()

void UI_InitCvarOrFloat ( float ** adress,
float defaultValue )
inlinestatic

Allocates a float and initializes it if the pointer value is not set, else does nothing.

Definition at line 46 of file ui_node_abstractvalue.cpp.

References UI_AllocStaticFloat().

Referenced by uiAbstractValueNode::onLoaded(), and uiAbstractValueNode::setRange().

◆ UI_RegisterAbstractValueNode()