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;
}
private string text;
private string headerText;
public string HeaderText
{
get => text;
get => headerText;
set
{
if (text == value)
if (headerText == value)
return;
text = value;
headerText = value;
header.Text = value;
}
}
private 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