mirror of
https://github.com/ppy/osu
synced 2024-12-29 02:12:43 +00:00
Expose dialog body text getter
This commit is contained in:
parent
09d45ea47a
commit
dbbee481f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user