UFO: Alien Invasion
Loading...
Searching...
No Matches
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"
Include dependency graph for ui_node_special.cpp:

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.
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.
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).
static void UI_CvarListenerNodeForceBind (uiNode_t *node, const uiCallContext_t *context)
void UI_RegisterCvarFuncNode (uiBehaviour_t *behaviour)

Function Documentation

◆ UI_ConfuncCommand_f()

void UI_ConfuncCommand_f ( void )
static

◆ UI_ConFuncIsVirtual()

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().

◆ UI_CvarListenerNodeBind()

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_t::data, LIST_AddPointer(), LIST_GetPointer(), uiNode_t::name, UI_CvarListenerNodeCallback(), and UI_GetPath().

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

◆ UI_CvarListenerNodeCallback()

void UI_CvarListenerNodeCallback ( const char * cvarName,
const char * oldValue,
const char * newValue,
void * data )
static

◆ UI_CvarListenerNodeForceBind()

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().

◆ UI_RegisterConFuncNode()

◆ UI_RegisterCvarFuncNode()

◆ UI_RegisterFuncNode()

◆ UI_RegisterNullNode()

void UI_RegisterNullNode ( uiBehaviour_t * behaviour)