コード例 #1
0
        public override void OnResize(int width, int height)
        {
            announcement.OnResize(width, height);
            announcement.YOffset = -height / 4;
            announcement.MoveTo(announcement.X, announcement.YOffset - announcement.Height / 2);
            blockSize           = (int)(23 * 2 * game.GuiHotbarScale);
            textInput.YOffset   = 5;
            bottomRight.YOffset = blockSize * 3 / 2;

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

            textInput.MoveTo(textInput.X, inputY);
            status.OnResize(width, height);
            bottomRight.OnResize(width, height);
            UpdateChatYOffset(true);
        }
コード例 #2
0
 public override void OnResize(int width, int height)
 {
     messageWidget.OnResize(width, height);
     titleWidget.OnResize(width, height);
 }