private void Resize() { _border.Width = Width; _border.Height = Height; _button.X = Width - _button.Width / 2; _button.Y = Height - _button.Height / 2; _viewport.Width = _worldWidth; _viewport.Height = _worldHeight; _systemChatControl.Width = _worldWidth; _systemChatControl.Height = _worldHeight; _systemChatControl.Resize(); WantUpdateSize = true; }
private void Resize() { _borderControl.Width = Width; _borderControl.Height = Height; _button.X = Width - (_button.Width >> 1); _button.Y = Height - (_button.Height >> 1); _worldWidth = Width - BORDER_WIDTH * 2; _worldHeight = Height - BORDER_WIDTH * 2; _systemChatControl.Width = _worldWidth; _systemChatControl.Height = _worldHeight; _systemChatControl.Resize(); WantUpdateSize = true; UpdateGameWindowPos(); }