#include "../client.h"
#include "node/ui_node_window.h"
#include "ui_tooltip.h"
#include "ui_nodes.h"
#include "ui_parse.h"
#include "ui_render.h"
#include "ui_input.h"
Go to the source code of this file.
Functions | |
int | UI_DrawTooltip (const char *string, int x, int y, int maxWidth) |
Generic tooltip function. | |
void | UI_Tooltip (uiNode_t *node, int x, int y) |
Wrapper for UI tooltips. | |
Variables | |
static const vec4_t | tooltipBG = { 0.0f, 0.0f, 0.0f, 0.7f } |
static const vec4_t | tooltipColor = { 0.0f, 0.8f, 0.0f, 1.0f } |
Definition in file ui_tooltip.c.
int UI_DrawTooltip | ( | const char * | string, | |
int | x, | |||
int | y, | |||
int | maxWidth | |||
) |
Generic tooltip function.
Definition at line 41 of file ui_tooltip.c.
References ALIGN_UL, uiNode_s::font, LONGLINES_WRAP, qfalse, R_Color(), R_FontTextSize(), tooltipBG, tooltipColor, UI_DrawFill(), UI_DrawString(), VID_NORM_HEIGHT, and VID_NORM_WIDTH.
Referenced by UI_BaseInventoryNodeDrawTooltip(), UI_BaseMapNodeDrawTooltip(), UI_ContainerNodeDrawTooltip(), UI_StringNodeDrawTooltip(), UI_TabNodeDrawTooltip(), UI_TodoNodeDrawTooltip(), and UI_Tooltip().
void UI_Tooltip | ( | uiNode_t * | node, | |
int | x, | |||
int | y | |||
) |
Wrapper for UI tooltips.
Definition at line 74 of file ui_tooltip.c.
References _, Com_sprintf(), uiKeyBinding_s::key, uiNode_s::key, key, Key_KeynumToString(), MAX_VAR, string, uiNode_s::tooltip, UI_DrawTooltip(), UI_GetReferenceString(), and va().
Referenced by UI_Draw(), and UI_StringNodeDrawTooltip().
Definition at line 35 of file ui_tooltip.c.
Referenced by UI_DrawTooltip().
const vec4_t tooltipColor = { 0.0f, 0.8f, 0.0f, 1.0f } [static] |
Definition at line 36 of file ui_tooltip.c.
Referenced by UI_DrawTooltip().