diff options
| author | oy <Tom_Adams@web.de> | 2011-07-31 02:04:46 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-07-31 02:04:46 +0200 |
| commit | 10c3e844d77996f6a383791edc673bd7855dd321 (patch) | |
| tree | e4fc0f1bcfd7460485e8fc92fed3788a6e9da1a1 /src/game/client/components/menus_settings.cpp | |
| parent | 8d0cc2a825b39b58d9a9dc3d884159fb9255fea2 (diff) | |
| download | zcatch-10c3e844d77996f6a383791edc673bd7855dd321.tar.gz zcatch-10c3e844d77996f6a383791edc673bd7855dd321.zip | |
show alpha2 country code strings next to the flag in the country code selectors. Closes #805
Diffstat (limited to 'src/game/client/components/menus_settings.cpp')
| -rw-r--r-- | src/game/client/components/menus_settings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index c2fab00f..51fdbd29 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -215,7 +215,9 @@ void CMenus::RenderSettingsPlayer(CUIRect MainView) CListboxItem Item = UiDoListboxNextItem(&pEntry->m_CountryCode, OldSelected == i); if(Item.m_Visible) { - Item.m_Rect.Margin(10.0f, &Item.m_Rect); + CUIRect Label; + Item.m_Rect.Margin(5.0f, &Item.m_Rect); + Item.m_Rect.HSplitBottom(10.0f, &Item.m_Rect, &Label); float OldWidth = Item.m_Rect.w; Item.m_Rect.w = Item.m_Rect.h*2; Item.m_Rect.x += (OldWidth-Item.m_Rect.w)/ 2.0f; @@ -225,6 +227,7 @@ void CMenus::RenderSettingsPlayer(CUIRect MainView) IGraphics::CQuadItem QuadItem(Item.m_Rect.x, Item.m_Rect.y, Item.m_Rect.w, Item.m_Rect.h); Graphics()->QuadsDrawTL(&QuadItem, 1); Graphics()->QuadsEnd(); + UI()->DoLabel(&Label, pEntry->m_aCountryCodeString, 10.0f, 0); } } |