diff options
| author | oy <Tom_Adams@web.de> | 2011-04-04 20:37:12 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-04-04 20:37:12 +0200 |
| commit | 5c6e274a885d8df97e208071f8006d1005868e65 (patch) | |
| tree | 5521405ad43852b072d0dca6609b93ab6a130083 /src/game/client | |
| parent | 4ad6d2f01e5b972a969dced080976f2e8dfbd939 (diff) | |
| download | zcatch-5c6e274a885d8df97e208071f8006d1005868e65.tar.gz zcatch-5c6e274a885d8df97e208071f8006d1005868e65.zip | |
added more and resized flags by Crises and made them show up smaller and less of an eye-catcher. Closes #566
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/components/menus_browser.cpp | 6 | ||||
| -rw-r--r-- | src/game/client/components/menus_settings.cpp | 2 | ||||
| -rw-r--r-- | src/game/client/components/scoreboard.cpp | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index 6a17a286..344aa537 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -626,8 +626,8 @@ void CMenus::RenderServerbrowserServerDetail(CUIRect View) CUIRect Name, Clan, Score, Flag; ServerScoreBoard.HSplitTop(25.0f, &Name, &ServerScoreBoard); Name.VSplitLeft(30.0f, &Score, &Name); - Name.VSplitRight(23.0f*96.0f/64.0f, &Name, &Flag); - Flag.HMargin(1.0f, &Flag); + Name.VSplitRight(34.0f, &Name, &Flag); + Flag.HMargin(4.0f, &Flag); Name.HSplitTop(12.0f, &Name, &Clan); // score @@ -687,7 +687,7 @@ void CMenus::RenderServerbrowserServerDetail(CUIRect View) // flag Graphics()->TextureSet(m_pClient->m_pCountryFlags->Get(pSelectedServer->m_aClients[i].m_Country)->m_Texture); Graphics()->QuadsBegin(); - Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f); + Graphics()->SetColor(1.0f, 1.0f, 1.0f, 0.5f); IGraphics::CQuadItem QuadItem(Flag.x, Flag.y, Flag.w, Flag.h); Graphics()->QuadsDrawTL(&QuadItem, 1); Graphics()->QuadsEnd(); diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 8d03d2a9..a5ec18cc 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -219,7 +219,7 @@ void CMenus::RenderSettingsPlayer(CUIRect MainView) { Item.m_Rect.Margin(10.0f, &Item.m_Rect); float OldWidth = Item.m_Rect.w; - Item.m_Rect.w = 96.0f*Item.m_Rect.h/64.0f; + Item.m_Rect.w = Item.m_Rect.h*2; Item.m_Rect.x += (OldWidth-Item.m_Rect.w)/ 2.0f; Graphics()->TextureSet(pEntry->m_Texture); Graphics()->QuadsBegin(); diff --git a/src/game/client/components/scoreboard.cpp b/src/game/client/components/scoreboard.cpp index a8c9d93b..07e076db 100644 --- a/src/game/client/components/scoreboard.cpp +++ b/src/game/client/components/scoreboard.cpp @@ -169,7 +169,7 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch x += 10.0f; float LineHeight = 60.0f; float TeeSizeMod = 1.0f; - float Spacing = 10.0f; + float Spacing = 16.0f; if(m_pClient->m_Snap.m_aTeamSize[Team] > 12) { LineHeight = 40.0f; @@ -180,14 +180,14 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch { LineHeight = 50.0f; TeeSizeMod = 0.9f; - Spacing = 5.0f; + Spacing = 8.0f; } float ScoreOffset = x+10.0f, ScoreLength = 60.0f; float TeeOffset = ScoreOffset+ScoreLength, TeeLength = 60*TeeSizeMod; float NameOffset = TeeOffset+TeeLength, NameLength = 300.0f-TeeLength; float PingOffset = x+610.0f, PingLength = 65.0f; - float CountryOffset = PingOffset-(LineHeight-Spacing-TeeSizeMod*5.0f)*96.0f/64.0f, CountryLength = (LineHeight-Spacing-TeeSizeMod*5.0f)*96.0f/64.0f; + float CountryOffset = PingOffset-(LineHeight-Spacing-TeeSizeMod*5.0f)*2.0f, CountryLength = (LineHeight-Spacing-TeeSizeMod*5.0f)*2.0f; float ClanOffset = x+370.0f, ClanLength = 230.0f-CountryLength; // render headlines @@ -269,7 +269,7 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch // country flag Graphics()->TextureSet(m_pClient->m_pCountryFlags->Get(m_pClient->m_aClients[pInfo->m_ClientID].m_Country)->m_Texture); Graphics()->QuadsBegin(); - Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f); + Graphics()->SetColor(1.0f, 1.0f, 1.0f, 0.5f); IGraphics::CQuadItem QuadItem(CountryOffset, y+(Spacing+TeeSizeMod*5.0f)/2.0f, CountryLength, LineHeight-Spacing-TeeSizeMod*5.0f); Graphics()->QuadsDrawTL(&QuadItem, 1); Graphics()->QuadsEnd(); |