ui_node_special.c File Reference

The zone node allow to create an hidden active node. Currently we only use it to support repeat mouse actions without merging the code which managing this feature. More...

#include "../../client.h"
#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "../ui_actions.h"
#include "ui_node_window.h"
#include "ui_node_special.h"
#include "ui_node_abstractnode.h"
Include dependency graph for ui_node_special.c:

Go to the source code of this file.

Functions

static void UI_FuncNodeLoaded (uiNode_t *node)
 Call after the script initialized the node.
void UI_RegisterSpecialNode (uiBehaviour_t *behaviour)
void UI_RegisterFuncNode (uiBehaviour_t *behaviour)
void UI_RegisterNullNode (uiBehaviour_t *behaviour)
static void UI_ConfuncCommand_f (void)
 Callback to execute a confunc.
static qboolean UI_ConFuncIsVirtual (const uiNode_t *const node)
 Checks whether the given node is a virtual confunc that can be overridden from inheriting nodes.
static void UI_ConFuncNodeLoaded (uiNode_t *node)
 Call after the script initialized the node.
static void UI_ConFuncNodeClone (const uiNode_t *source, uiNode_t *clone)
static void UI_ConFuncNodeInit (uiNode_t *node)
 Callback every time the parent window is opened (pushed into the active window stack).
static void UI_ConFuncNodeClose (uiNode_t *node)
 Callback every time the parent window is closed (pop from the active window stack).
void UI_RegisterConFuncNode (uiBehaviour_t *behaviour)
void UI_RegisterCvarFuncNode (uiBehaviour_t *behaviour)

Detailed Description

The zone node allow to create an hidden active node. Currently we only use it to support repeat mouse actions without merging the code which managing this feature.

The very special zone called "render" is used to identify a rendering rectangle for battlescape. This part of the code should be removed.

Todo:
Find a way to remove the zone called "render". Create a node for the battlescape?

Definition in file ui_node_special.c.


Function Documentation

static void UI_ConfuncCommand_f ( void   )  [static]

Callback to execute a confunc.

Definition at line 75 of file ui_node_special.c.

References Cmd_Userdata(), uiNode_s::onClick, UI_ExecuteConFuncActions(), and UI_NodeInstanceOf().

Referenced by UI_ConFuncNodeLoaded().

static qboolean UI_ConFuncIsVirtual ( const uiNode_t *const   node  )  [static]

Checks whether the given node is a virtual confunc that can be overridden from inheriting nodes.

Parameters:
node The node to check (must be a confunc node).
Returns:
true if the given node is a dummy node, false otherwise.

Definition at line 88 of file ui_node_special.c.

References Cmd_GetUserdata(), uiNode_s::name, uiNode_s::parent, and UI_NodeInstanceOf().

Referenced by UI_ConFuncNodeClose(), UI_ConFuncNodeInit(), and UI_ConFuncNodeLoaded().

static void UI_ConFuncNodeClone ( const uiNode_t source,
uiNode_t clone 
) [static]

Definition at line 126 of file ui_node_special.c.

References UI_ConFuncNodeLoaded().

Referenced by UI_RegisterConFuncNode().

static void UI_ConFuncNodeClose ( uiNode_t node  )  [static]

Callback every time the parent window is closed (pop from the active window stack).

Definition at line 146 of file ui_node_special.c.

References uiNode_s::behaviour, Cmd_GetUserdata(), uiNode_s::name, UI_ConFuncIsVirtual(), UI_GetPropertyFromBehaviour(), and UI_RemoveListener().

Referenced by UI_RegisterConFuncNode().

static void UI_ConFuncNodeInit ( uiNode_t node  )  [static]

Callback every time the parent window is opened (pushed into the active window stack).

Definition at line 134 of file ui_node_special.c.

References uiNode_s::behaviour, Cmd_GetUserdata(), uiNode_s::name, UI_AddListener(), UI_ConFuncIsVirtual(), and UI_GetPropertyFromBehaviour().

Referenced by UI_RegisterConFuncNode().

static void UI_ConFuncNodeLoaded ( uiNode_t node  )  [static]
static void UI_FuncNodeLoaded ( uiNode_t node  )  [static]

Call after the script initialized the node.

Todo:
special cases should be managed as a common property event of the parent node

Todo:
move this code into the parser (it should not create a node)

Definition at line 37 of file ui_node_special.c.

References uiNode_s::behaviour, Com_Printf(), uiNode_s::name, value_s::ofs, uiNode_s::onClick, uiNode_s::parent, value_s::string, value_s::type, UI_GetPath(), UI_GetPropertyFromBehaviour(), and V_UI_ACTION.

Referenced by UI_RegisterFuncNode().

void UI_RegisterConFuncNode ( uiBehaviour_t behaviour  ) 
void UI_RegisterCvarFuncNode ( uiBehaviour_t behaviour  ) 
void UI_RegisterFuncNode ( uiBehaviour_t behaviour  ) 
void UI_RegisterNullNode ( uiBehaviour_t behaviour  ) 
void UI_RegisterSpecialNode ( uiBehaviour_t behaviour  ) 

Definition at line 50 of file ui_node_special.c.

References uiBehaviour_s::isVirtual, uiBehaviour_s::name, and qtrue.


Generated by  doxygen 1.6.2