public override void OnResize(int oldWidth, int oldHeight, int width, int height) { int dx = (width - oldWidth) / 2; messageWidget.OnResize(oldWidth, oldHeight, width, height); titleWidget.OnResize(oldWidth, oldHeight, width, height); }
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 = 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); }