|
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_render.h"#include "../ui_lua.h"#include "ui_node_text2.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 text2ExtraData_t |
| #define | EXTRADATA(node) |
| #define | EXTRADATACONST(node) |
Functions | |
| static void | UI_TextNodeGenerateLineSplit (uiNode_t *node) |
| static int | UI_TextNodeGetLine (const uiNode_t *node, int x, int y) |
| Get the line number under an absolute position. | |
| void | UI_RegisterText2Node (uiBehaviour_t *behaviour) |
Node to display article of text. The node pre-parsed the "brute" text into a data structure. The rendering code only paint the data structure, without any parsing.
Definition in file ui_node_text2.cpp.
| #define EXTRADATA | ( | node | ) |
Definition at line 45 of file ui_node_text2.cpp.
Referenced by UI_TextNodeGenerateLineSplit().
| #define EXTRADATA_TYPE text2ExtraData_t |
Definition at line 44 of file ui_node_text2.cpp.
| #define EXTRADATACONST | ( | node | ) |
Definition at line 46 of file ui_node_text2.cpp.
Referenced by UI_TextNodeGetLine().
| void UI_RegisterText2Node | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 372 of file ui_node_text2.cpp.
References uiBehaviour_t::extends, EXTRADATA_TYPE, uiBehaviour_t::extraDataSize, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, and UI_SWIG_TypeQuery().
Definition at line 48 of file ui_node_text2.cpp.
References CL_Translate(), data, EXTRADATA, LIST_AddString(), LIST_Delete(), Mem_AllocTypeN, Mem_Free, Q_strncpyz(), uiNode_t::text, TEXT_NULL, uiSharedData_t::type, UI_GetReferenceString(), UI_GetText(), ui_global, UI_SHARED_LINKEDLISTTEXT, and UI_SHARED_TEXT.
Referenced by uiText2Node::updateCache().
Get the line number under an absolute position.
| [in] | node | a text node |
| [in] | x,y | position on the screen |
Definition at line 106 of file ui_node_text2.cpp.
References EXTRADATACONST, int(), uiNode_t::padding, UI_FontGetHeight(), UI_GetFontFromNode(), UI_NodeAbsoluteToRelativePos(), and UI_NodeInstanceOf().