mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Changed existing implementations to have a custom CompletionText
This commit is contained in:
@ -156,7 +156,11 @@ namespace osu.Desktop.Overlays
|
|||||||
|
|
||||||
if (notification == null)
|
if (notification == null)
|
||||||
{
|
{
|
||||||
notification = new UpdateProgressNotification { State = ProgressNotificationState.Active };
|
notification = new UpdateProgressNotification
|
||||||
|
{
|
||||||
|
CompletionText = "Successfully updated the game!",
|
||||||
|
State = ProgressNotificationState.Active
|
||||||
|
};
|
||||||
Schedule(() => notificationOverlay.Post(notification));
|
Schedule(() => notificationOverlay.Post(notification));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,11 @@ namespace osu.Game.Tests.Visual
|
|||||||
|
|
||||||
private void sendProgress2()
|
private void sendProgress2()
|
||||||
{
|
{
|
||||||
var n = new ProgressNotification { Text = @"Downloading Haitai..." };
|
var n = new ProgressNotification
|
||||||
|
{
|
||||||
|
Text = @"Downloading Haitai...",
|
||||||
|
CompletionText = "Downloaded Haitai!",
|
||||||
|
};
|
||||||
manager.Post(n);
|
manager.Post(n);
|
||||||
progressingNotifications.Add(n);
|
progressingNotifications.Add(n);
|
||||||
}
|
}
|
||||||
@ -91,7 +95,11 @@ namespace osu.Game.Tests.Visual
|
|||||||
|
|
||||||
private void sendProgress1()
|
private void sendProgress1()
|
||||||
{
|
{
|
||||||
var n = new ProgressNotification { Text = @"Uploading to BSS..." };
|
var n = new ProgressNotification
|
||||||
|
{
|
||||||
|
Text = @"Uploading to BSS...",
|
||||||
|
CompletionText = "Uploaded to BSS!",
|
||||||
|
};
|
||||||
manager.Post(n);
|
manager.Post(n);
|
||||||
progressingNotifications.Add(n);
|
progressingNotifications.Add(n);
|
||||||
}
|
}
|
||||||
|
@ -134,6 +134,7 @@ namespace osu.Game.Beatmaps
|
|||||||
var notification = new ProgressNotification
|
var notification = new ProgressNotification
|
||||||
{
|
{
|
||||||
Text = "Beatmap import is initialising...",
|
Text = "Beatmap import is initialising...",
|
||||||
|
CompletionText = "Import successful!",
|
||||||
Progress = 0,
|
Progress = 0,
|
||||||
State = ProgressNotificationState.Active,
|
State = ProgressNotificationState.Active,
|
||||||
};
|
};
|
||||||
@ -245,8 +246,9 @@ namespace osu.Game.Beatmaps
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ProgressNotification downloadNotification = new ProgressNotification
|
var downloadNotification = new ProgressNotification
|
||||||
{
|
{
|
||||||
|
CompletionText = $"Installed {beatmapSetInfo.Metadata.Artist} - {beatmapSetInfo.Metadata.Title}!",
|
||||||
Text = $"Downloading {beatmapSetInfo.Metadata.Artist} - {beatmapSetInfo.Metadata.Title}",
|
Text = $"Downloading {beatmapSetInfo.Metadata.Artist} - {beatmapSetInfo.Metadata.Title}",
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -665,6 +667,7 @@ namespace osu.Game.Beatmaps
|
|||||||
var notification = new ProgressNotification
|
var notification = new ProgressNotification
|
||||||
{
|
{
|
||||||
Progress = 0,
|
Progress = 0,
|
||||||
|
CompletionText = "Deleted all beatmaps!",
|
||||||
State = ProgressNotificationState.Active,
|
State = ProgressNotificationState.Active,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user