From 23c9682e2c964c6cb86710fe03c8b67f65b3fa08 Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 1 Dec 2018 14:31:47 +0100 Subject: [PATCH] increased the flags in the scoreboard --- src/game/client/components/scoreboard.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/game/client/components/scoreboard.cpp b/src/game/client/components/scoreboard.cpp index d9a661ccc..0b1225c49 100644 --- a/src/game/client/components/scoreboard.cpp +++ b/src/game/client/components/scoreboard.cpp @@ -173,7 +173,7 @@ float CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const c float Spacing = 2.0f; float CountryFlagOffset = x+2.0f, CountryFlagLength = 20.f; float NameOffset = CountryFlagOffset+CountryFlagLength, NameLength = 128.0f; - float TeeOffset = CountryFlagOffset+CountryFlagLength, TeeLength = 25*TeeSizeMod; + float TeeOffset = CountryFlagOffset+CountryFlagLength+4.0f, TeeLength = 25*TeeSizeMod; float ClanOffset = NameOffset+NameLength, ClanLength = 88.0f; float KillOffset = ClanOffset+ClanLength, KillLength = 24.0f; float DeathOffset = KillOffset+KillLength, DeathLength = 24.0f; @@ -300,7 +300,7 @@ float CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const c } TextRender()->TextColor(1.0f, 1.0f, 1.0f, 1.0f); - TextRender()->Text(0, NameOffset, y+Spacing, HeadlineFontsize, Localize("Name"), -1); + TextRender()->Text(0, NameOffset+ TeeLength, y+Spacing, HeadlineFontsize, Localize("Name"), -1); tw = TextRender()->TextWidth(0, HeadlineFontsize, Localize("Clan"), -1); TextRender()->Text(0, ClanOffset+ClanLength/2-tw/2, y+Spacing, HeadlineFontsize, Localize("Clan"), -1); @@ -457,8 +457,7 @@ float CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const c // country flag const vec4 CFColor(1, 1, 1, 0.75f * ColorAlpha); m_pClient->m_pCountryFlags->Render(m_pClient->m_aClients[pInfo->m_ClientID].m_Country, &CFColor, - CountryFlagOffset, y + (LineHeight-CountryFlagLength*0.5f) * 0.5f, - CountryFlagLength, CountryFlagLength*0.5f); + CountryFlagOffset, y + 3.0f, 30.0f, LineHeight-5.0f); // set text color TextRender()->TextColor(TextColor.r, TextColor.g, TextColor.b, ColorAlpha);