UFO: Alien Invasion
Loading...
Searching...
No Matches
ui_draw.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void UI_InitDraw (void)
void UI_Draw (void)
 Draws the window stack.
void UI_DisplayNotice (const char *text, int time, const char *windowName)
 Displays a message over all windows.
void UI_DrawCursor (void)
void UI_CaptureDrawOver (uiNode_t *node)
 Capture a node we will draw over all nodes (per window).

Function Documentation

◆ UI_CaptureDrawOver()

void UI_CaptureDrawOver ( uiNode_t * node)

Capture a node we will draw over all nodes (per window).

Note
The node must be captured every frames
Todo
it can be better to capture the draw over only one time (need new event like mouseEnter, mouseLeave)

Definition at line 64 of file ui_draw.cpp.

References drawOverNode.

Referenced by uiEditorNode::draw(), uiSelectBoxNode::draw(), and uiVideoNode::draw().

◆ UI_DisplayNotice()

void UI_DisplayNotice ( const char * text,
int time,
const char * windowName )

Displays a message over all windows.

See also
HUD_DisplayMessage
Parameters
[in]timeis a ms values
[in]texttext is already translated here
[in]windowNameWindow 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().

◆ UI_Draw()

◆ UI_DrawCursor()

void UI_DrawCursor ( void )

Definition at line 399 of file ui_draw.cpp.

References mousePosX, mousePosY, and UI_DrawDragAndDrop().

Referenced by SCR_DrawCursor().

◆ UI_InitDraw()

void UI_InitDraw ( void )