Improve flavor UI (#19600)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Morb
2023-08-28 13:01:45 +03:00
committed by GitHub
parent b88c2cbb49
commit 627a282e1a
4 changed files with 9 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ namespace Content.Client.Preferences.UI
private LineEdit _ageEdit => CAgeEdit;
private LineEdit _nameEdit => CNameEdit;
private LineEdit _flavorTextEdit = null!;
private TextEdit _flavorTextEdit = null!;
private Button _nameRandomButton => CNameRandomize;
private Button _randomizeEverythingButton => CRandomizeEverything;
private RichTextLabel _warningLabel => CWarningLabel;
@@ -858,7 +858,7 @@ namespace Content.Client.Preferences.UI
{
if(_flavorTextEdit != null)
{
_flavorTextEdit.Text = Profile?.FlavorText ?? "";
_flavorTextEdit.TextRope = new Rope.Leaf(Profile?.FlavorText ?? "");
}
}