|
UFO: Alien Invasion
|
#include "ui_main.h"#include "ui_nodes.h"#include "ui_internal.h"#include "ui_draw.h"#include "ui_actions.h"#include "ui_input.h"#include "ui_node.h"#include "ui_timer.h"#include "ui_dragndrop.h"#include "ui_tooltip.h"#include "ui_render.h"#include "node/ui_node_abstractnode.h"#include "../client.h"#include "../renderer/r_draw.h"#include "../renderer/r_misc.h"
Go to the source code of this file.
Functions | |
| void | UI_CaptureDrawOver (uiNode_t *node) |
| Capture a node we will draw over all nodes (per window). | |
| static void | UI_CheckTooltipDelay (uiNode_t *node, uiTimer_t *timer) |
| static void | UI_DrawNode (uiNode_t *node) |
| static void | UI_DrawNotice (void) |
| Generic notice function that renders a message to the screen. | |
| void | UI_Draw (void) |
| Draws the window stack. | |
| void | UI_DrawCursor (void) |
| void | UI_DisplayNotice (const char *text, int time, const char *windowName) |
| Displays a message over all windows. | |
| void | UI_InitDraw (void) |
Variables | |
| static const int | TOOLTIP_DELAY = 500 |
| static cvar_t * | ui_show_tooltips |
| static bool | tooltipVisible = false |
| static uiTimer_t * | tooltipTimer |
| static int | noticeTime |
| static char | noticeText [256] |
| static uiNode_t * | noticeWindow |
| static uiNode_t * | drawOverNode |
| Node we will draw over. | |
Capture a node we will draw over all nodes (per window).
Definition at line 64 of file ui_draw.cpp.
References drawOverNode.
Referenced by uiEditorNode::draw(), uiSelectBoxNode::draw(), and uiVideoNode::draw().
Definition at line 201 of file ui_draw.cpp.
References tooltipVisible, and UI_TimerStop().
Referenced by UI_InitDraw().
Displays a message over all windows.
| [in] | time | is a ms values |
| [in] | text | text is already translated here |
| [in] | windowName | Window name where we must display the notice; else nullptr to use the current active window |
Definition at line 411 of file ui_draw.cpp.
References CL_Milliseconds(), Com_Printf(), noticeText, noticeTime, noticeWindow, Q_strncpyz(), UI_GetActiveWindow(), and UI_GetWindow().
Referenced by CL_RContextCvarChange(), CL_RImagesCvarChange(), GAME_GetImportData(), and HUD_DisplayMessage().
Draws the window stack.
Definition at line 341 of file ui_draw.cpp.
References CL_Milliseconds(), drawOverNode, hoveredNode, mousePosX, mousePosY, noticeTime, noticeWindow, tooltipTimer, tooltipVisible, UI_CheckMouseMove(), UI_DebugMode(), UI_DNDIsDragging(), UI_DrawNode(), UI_DrawNotice(), UI_GetHoveredNode(), UI_GetLastFullScreenWindow(), ui_global, UI_HandleTimers(), UI_Node_DrawOverWindow(), UI_Node_DrawTooltip(), ui_show_tooltips, UI_TimerStart(), and UI_TimerStop().
Referenced by SCR_DrawLoading(), and SCR_UpdateScreen().
Definition at line 399 of file ui_draw.cpp.
References mousePosX, mousePosY, and UI_DrawDragAndDrop().
Referenced by SCR_DrawCursor().
Definition at line 207 of file ui_draw.cpp.
References uiNode_t::bgcolor, uiNode_t::border, uiNode_t::bordercolor, uiNode_t::box, CL_Milliseconds(), uiNode_t::deleteTime, uiNode_t::firstChild, uiNode_t::invis, uiNode_t::next, R_Transform(), uiBox_t::size, UI_CheckVisibility(), UI_DeleteNode(), UI_DrawFill(), UI_DrawNode(), UI_DrawRect(), UI_GetNodeAbsPos(), UI_Node_Draw(), UI_Node_GetClientPosition(), UI_Node_IsDrawable(), UI_Node_IsDrawItselfChild(), UI_Node_IsScrollableContainer(), UI_Node_IsVirtual(), UI_PopClipRect(), UI_PushClipRect(), UI_Validate(), Vector2NotEmpty, and viddef.
Referenced by UI_Draw(), and UI_DrawNode().
Generic notice function that renders a message to the screen.
< Delta-x position. Relative to original x position.
Definition at line 296 of file ui_draw.cpp.
References ALIGN_CC, LONGLINES_WRAP, noticeText, noticeWindow, R_Color(), R_FontTextSize(), UI_DrawFill(), UI_DrawString(), UI_WindowNodeGetNoticePosition(), VID_NORM_WIDTH, and viddef.
Referenced by UI_Draw().
Definition at line 427 of file ui_draw.cpp.
References CVAR_ARCHIVE, Cvar_Get(), TOOLTIP_DELAY, tooltipTimer, UI_AllocTimer(), UI_CheckTooltipDelay(), and ui_show_tooltips.
Referenced by UI_Init().
|
static |
Node we will draw over.
Definition at line 57 of file ui_draw.cpp.
Referenced by UI_CaptureDrawOver(), and UI_Draw().
|
static |
Definition at line 49 of file ui_draw.cpp.
Referenced by UI_DisplayNotice(), and UI_DrawNotice().
|
static |
Definition at line 48 of file ui_draw.cpp.
Referenced by UI_DisplayNotice(), and UI_Draw().
|
static |
Definition at line 50 of file ui_draw.cpp.
Referenced by UI_DisplayNotice(), UI_Draw(), and UI_DrawNotice().
|
static |
Definition at line 42 of file ui_draw.cpp.
Referenced by UI_InitDraw().
|
static |
Definition at line 46 of file ui_draw.cpp.
Referenced by UI_Draw(), and UI_InitDraw().
|
static |
Definition at line 45 of file ui_draw.cpp.
Referenced by UI_CheckTooltipDelay(), and UI_Draw().
|
static |
Definition at line 44 of file ui_draw.cpp.
Referenced by UI_Draw(), and UI_InitDraw().