Skip to content

Commit b998937

Browse files
committed
Remove "Player Options"
See screenshots
1 parent 4cbdf20 commit b998937

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/game/client/components/menus_ingame.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,18 +230,16 @@ void CMenus::PopupConfirmDisconnectDummy()
230230

231231
void CMenus::RenderPlayers(CUIRect MainView)
232232
{
233-
CUIRect Button, Button2, ButtonBar, Options, Player;
233+
CUIRect Button, Button2, ButtonBar, PlayerList, Player;
234234
MainView.Draw(ms_ColorTabbarActive, IGraphics::CORNER_B, 10.0f);
235235

236-
// player options
237-
MainView.Margin(10.0f, &Options);
238-
Options.Draw(ColorRGBA(1.0f, 1.0f, 1.0f, 0.25f), IGraphics::CORNER_ALL, 10.0f);
239-
Options.Margin(10.0f, &Options);
240-
Options.HSplitTop(50.0f, &Button, &Options);
241-
Ui()->DoLabel(&Button, Localize("Player options"), 34.0f, TEXTALIGN_ML);
236+
// list background color
237+
MainView.Margin(10.0f, &PlayerList);
238+
PlayerList.Draw(ColorRGBA(1.0f, 1.0f, 1.0f, 0.25f), IGraphics::CORNER_ALL, 10.0f);
239+
PlayerList.Margin(10.0f, &PlayerList);
242240

243241
// headline
244-
Options.HSplitTop(34.0f, &ButtonBar, &Options);
242+
PlayerList.HSplitTop(34.0f, &ButtonBar, &PlayerList);
245243
ButtonBar.VSplitRight(231.0f, &Player, &ButtonBar);
246244
Ui()->DoLabel(&Player, Localize("Player"), 24.0f, TEXTALIGN_ML);
247245

@@ -273,7 +271,7 @@ void CMenus::RenderPlayers(CUIRect MainView)
273271
}
274272

275273
static CListBox s_ListBox;
276-
s_ListBox.DoStart(24.0f, TotalPlayers, 1, 3, -1, &Options);
274+
s_ListBox.DoStart(24.0f, TotalPlayers, 1, 3, -1, &PlayerList);
277275

278276
// options
279277
static char s_aPlayerIds[MAX_CLIENTS][4] = {{0}};

0 commit comments

Comments
 (0)