Remove "Player Options"

See screenshots
This commit is contained in:
Jupeyy 2024-08-13 12:42:54 +02:00
parent 4cbdf2069c
commit b998937e91
No known key found for this signature in database

View file

@ -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}};