Пример #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);
        }
Пример #2
0
 void ColourCodesChanged(object sender, EventArgs e)
 {
     textInput.altText.UpdateColours();
     UpdateChatYOffset(true);
     textInput.MoveTo(textInput.X, textInput.Y);
 }