Skip to content

Commit

Permalink
Fix wrapping of EOMessageBox message label
Browse files Browse the repository at this point in the history
  • Loading branch information
miou-gh committed Sep 25, 2022
1 parent ac06227 commit dea5baa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions EndlessClient/Dialogs/EOMessageBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ public EOMessageBox(INativeGraphicsManager graphicsManager,
AutoSize = true,
ForeColor = ColorConstants.LightYellowText,
Text = message,
TextWidth = 254,
DrawPosition = new Vector2(18, useSmallHeader ? 40 : 57)
TextWidth = 240,
DrawPosition = new Vector2(21, useSmallHeader ? 40 : 62),
WrapBehavior = WrapBehavior.WrapToNewLine,
};

_messageLabel.SetParentControl(this);

_captionLabel = new XNALabel(Constants.FontSize10)
Expand All @@ -59,7 +61,7 @@ public EOMessageBox(INativeGraphicsManager graphicsManager,
ForeColor = ColorConstants.LightYellowText,
Text = caption,
TextWidth = 254,
DrawPosition = useSmallHeader ? new Vector2(18, 12) : new Vector2(60, 26)
DrawPosition = useSmallHeader ? new Vector2(18, 12) : new Vector2(60, 27)
};
_captionLabel.SetParentControl(this);

Expand Down

0 comments on commit dea5baa

Please sign in to comment.