diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp index 85ecf1891..0b751848a 100644 --- a/src/game/client/components/menus_ingame.cpp +++ b/src/game/client/components/menus_ingame.cpp @@ -230,18 +230,16 @@ void CMenus::PopupConfirmDisconnectDummy() void CMenus::RenderPlayers(CUIRect MainView) { - CUIRect Button, Button2, ButtonBar, Options, Player; + CUIRect Button, Button2, ButtonBar, PlayerList, Player; MainView.Draw(ms_ColorTabbarActive, IGraphics::CORNER_B, 10.0f); - // player options - MainView.Margin(10.0f, &Options); - Options.Draw(ColorRGBA(1.0f, 1.0f, 1.0f, 0.25f), IGraphics::CORNER_ALL, 10.0f); - Options.Margin(10.0f, &Options); - Options.HSplitTop(50.0f, &Button, &Options); - Ui()->DoLabel(&Button, Localize("Player options"), 34.0f, TEXTALIGN_ML); + // list background color + MainView.Margin(10.0f, &PlayerList); + PlayerList.Draw(ColorRGBA(1.0f, 1.0f, 1.0f, 0.25f), IGraphics::CORNER_ALL, 10.0f); + PlayerList.Margin(10.0f, &PlayerList); // headline - Options.HSplitTop(34.0f, &ButtonBar, &Options); + PlayerList.HSplitTop(34.0f, &ButtonBar, &PlayerList); ButtonBar.VSplitRight(231.0f, &Player, &ButtonBar); Ui()->DoLabel(&Player, Localize("Player"), 24.0f, TEXTALIGN_ML); @@ -273,7 +271,7 @@ void CMenus::RenderPlayers(CUIRect MainView) } static CListBox s_ListBox; - s_ListBox.DoStart(24.0f, TotalPlayers, 1, 3, -1, &Options); + s_ListBox.DoStart(24.0f, TotalPlayers, 1, 3, -1, &PlayerList); // options static char s_aPlayerIds[MAX_CLIENTS][4] = {{0}};