Expose dialog body text getter

This commit is contained in:
smoogipoo 2020-07-06 22:01:45 +09:00
parent 09d45ea47a
commit dbbee481f6

View File

@ -42,25 +42,34 @@ namespace osu.Game.Overlays.Dialog
set => icon.Icon = value; set => icon.Icon = value;
} }
private string text; private string headerText;
public string HeaderText public string HeaderText
{ {
get => text; get => headerText;
set set
{ {
if (text == value) if (headerText == value)
return; return;
text = value; headerText = value;
header.Text = value; header.Text = value;
} }
} }
private string bodyText;
public string BodyText public string BodyText
{ {
set => body.Text = value; get => bodyText;
set
{
if (bodyText == value)
return;
bodyText = value;
body.Text = value;
}
} }
public IEnumerable<PopupDialogButton> Buttons public IEnumerable<PopupDialogButton> Buttons