|
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) |
| #define | EXTRADATACONST(node) |
| #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. | |
| void | UI_TextScrollEnd (const char *nodePath) |
| Scroll to the bottom. | |
| static int | UI_TextNodeGetLine (const uiNode_t *node, int x, int y) |
| Get the line number under an absolute position. | |
| void | UI_RegisterTextNode (uiBehaviour_t *behaviour) |
Variables | |
| static int | mouseScrollX |
| static int | mouseScrollY |
Definition in file ui_node_text.cpp.
| #define EXTRADATA | ( | node | ) |
Definition at line 45 of file ui_node_text.cpp.
Referenced by UI_TextNodeGetSelectedText(), UI_TextNodeSelectLine(), and UI_TextScrollEnd().
| #define EXTRADATA_TYPE textExtraData_t |
Definition at line 44 of file ui_node_text.cpp.
| #define EXTRADATACONST | ( | node | ) |
Definition at line 46 of file ui_node_text.cpp.
Referenced by UI_TextNodeGetLine().
| #define UI_TEXTNODE_BUFFERSIZE 32768 |
Definition at line 200 of file ui_node_text.cpp.
Referenced by uiTextNode::drawText().
| 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 uiText2Node::onLeftClick(), uiTextNode::onLeftClick(), uiText2Node::onMouseMove(), uiTextNode::onMouseMove(), uiText2Node::onRightClick(), 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(), uiText2Node::onLeftClick(), uiTextNode::onLeftClick(), uiText2Node::onRightClick(), uiTextNode::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(), Irc_AppendToBuffer(), and cgame_import_t::void().
|
static |
Definition at line 49 of file ui_node_text.cpp.
|
static |
Definition at line 50 of file ui_node_text.cpp.