From 5bcfcaf3cb583abb340c1b15aa4018fcbefb6662 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 30 Sep 2020 22:49:09 +0200 Subject: [PATCH] fixed Paragraph autoAdjustWidth parameter name --- MLEM.Ui/Elements/Paragraph.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MLEM.Ui/Elements/Paragraph.cs b/MLEM.Ui/Elements/Paragraph.cs index c4037a9..339dc62 100644 --- a/MLEM.Ui/Elements/Paragraph.cs +++ b/MLEM.Ui/Elements/Paragraph.cs @@ -69,9 +69,9 @@ namespace MLEM.Ui.Elements { /// The paragraph's anchor /// The paragraph's width. Note that its height is automatically calculated. /// The paragraph's text - /// Whether the paragraph's width should automatically be calculated based on the text within it. - public Paragraph(Anchor anchor, float width, TextCallback textCallback, bool centerText = false) - : this(anchor, width, "", centerText) { + /// Whether the paragraph's width should automatically be calculated based on the text within it. + public Paragraph(Anchor anchor, float width, TextCallback textCallback, bool autoAdjustWidth = false) + : this(anchor, width, "", autoAdjustWidth) { this.GetTextCallback = textCallback; this.Text = textCallback(this); if (this.Text == null) @@ -79,11 +79,11 @@ namespace MLEM.Ui.Elements { } /// - public Paragraph(Anchor anchor, float width, string text, bool centerText = false) : base(anchor, new Vector2(width, 0)) { + public Paragraph(Anchor anchor, float width, string text, bool autoAdjustWidth = false) : base(anchor, new Vector2(width, 0)) { this.Text = text; if (this.Text == null) this.IsHidden = true; - this.AutoAdjustWidth = centerText; + this.AutoAdjustWidth = autoAdjustWidth; this.CanBeSelected = false; this.CanBeMoused = false; }