Ejemplo n.º 1
0
        public override void OnResize(int oldWidth, int oldHeight, int width, int height)
        {
            announcementTex.X1 += (width - oldWidth) / 2;
            announcementTex.Y1 += (height - oldHeight) / 2;
            blockSize           = (int)(23 * 2 * game.GuiScale);
            textInput.YOffset   = blockSize + 5;
            bottomRight.YOffset = blockSize * 3 / 2;

            int inputY = game.Height - textInput.Height - textInput.YOffset;

            textInput.MoveTo(textInput.X, inputY);
            status.OnResize(oldWidth, oldHeight, width, height);
            bottomRight.OnResize(oldWidth, oldHeight, width, height);
            UpdateChatYOffset(true);
        }
Ejemplo n.º 2
0
        public override void OnResize(int oldWidth, int oldHeight, int width, int height)
        {
            announcement.OnResize(oldWidth, oldHeight, width, height);
            announcement.YOffset = -height / 4;
            announcement.MoveTo(announcement.X, announcement.YOffset - announcement.Height / 2);
            blockSize           = (int)(23 * 2 * game.GuiHotbarScale);
            textInput.YOffset   = blockSize + 5;
            bottomRight.YOffset = blockSize * 3 / 2;

            int inputY = game.Height - textInput.Height - textInput.YOffset;

            textInput.MoveTo(textInput.X, inputY);
            status.OnResize(oldWidth, oldHeight, width, height);
            bottomRight.OnResize(oldWidth, oldHeight, width, height);
            UpdateChatYOffset(true);
        }