Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
 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);
 }