mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Merge pull request #8719 from Jupeyy/pr_remove_player_options
Remove "Player Options"
This commit is contained in:
commit
5a2891933c
|
@ -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}};
|
||||
|
|
Loading…
Reference in a new issue