A node allowing to tag a GUI with comment (only visible on debug mode). More...
#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "../ui_draw.h"
#include "../ui_tooltip.h"
#include "../ui_render.h"
#include "ui_node_todo.h"
#include "ui_node_abstractnode.h"
#include "../../input/cl_input.h"
Go to the source code of this file.
Functions | |
static void | UI_TodoNodeDrawTooltip (uiNode_t *node, int x, int y) |
Custom tooltip of todo node. | |
static void | UI_TodoNodeDraw (uiNode_t *node) |
static void | UI_TodoNodeDrawOverWindow (uiNode_t *node) |
static void | UI_TodoNodeLoading (uiNode_t *node) |
static void | UI_TodoNodeLoaded (uiNode_t *node) |
void | UI_RegisterTodoNode (uiBehaviour_t *behaviour) |
A node allowing to tag a GUI with comment (only visible on debug mode).
Definition in file ui_node_todo.c.
void UI_RegisterTodoNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 87 of file ui_node_todo.c.
References uiBehaviour_s::draw, uiBehaviour_s::drawOverWindow, uiBehaviour_s::extends, uiBehaviour_s::loaded, uiBehaviour_s::loading, uiBehaviour_s::name, UI_TodoNodeDraw(), UI_TodoNodeDrawOverWindow(), UI_TodoNodeLoaded(), and UI_TodoNodeLoading().
static void UI_TodoNodeDraw | ( | uiNode_t * | node | ) | [static] |
Definition at line 56 of file ui_node_todo.c.
References pos, red, uiNode_s::size, uiNode_s::state, UI_CaptureDrawOver(), UI_DrawFill(), and UI_GetNodeAbsPos().
Referenced by UI_RegisterTodoNode().
static void UI_TodoNodeDrawOverWindow | ( | uiNode_t * | node | ) | [static] |
Definition at line 68 of file ui_node_todo.c.
References mousePosX, mousePosY, and UI_TodoNodeDrawTooltip().
Referenced by UI_RegisterTodoNode().
static void UI_TodoNodeDrawTooltip | ( | uiNode_t * | node, | |
int | x, | |||
int | y | |||
) | [static] |
Custom tooltip of todo node.
[in] | node | Node we request to draw tooltip |
[in] | x | Position x of the mouse |
[in] | y | Position y of the mouse |
Definition at line 42 of file ui_node_todo.c.
References Q_strcat(), uiNode_s::text, UI_DrawTooltip(), and UI_GetReferenceString().
Referenced by UI_TodoNodeDrawOverWindow().
static void UI_TodoNodeLoaded | ( | uiNode_t * | node | ) | [static] |
Definition at line 78 of file ui_node_todo.c.
References uiNode_s::invis, qtrue, and uiNode_s::size.
Referenced by UI_RegisterTodoNode().
static void UI_TodoNodeLoading | ( | uiNode_t * | node | ) | [static] |
Definition at line 73 of file ui_node_todo.c.
References uiNode_s::color, and Vector4Set.
Referenced by UI_RegisterTodoNode().