UFO: Alien Invasion
|
#include "../ui_main.h"
#include "../ui_parse.h"
#include "../ui_behaviour.h"
#include "../ui_actions.h"
#include "../ui_font.h"
#include "../ui_data.h"
#include "../ui_sprite.h"
#include "../ui_render.h"
#include "../ui_input.h"
#include "../ui_lua.h"
#include "ui_node_abstractoption.h"
#include "ui_node_abstractnode.h"
#include "ui_node_optiontree.h"
#include "ui_node_option.h"
#include "ui_node_panel.h"
#include "../../cl_language.h"
#include "../../input/cl_keys.h"
#include "../../../common/scripts_lua.h"
Go to the source code of this file.
Macros | |
#define | EXTRADATA_TYPE abstractOptionExtraData_t |
#define | EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE) |
Functions | |
static void | UI_OptionTreeNodeUpdateScroll (uiNode_t *node) |
Update the scroll according to the number of items and the size of the node. More... | |
static uiNode_t * | UI_OptionTreeNodeGetFirstOption (uiNode_t *node) |
Return the first option of the node. More... | |
static void | UI_OptionTreeNodeUpdateCache (uiNode_t *node) |
static uiNode_t * | UI_OptionTreeNodeGetOptionAtPosition (uiNode_t *node, int x, int y, int *depth) |
void | UI_OptionTree_SelectValue (uiNode_t *node, const char *value) |
static void | UI_OptionTreeSetSelectedValue (uiNode_t *node, const uiCallContext_t *context) |
void | UI_RegisterOptionTreeNode (uiBehaviour_t *behaviour) |
Variables | |
static const int | COLLAPSEBUTTON_WIDTH = 20 |
static const int | DEPTH_WIDTH = 25 |
static uiSprite_t * | systemCollapse |
static uiSprite_t * | systemExpand |
static int | mouseScrollX |
static int | mouseScrollY |
Definition in file ui_node_optiontree.cpp.
#define EXTRADATA | ( | node | ) | UI_EXTRADATA(node, EXTRADATA_TYPE) |
Definition at line 49 of file ui_node_optiontree.cpp.
Referenced by uiOptionTreeNode::draw(), uiOptionTreeNode::getCellHeight(), uiOptionTreeNode::onCapturedMouseMove(), uiOptionTreeNode::onLoading(), uiOptionTreeNode::onMouseDown(), uiOptionTreeNode::onScroll(), UI_OptionTree_SelectValue(), UI_OptionTreeNodeGetFirstOption(), UI_OptionTreeNodeGetOptionAtPosition(), UI_OptionTreeNodeUpdateCache(), and UI_OptionTreeNodeUpdateScroll().
#define EXTRADATA_TYPE abstractOptionExtraData_t |
Definition at line 48 of file ui_node_optiontree.cpp.
Referenced by UI_RegisterOptionTreeNode().
Definition at line 324 of file ui_node_optiontree.cpp.
References Com_Printf(), uiOptionIterator_t::depthCache, uiOptionIterator_t::depthPos, EXTRADATA, i, OPTIONEXTRADATA, UI_AbstractOption_SetCurrentValue(), UI_ExecuteEventActions(), UI_ExecuteLuaEventScript(), UI_FindOptionByValue(), UI_FindOptionPosition(), UI_InitOptionIteratorAtIndex(), UI_OptionTreeNodeGetFirstOption(), UI_OptionTreeNodeUpdateCache(), and UI_OptionTreeNodeUpdateScroll().
Referenced by UI_OptionTreeSetSelectedValue(), and uiOptionTreeNode_t_set_selectedvalue().
Return the first option of the node.
Definition at line 103 of file ui_node_optiontree.cpp.
References uiNode_t::behaviour, EXTRADATA, uiNode_t::firstChild, UI_GetDataVersion(), UI_GetOption(), ui_optionBehaviour, UI_OptionTreeNodeUpdateCache(), and v.
Referenced by uiOptionTreeNode::draw(), UI_OptionTree_SelectValue(), UI_OptionTreeNodeGetOptionAtPosition(), and UI_OptionTreeNodeUpdateCache().
|
static |
Definition at line 222 of file ui_node_optiontree.cpp.
References count, uiOptionIterator_t::depthPos, EXTRADATA, uiNode_t::padding, UI_FontGetHeight(), UI_GetFontFromNode(), UI_InitOptionIteratorAtIndex(), UI_NodeAbsoluteToRelativePos(), and UI_OptionTreeNodeGetFirstOption().
Referenced by uiOptionTreeNode::onLeftClick().
Definition at line 92 of file ui_node_optiontree.cpp.
References EXTRADATA, UI_OptionTreeNodeGetFirstOption(), and UI_OptionUpdateCache().
Referenced by uiOptionTreeNode::doLayout(), uiOptionTreeNode::onLeftClick(), UI_OptionTree_SelectValue(), and UI_OptionTreeNodeGetFirstOption().
Update the scroll according to the number of items and the size of the node.
Definition at line 65 of file ui_node_optiontree.cpp.
References uiNode_t::box, count, EXTRADATA, uiNode_t::padding, uiBox_t::size, UI_ExecuteEventActions(), UI_ExecuteLuaEventScript(), UI_FontGetHeight(), and UI_GetFontFromNode().
Referenced by uiOptionTreeNode::draw(), and UI_OptionTree_SelectValue().
|
static |
Definition at line 365 of file ui_node_optiontree.cpp.
References Com_Printf(), UI_GetParam(), UI_GetParamNumber(), and UI_OptionTree_SelectValue().
Referenced by UI_RegisterOptionTreeNode().
void UI_RegisterOptionTreeNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 439 of file ui_node_optiontree.cpp.
References uiBehaviour_t::drawItselfChild, uiBehaviour_t::extends, EXTRADATA_TYPE, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, UI_OptionTreeSetSelectedValue(), UI_RegisterExtradataNodeProperty, UI_RegisterNodeMethod(), UI_SWIG_TypeQuery(), and V_UI_SPRITEREF.
|
static |
Size used for the collapse button
Definition at line 51 of file ui_node_optiontree.cpp.
Referenced by uiOptionTreeNode::draw(), and uiOptionTreeNode::onLeftClick().
|
static |
Width between each depth level
Definition at line 52 of file ui_node_optiontree.cpp.
Referenced by uiOptionTreeNode::draw(), and uiOptionTreeNode::onLeftClick().
|
static |
Definition at line 58 of file ui_node_optiontree.cpp.
Referenced by uiOptionTreeNode::onCapturedMouseMove(), and uiOptionTreeNode::onMouseDown().
|
static |
Definition at line 59 of file ui_node_optiontree.cpp.
Referenced by uiOptionTreeNode::onCapturedMouseMove(), and uiOptionTreeNode::onMouseDown().
|
static |
Definition at line 54 of file ui_node_optiontree.cpp.
Referenced by uiOptionTreeNode::draw().
|
static |
Definition at line 55 of file ui_node_optiontree.cpp.