mirror of
https://github.com/ppy/osu
synced 2025-01-03 12:52:10 +00:00
Add the ability to change what text is displayed when a ProgressNotification finishes its task.
This commit is contained in:
parent
dd5e082105
commit
7c9d11756e
@ -22,6 +22,8 @@ namespace osu.Game.Overlays.Notifications
|
||||
}
|
||||
}
|
||||
|
||||
public string CompletionText { get; set; } = "Task has completed!";
|
||||
|
||||
public float Progress
|
||||
{
|
||||
get { return progressBar.Progress; }
|
||||
@ -87,7 +89,7 @@ namespace osu.Game.Overlays.Notifications
|
||||
protected virtual Notification CreateCompletionNotification() => new ProgressCompletionNotification
|
||||
{
|
||||
Activated = CompletionClickAction,
|
||||
Text = "Task has completed!"
|
||||
Text = CompletionText
|
||||
};
|
||||
|
||||
protected virtual void Completed()
|
||||
|
Loading…
Reference in New Issue
Block a user