mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
increased the flags in the scoreboard
This commit is contained in:
parent
6c3e2713de
commit
23c9682e2c
|
@ -173,7 +173,7 @@ float CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const c
|
||||||
float Spacing = 2.0f;
|
float Spacing = 2.0f;
|
||||||
float CountryFlagOffset = x+2.0f, CountryFlagLength = 20.f;
|
float CountryFlagOffset = x+2.0f, CountryFlagLength = 20.f;
|
||||||
float NameOffset = CountryFlagOffset+CountryFlagLength, NameLength = 128.0f;
|
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 ClanOffset = NameOffset+NameLength, ClanLength = 88.0f;
|
||||||
float KillOffset = ClanOffset+ClanLength, KillLength = 24.0f;
|
float KillOffset = ClanOffset+ClanLength, KillLength = 24.0f;
|
||||||
float DeathOffset = KillOffset+KillLength, DeathLength = 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()->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);
|
tw = TextRender()->TextWidth(0, HeadlineFontsize, Localize("Clan"), -1);
|
||||||
TextRender()->Text(0, ClanOffset+ClanLength/2-tw/2, y+Spacing, 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
|
// country flag
|
||||||
const vec4 CFColor(1, 1, 1, 0.75f * ColorAlpha);
|
const vec4 CFColor(1, 1, 1, 0.75f * ColorAlpha);
|
||||||
m_pClient->m_pCountryFlags->Render(m_pClient->m_aClients[pInfo->m_ClientID].m_Country, &CFColor,
|
m_pClient->m_pCountryFlags->Render(m_pClient->m_aClients[pInfo->m_ClientID].m_Country, &CFColor,
|
||||||
CountryFlagOffset, y + (LineHeight-CountryFlagLength*0.5f) * 0.5f,
|
CountryFlagOffset, y + 3.0f, 30.0f, LineHeight-5.0f);
|
||||||
CountryFlagLength, CountryFlagLength*0.5f);
|
|
||||||
|
|
||||||
// set text color
|
// set text color
|
||||||
TextRender()->TextColor(TextColor.r, TextColor.g, TextColor.b, ColorAlpha);
|
TextRender()->TextColor(TextColor.r, TextColor.g, TextColor.b, ColorAlpha);
|
||||||
|
|
Loading…
Reference in a new issue