MCPcopy Create free account
hub / github.com/JACoders/OpenJK / UI_DrawKeyBindStatus

Function UI_DrawKeyBindStatus

code/ui/ui_main.cpp:3709–3723  ·  view source on GitHub ↗

================= UI_DrawKeyBindStatus ================= */

Source from the content-addressed store, hash-verified

3707=================
3708*/
3709static void UI_DrawKeyBindStatus(rectDef_t *rect, float scale, vec4_t color, int textStyle, int iFontIndex)
3710{
3711 if (Display_KeyBindPending())
3712 {
3713#ifdef JK2_MODE
3714 Text_Paint(rect->x, rect->y, scale, color, ui.SP_GetStringTextString("MENUS_WAITINGFORKEY"), 0, textStyle, iFontIndex);
3715#else
3716 Text_Paint(rect->x, rect->y, scale, color, SE_GetString("MENUS_WAITINGFORKEY"), 0, textStyle, iFontIndex);
3717#endif
3718 }
3719 else
3720 {
3721// Text_Paint(rect->x, rect->y, scale, color, ui.SP_GetStringTextString("MENUS_ENTERTOCHANGE"), 0, textStyle, iFontIndex);
3722 }
3723}
3724
3725/*
3726=================

Callers 1

UI_OwnerDrawFunction · 0.70

Calls 3

Display_KeyBindPendingFunction · 0.70
Text_PaintFunction · 0.70
SE_GetStringFunction · 0.50

Tested by

no test coverage detected