UFO: Alien Invasion
Loading...
Searching...
No Matches
uiConFuncNode Class Reference

#include <ui_node_special.h>

Inheritance diagram for uiConFuncNode:
Inheritance graph
Collaboration diagram for uiConFuncNode:
Collaboration graph

Private Member Functions

void onLoaded (uiNode_t *node) override
 Call after the script initialized the node.
void onWindowOpened (uiNode_t *node, linkedList_t *params) override
 Callback every time the parent window is opened (pushed into the active window stack).
void onWindowClosed (uiNode_t *node) override
 Callback every time the parent window is closed (pop from the active window stack).
void clone (uiNode_t const *source, uiNode_t *clone) override
void deleteNode (uiNode_t *node) override
 Cleanup tasks on removing a console function.

Additional Inherited Members

Public Member Functions inherited from uiNode
virtual void onLoading (uiNode_t *node)
virtual void initNode (uiNode_t *node)
virtual void initNodeDynamic (uiNode_t *node)
virtual void onWindowActivate (uiNode_t *node)
virtual void onActivate (uiNode_t *node)
 Activate the node. Can be used without the mouse (ie. a button will execute onClick).
virtual void onPropertyChanged (uiNode_t *node, const value_t *property)
virtual ~uiNode ()

Detailed Description

Definition at line 29 of file ui_node_special.h.

Member Function Documentation

◆ clone()

void uiConFuncNode::clone ( uiNode_t const * source,
uiNode_t * clone )
overrideprivatevirtual

call to initialize a cloned node

Reimplemented from uiNode.

Definition at line 127 of file ui_node_special.cpp.

References clone(), uiNode::clone(), and onLoaded().

Referenced by clone().

◆ deleteNode()

void uiConFuncNode::deleteNode ( uiNode_t * node)
overrideprivatevirtual

Cleanup tasks on removing a console function.

Parameters
nodeThe node to delete.

Reimplemented from uiNode.

Definition at line 137 of file ui_node_special.cpp.

References Cmd_Exists(), Cmd_GetUserdata(), Cmd_RemoveCommand(), uiNode::deleteNode(), uiNode_t::name, and onWindowClosed().

◆ onLoaded()

void uiConFuncNode::onLoaded ( uiNode_t * node)
overrideprivatevirtual

Call after the script initialized the node.

Reimplemented from uiNode.

Definition at line 103 of file ui_node_special.cpp.

References Cmd_AddCommand(), Cmd_AddUserdata(), Cmd_Exists(), Com_Printf(), uiNode_t::name, uiNode_t::super, UI_AllocNode(), UI_ConfuncCommand_f(), UI_ConFuncIsVirtual(), and UI_GetPath().

Referenced by clone().

◆ onWindowClosed()

void uiConFuncNode::onWindowClosed ( uiNode_t * node)
overrideprivatevirtual

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

Reimplemented from uiNode.

Definition at line 163 of file ui_node_special.cpp.

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

Referenced by deleteNode().

◆ onWindowOpened()

void uiConFuncNode::onWindowOpened ( uiNode_t * node,
linkedList_t * params )
overrideprivatevirtual

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

Reimplemented from uiNode.

Definition at line 151 of file ui_node_special.cpp.

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


The documentation for this class was generated from the following files: