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"
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) |
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.
Definition in file ui_node_special.c.
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().
Checks whether the given node is a virtual confunc that can be overridden from inheriting nodes.
node | The node to check (must be a confunc node). |
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().
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] |
Call after the script initialized the node.
Definition at line 100 of file ui_node_special.c.
References Cmd_AddCommand(), Cmd_AddUserdata(), Cmd_Exists(), Com_Printf(), uiNode_s::name, qfalse, uiNode_s::super, UI_AllocNode(), UI_ConfuncCommand_f(), UI_ConFuncIsVirtual(), and UI_GetPath().
Referenced by UI_ConFuncNodeClone(), and UI_RegisterConFuncNode().
static void UI_FuncNodeLoaded | ( | uiNode_t * | node | ) | [static] |
Call after the script initialized the 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 | ) |
Definition at line 155 of file ui_node_special.c.
References uiBehaviour_s::clone, uiBehaviour_s::close, uiBehaviour_s::extends, uiBehaviour_s::init, uiBehaviour_s::isFunction, uiBehaviour_s::isVirtual, uiBehaviour_s::loaded, uiBehaviour_s::name, qtrue, UI_ConFuncNodeClone(), UI_ConFuncNodeClose(), UI_ConFuncNodeInit(), and UI_ConFuncNodeLoaded().
void UI_RegisterCvarFuncNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 167 of file ui_node_special.c.
References uiBehaviour_s::extends, uiBehaviour_s::isFunction, uiBehaviour_s::isVirtual, uiBehaviour_s::name, and qtrue.
void UI_RegisterFuncNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 56 of file ui_node_special.c.
References uiBehaviour_s::extends, uiBehaviour_s::isFunction, uiBehaviour_s::isVirtual, uiBehaviour_s::loaded, uiBehaviour_s::name, qtrue, and UI_FuncNodeLoaded().
void UI_RegisterNullNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 65 of file ui_node_special.c.
References uiBehaviour_s::extends, uiBehaviour_s::isVirtual, uiBehaviour_s::name, and qtrue.
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.