protected override void ContextRecreated() { hotbar.Dispose(); hotbar.Init(); if (!hadPlayerList) { return; } if (game.UseClassicTabList) { playerList = new ClassicPlayerListWidget(game, playerFont); } else if (game.Server.UsingExtPlayerList) { playerList = new ExtPlayerListWidget(game, playerFont); } else { playerList = new NormalPlayerListWidget(game, playerFont); } playerList.Init(); playerList.RecalcYOffset(); playerList.CalculatePosition(); }
protected override void ContextRecreated() { hotbar.Dispose(); hotbar.Init(); if (!hadPlayerList) { return; } bool extended = game.Server.UsingExtPlayerList && !game.UseClassicTabList; playerList = new PlayerListWidget(game, playerFont, !extended); playerList.Init(); playerList.Reposition(); }
void CreatePlayerListWidget() { if (game.UseClassicTabList) { playerList = new ClassicPlayerListWidget(game, playerFont); } else if (game.Server.UsingExtPlayerList) { playerList = new ExtPlayerListWidget(game, playerFont); } else { playerList = new NormalPlayerListWidget(game, playerFont); } playerList.Init(); playerList.MoveTo(playerList.X, game.Height / 4); }