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.Reposition(); }
public override void OnResize() { chat.OnResize(); hotbar.Reposition(); if (playerList != null) { playerList.Reposition(); } }
public override void OnResize(int width, int height) { chat.OnResize(width, height); hotbar.Reposition(); if (playerList != null) { playerList.Reposition(); } }
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(); }