From: z411 Date: Fri, 18 Mar 2022 20:47:18 +0000 (-0300) Subject: Fixed centerprint title size X-Git-Tag: xonotic-v0.8.5~128^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0e5b409992f615de14932cb0c436fcc9ceb9cacb;p=xonotic%2Fxonotic-data.pk3dir.git Fixed centerprint title size --- diff --git a/hud_luma.cfg b/hud_luma.cfg index 68cc7625a..34aa9f756 100644 --- a/hud_luma.cfg +++ b/hud_luma.cfg @@ -275,7 +275,7 @@ seta hud_panel_centerprint_align "0.5" seta hud_panel_centerprint_flip "0" seta hud_panel_centerprint_fontscale "1" seta hud_panel_centerprint_fontscale_bold "1.4" -seta hud_panel_centerprint_fontscale_title "1.8" +seta hud_panel_centerprint_fontscale_title "1.6" seta hud_panel_minigameboard_pos "0.22 0.15" seta hud_panel_minigameboard_size "0.50 0.60" diff --git a/hud_luminos.cfg b/hud_luminos.cfg index b0e0e409c..a89233680 100644 --- a/hud_luminos.cfg +++ b/hud_luminos.cfg @@ -275,7 +275,7 @@ seta hud_panel_centerprint_align "0.5" seta hud_panel_centerprint_flip "0" seta hud_panel_centerprint_fontscale "1" seta hud_panel_centerprint_fontscale_bold "1.4" -seta hud_panel_centerprint_fontscale_title "1.8" +seta hud_panel_centerprint_fontscale_title "1.6" seta hud_panel_minigameboard_pos "0.22 0.15" seta hud_panel_minigameboard_size "0.50 0.60" diff --git a/hud_luminos_minimal.cfg b/hud_luminos_minimal.cfg index 1f2280bc8..23319fe25 100644 --- a/hud_luminos_minimal.cfg +++ b/hud_luminos_minimal.cfg @@ -275,7 +275,7 @@ seta hud_panel_centerprint_align "0.5" seta hud_panel_centerprint_flip "0" seta hud_panel_centerprint_fontscale "1" seta hud_panel_centerprint_fontscale_bold "1.4" -seta hud_panel_centerprint_fontscale_title "1.8" +seta hud_panel_centerprint_fontscale_title "1.6" seta hud_panel_minigameboard_pos "0.22 0.15" seta hud_panel_minigameboard_size "0.50 0.60" diff --git a/hud_luminos_minimal_xhair.cfg b/hud_luminos_minimal_xhair.cfg index 76377a22d..05faec673 100644 --- a/hud_luminos_minimal_xhair.cfg +++ b/hud_luminos_minimal_xhair.cfg @@ -275,7 +275,7 @@ seta hud_panel_centerprint_align "0.5" seta hud_panel_centerprint_flip "0" seta hud_panel_centerprint_fontscale "1" seta hud_panel_centerprint_fontscale_bold "1.4" -seta hud_panel_centerprint_fontscale_title "1.8" +seta hud_panel_centerprint_fontscale_title "1.6" seta hud_panel_minigameboard_pos "0.22 0.15" seta hud_panel_minigameboard_size "0.50 0.60" diff --git a/hud_luminos_old.cfg b/hud_luminos_old.cfg index 121f196dd..633c87b88 100644 --- a/hud_luminos_old.cfg +++ b/hud_luminos_old.cfg @@ -275,7 +275,7 @@ seta hud_panel_centerprint_align "0.5" seta hud_panel_centerprint_flip "0" seta hud_panel_centerprint_fontscale "1" seta hud_panel_centerprint_fontscale_bold "1.4" -seta hud_panel_centerprint_fontscale_title "1.8" +seta hud_panel_centerprint_fontscale_title "1.6" seta hud_panel_minigameboard_pos "0.22 0.15" seta hud_panel_minigameboard_size "0.50 0.60" diff --git a/hud_nexuiz.cfg b/hud_nexuiz.cfg index 919ba39a2..733ff2d80 100644 --- a/hud_nexuiz.cfg +++ b/hud_nexuiz.cfg @@ -275,7 +275,7 @@ seta hud_panel_centerprint_align "0.5" seta hud_panel_centerprint_flip "0" seta hud_panel_centerprint_fontscale "1" seta hud_panel_centerprint_fontscale_bold "1.4" -seta hud_panel_centerprint_fontscale_title "1.8" +seta hud_panel_centerprint_fontscale_title "1.6" seta hud_panel_minigameboard_pos "0.22 0.15" seta hud_panel_minigameboard_size "0.50 0.60" diff --git a/qcsrc/client/hud/panel/centerprint.qc b/qcsrc/client/hud/panel/centerprint.qc index a18d29226..778892b91 100644 --- a/qcsrc/client/hud/panel/centerprint.qc +++ b/qcsrc/client/hud/panel/centerprint.qc @@ -269,7 +269,7 @@ void HUD_CenterPrint() drawcolorcodedstring(pos, centerprint_title, fontsize, 1, DRAWFLAG_NORMAL); if (autocvar_hud_panel_centerprint_flip) - pos.y -= cp_fontsize.y * CENTERPRINT_TITLE_SPACING / 2; + pos.y -= cp_fontsize.y * (CENTERPRINT_TITLE_SPACING / 2); else pos.y += fontsize.y + (cp_fontsize.y * (CENTERPRINT_TITLE_SPACING / 2)); diff --git a/qcsrc/client/hud/panel/centerprint.qh b/qcsrc/client/hud/panel/centerprint.qh index ae0819d02..5bc51882f 100644 --- a/qcsrc/client/hud/panel/centerprint.qh +++ b/qcsrc/client/hud/panel/centerprint.qh @@ -15,7 +15,7 @@ float autocvar_hud_panel_centerprint_fade_minfontsize = 1; bool autocvar_hud_panel_centerprint_flip; float autocvar_hud_panel_centerprint_fontscale = 1; float autocvar_hud_panel_centerprint_fontscale_bold = 1.4; -float autocvar_hud_panel_centerprint_fontscale_title = 1.8; +float autocvar_hud_panel_centerprint_fontscale_title = 1.6; bool autocvar_hud_panel_centerprint_dynamichud = true; float autocvar_hud_panel_centerprint_time;