|
UFO: Alien Invasion
|
#include "../ui_main.h"#include "../ui_internal.h"#include "../ui_font.h"#include "../ui_actions.h"#include "../ui_parse.h"#include "../ui_behaviour.h"#include "../ui_render.h"#include "../ui_lua.h"#include "ui_node_text.h"#include "ui_node_abstractnode.h"#include "../../client.h"#include "../../cl_language.h"#include "../../../shared/parse.h"#include "../../../common/scripts_lua.h"
Go to the source code of this file.
Macros | |
| #define | EXTRADATA_TYPE textExtraData_t |
| #define | EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE) |
| #define | EXTRADATACONST(node) UI_EXTRADATACONST(node, EXTRADATA_TYPE) |
| #define | UI_TEXTNODE_BUFFERSIZE 32768 |
Functions | |
| const char * | UI_TextNodeGetSelectedText (uiNode_t *node, int num) |
| void | UI_TextNodeSelectLine (uiNode_t *node, int num) |
| Change the selected line. More... | |
| void | UI_TextScrollEnd (const char *nodePath) |
| Scroll to the bottom. More... | |
| static int | UI_TextNodeGetLine (const uiNode_t *node, int x, int y) |
| Get the line number under an absolute position. More... | |
| void | UI_RegisterTextNode (uiBehaviour_t *behaviour) |
Variables | |
| static int | mouseScrollX |
| static int | mouseScrollY |
Definition in file ui_node_text.cpp.
| #define EXTRADATA | ( | node | ) | UI_EXTRADATA(node, EXTRADATA_TYPE) |
Definition at line 45 of file ui_node_text.cpp.
| #define EXTRADATA_TYPE textExtraData_t |
Definition at line 44 of file ui_node_text.cpp.
| #define EXTRADATACONST | ( | node | ) | UI_EXTRADATACONST(node, EXTRADATA_TYPE) |
Definition at line 46 of file ui_node_text.cpp.
| #define UI_TEXTNODE_BUFFERSIZE 32768 |
Definition at line 200 of file ui_node_text.cpp.
| void UI_RegisterTextNode | ( | uiBehaviour_t * | behaviour | ) |
Highlight each node elements when the mouse move over the node.
Definition at line 585 of file ui_node_text.cpp.
References Com_RegisterConstInt(), uiBehaviour_t::extends, EXTRADATA_TYPE, uiBehaviour_t::extraDataSize, LONGLINES_CHOP, LONGLINES_PRETTYCHOP, LONGLINES_WRAP, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, UI_RegisterExtradataNodeProperty, UI_SWIG_TypeQuery(), V_BOOL, V_CVAR_OR_STRING, V_INT, and V_UI_DATAID.
Get the line number under an absolute position.
| [in] | node | a text node |
| [in] | x,y | position on the screen |
Definition at line 126 of file ui_node_text.cpp.
References EXTRADATACONST, int(), uiNode_t::padding, UI_FontGetHeight(), UI_GetFontFromNode(), UI_NodeAbsoluteToRelativePos(), and UI_NodeInstanceOf().
Referenced by uiTextNode::onLeftClick(), uiTextNode::onMouseMove(), and uiTextNode::onRightClick().
Definition at line 64 of file ui_node_text.cpp.
References EXTRADATA, and UI_GetTextFromList().
Referenced by uiTextListNode::onLeftClick(), uiTextListNode::onRightClick(), and UI_TextNodeSelectLine().
Change the selected line.
Definition at line 75 of file ui_node_text.cpp.
References EXTRADATA, uiNode_t::lua_onChange, uiNode_t::onChange, UI_ExecuteEventActions(), UI_ExecuteLuaEventScript(), and UI_TextNodeGetSelectedText().
Referenced by GAME_GetImportData(), HUD_PopupFiremodeReservation(), HUD_ShotReserve_f(), uiTextNode::onLeftClick(), uiText2Node::onLeftClick(), uiTextNode::onRightClick(), uiText2Node::onRightClick(), and uiTextNode_t_set_lineselected().
| void UI_TextScrollEnd | ( | const char * | nodePath | ) |
Scroll to the bottom.
| [in] | nodePath | absolute path |
Definition at line 93 of file ui_node_text.cpp.
References uiNode_t::behaviour, Cmd_Argv(), Com_DPrintf(), Com_Printf(), DEBUG_CLIENT, EXTRADATA, SharedPtr< T >::get(), uiBehaviour_t::manager, UI_ExecuteEventActions(), UI_ExecuteLuaEventScript(), UI_GetNodeByPath(), UI_NodeInstanceOf(), and uiTextNode::validateCache().
Referenced by GAME_GetImportData(), and Irc_AppendToBuffer().
|
static |
Definition at line 49 of file ui_node_text.cpp.
Referenced by uiTextNode::onCapturedMouseMove(), and uiTextNode::onMouseDown().
|
static |
Definition at line 50 of file ui_node_text.cpp.
Referenced by uiTextNode::onCapturedMouseMove(), and uiTextNode::onMouseDown().