Exemplo n.º 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.Reposition();
        }
Exemplo n.º 2
0
        public override void OnResize()
        {
            chat.OnResize();
            hotbar.Reposition();

            if (playerList != null)
            {
                playerList.Reposition();
            }
        }
Exemplo n.º 3
0
        public override void OnResize(int width, int height)
        {
            chat.OnResize(width, height);
            hotbar.Reposition();

            if (playerList != null)
            {
                playerList.Reposition();
            }
        }
Exemplo n.º 4
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();
        }