UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ui_node_special.cpp File Reference
#include "../../cl_shared.h"
#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "../ui_actions.h"
#include "../ui_behaviour.h"
#include "../ui_lua.h"
#include "ui_node_window.h"
#include "ui_node_special.h"
#include "ui_node_abstractnode.h"
#include "../../../common/scripts_lua.h"

Go to the source code of this file.

Functions

void UI_RegisterFuncNode (uiBehaviour_t *behaviour)
 
void UI_RegisterNullNode (uiBehaviour_t *behaviour)
 
static void UI_ConfuncCommand_f (void)
 Callback to execute a confunc. More...
 
static bool UI_ConFuncIsVirtual (const uiNode_t *const node)
 Checks whether the given node is a virtual confunc that can be overridden from inheriting nodes. More...
 
void UI_RegisterConFuncNode (uiBehaviour_t *behaviour)
 
static void UI_CvarListenerNodeCallback (const char *cvarName, const char *oldValue, const char *newValue, void *data)
 
static void UI_CvarListenerNodeBind (uiNode_t *node)
 Callback every time the parent window is opened (pushed into the active window stack) More...
 
static void UI_CvarListenerNodeForceBind (uiNode_t *node, const uiCallContext_t *context)
 
void UI_RegisterCvarFuncNode (uiBehaviour_t *behaviour)
 

Function Documentation

static void UI_ConfuncCommand_f ( void  )
static
static bool 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
nodeThe node to check (must be a confunc node).
Returns
true if the given node is a dummy node, false otherwise.

Definition at line 91 of file ui_node_special.cpp.

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

Referenced by uiConFuncNode::onLoaded(), uiConFuncNode::onWindowClosed(), and uiConFuncNode::onWindowOpened().

static void UI_CvarListenerNodeBind ( uiNode_t node)
static

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

Definition at line 197 of file ui_node_special.cpp.

References Com_Printf(), Cvar_RegisterChangeListener(), cvarChangeListener_s::data, LIST_AddPointer(), LIST_GetPointer(), uiNode_t::name, UI_CvarListenerNodeCallback(), and UI_GetPath().

Referenced by uiCvarNode::clone(), uiCvarNode::onWindowOpened(), and UI_CvarListenerNodeForceBind().

static void UI_CvarListenerNodeCallback ( const char *  cvarName,
const char *  oldValue,
const char *  newValue,
void data 
)
static
static void UI_CvarListenerNodeForceBind ( uiNode_t node,
const uiCallContext_t context 
)
static

Definition at line 252 of file ui_node_special.cpp.

References UI_CvarListenerNodeBind().

Referenced by UI_RegisterCvarFuncNode().

void UI_RegisterNullNode ( uiBehaviour_t behaviour)