From 8a20f153079dd28fa3b10d5c8222b1a4f667ae9e Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 6 Nov 2011 20:09:32 +0100 Subject: [PATCH] Center vertically all the commands --- qcsrc/client/hud.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index b35bbecac..931f586d9 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -5082,12 +5082,16 @@ void HUD_QuickMenu(void) vector fontsize; string entry, color; fontsize = '1 1 0' * (panel_size_y / QUICKMENU_MAXLINES); + if (!QuickMenu_IsLastPage) { color = "^5"; entry = textShortenToWidth(sprintf("%d: %s%s", 0, color, _("Continue...")), panel_size_x, fontsize, stringwidth_colors); drawcolorcodedstring(panel_pos + eY * (panel_size_y - fontsize_y), entry, fontsize, 1, DRAWFLAG_ADDITIVE); } + else + panel_pos_y += ((QUICKMENU_MAXLINES - QuickMenu_Entries) * fontsize_y) / 2; + for (i = 1; i <= QuickMenu_Entries; ++i) { if (QuickMenu_Description[i] == "") break; -- 2.39.2