From: terencehill Date: Sun, 6 Nov 2011 19:09:32 +0000 (+0100) Subject: Center vertically all the commands X-Git-Tag: xonotic-v0.8.2~1987^2~55^2~36 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8a20f153079dd28fa3b10d5c8222b1a4f667ae9e;p=xonotic%2Fxonotic-data.pk3dir.git Center vertically all the commands --- 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;