@@ -230,18 +230,16 @@ void CMenus::PopupConfirmDisconnectDummy()
230
230
231
231
void CMenus::RenderPlayers (CUIRect MainView)
232
232
{
233
- CUIRect Button, Button2, ButtonBar, Options , Player;
233
+ CUIRect Button, Button2, ButtonBar, PlayerList , Player;
234
234
MainView.Draw (ms_ColorTabbarActive, IGraphics::CORNER_B, 10 .0f );
235
235
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);
242
240
243
241
// headline
244
- Options .HSplitTop (34 .0f , &ButtonBar, &Options );
242
+ PlayerList .HSplitTop (34 .0f , &ButtonBar, &PlayerList );
245
243
ButtonBar.VSplitRight (231 .0f , &Player, &ButtonBar);
246
244
Ui ()->DoLabel (&Player, Localize (" Player" ), 24 .0f , TEXTALIGN_ML);
247
245
@@ -273,7 +271,7 @@ void CMenus::RenderPlayers(CUIRect MainView)
273
271
}
274
272
275
273
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 );
277
275
278
276
// options
279
277
static char s_aPlayerIds[MAX_CLIENTS][4 ] = {{0 }};
0 commit comments