|
UFO: Alien Invasion
|
#include "../ui_main.h"#include "../ui_parse.h"#include "../ui_behaviour.h"#include "../ui_sprite.h"#include "ui_node_abstractnode.h"#include "ui_node_option.h"#include "../../client.h"#include "../../../common/scripts_lua.h"
Go to the source code of this file.
Macros | |
| #define | EXTRADATA_TYPE optionExtraData_t |
| #define | EXTRADATA(node) |
| #define | EXTRADATACONST(node) |
Functions | |
| int | UI_OptionUpdateCache (uiNode_t *option) |
| update option cache about child, according to collapse and visible status | |
| static void | UI_InitOption (uiNode_t *option, const char *label, const char *value) |
| Initializes an option with a very little set of values. | |
| uiNode_t * | UI_AllocOptionNode (const char *name, const char *label, const char *value) |
| Initializes an option with a very little set of values. | |
| void | UI_Option_SetLabel (uiNode_t *node, const char *text) |
| void | UI_Option_SetValue (uiNode_t *node, const char *text) |
| void | UI_Option_SetIconByName (uiNode_t *node, const char *name) |
| void | UI_RegisterOptionNode (uiBehaviour_t *behaviour) |
Variables | |
| const uiBehaviour_t * | ui_optionBehaviour = nullptr |
| static const value_t * | propertyCollapsed |
| #define EXTRADATA | ( | node | ) |
Definition at line 42 of file ui_node_option.cpp.
| #define EXTRADATA_TYPE optionExtraData_t |
Definition at line 41 of file ui_node_option.cpp.
| #define EXTRADATACONST | ( | node | ) |
Definition at line 43 of file ui_node_option.cpp.
| uiNode_t * UI_AllocOptionNode | ( | const char * | name, |
| const char * | label, | ||
| const char * | value ) |
Initializes an option with a very little set of values.
| [in] | name | The name of the new node |
| [in] | label | label displayed |
| [in] | value | value used when this option is selected |
Definition at line 126 of file ui_node_option.cpp.
References name, UI_AllocNode(), and UI_InitOption().
Referenced by UI_AddOption().
Initializes an option with a very little set of values.
| [in] | option | Context option |
| [in] | label | label displayed |
| [in] | value | value used when this option is selected |
Definition at line 112 of file ui_node_option.cpp.
References uiNode_t::behaviour, OPTIONEXTRADATA, Q_strncpyz(), and ui_optionBehaviour.
Referenced by UI_AllocOptionNode().
Definition at line 142 of file ui_node_option.cpp.
References name, OPTIONEXTRADATA, and UI_GetSpriteByName().
Referenced by uiOptionNode_t_set_icon().
Definition at line 134 of file ui_node_option.cpp.
References OPTIONEXTRADATA, and Q_strncpyz().
Referenced by uiOptionNode_t_set_label().
Definition at line 138 of file ui_node_option.cpp.
References OPTIONEXTRADATA, and Q_strncpyz().
Referenced by uiOptionNode_t_set_value().
update option cache about child, according to collapse and visible status
Definition at line 53 of file ui_node_option.cpp.
References uiNode_t::behaviour, count, uiNode_t::firstChild, uiNode_t::invis, uiNode_t::next, OPTIONEXTRADATA, ui_optionBehaviour, and UI_OptionUpdateCache().
Referenced by UI_OptionTreeNodeUpdateCache(), and UI_OptionUpdateCache().
| void UI_RegisterOptionNode | ( | uiBehaviour_t * | behaviour | ) |
Displayed text
Value of the option
If true, child are not displayed
Definition at line 147 of file ui_node_option.cpp.
References EXTRADATA_TYPE, uiBehaviour_t::extraDataSize, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, propertyCollapsed, ui_optionBehaviour, UI_RegisterExtradataNodeProperty, UI_SWIG_TypeQuery(), V_BOOL, V_STRING, and V_UI_SPRITEREF.
|
static |
Definition at line 45 of file ui_node_option.cpp.
Referenced by uiOptionNode::onPropertyChanged(), and UI_RegisterOptionNode().
| const uiBehaviour_t* ui_optionBehaviour = nullptr |
Allow to check if a node is an option without string check
Definition at line 39 of file ui_node_option.cpp.
Referenced by uiAbstractOptionNode::doLayout(), uiOptionNode::doLayout(), uiTabNode::draw(), uiTabNode::onWindowOpened(), UI_AbstractOption_GetFirstOption(), UI_FindOptionAtIndex(), UI_FindOptionByValue(), UI_InitOption(), UI_InitOptionIteratorAtIndex(), UI_OptionTreeNodeGetFirstOption(), UI_OptionUpdateCache(), UI_RegisterOptionNode(), and UI_TabNodeTabAtPosition().