Skip to content

Commit

Permalink
Merge pull request ddnet#8719 from Jupeyy/pr_remove_player_options
Browse files Browse the repository at this point in the history
Remove "Player Options"
  • Loading branch information
heinrich5991 authored Aug 13, 2024
2 parents 21ed4cf + b998937 commit 5a28919
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/game/client/components/menus_ingame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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}};
Expand Down

0 comments on commit 5a28919

Please sign in to comment.