Merge pull request #8719 from Jupeyy/pr_remove_player_options

Remove "Player Options"
This commit is contained in:
heinrich5991 2024-08-13 11:20:09 +00:00 committed by GitHub
commit 5a2891933c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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