1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 12:42:54 +08:00

Rename NotificationContent to MainContent

This commit is contained in:
Dean Herbert 2022-08-30 17:49:29 +09:00
parent 09aa3e065d
commit bea12ab3c2
2 changed files with 7 additions and 7 deletions

View File

@ -52,7 +52,7 @@ namespace osu.Game.Overlays.Notifications
protected override Container<Drawable> Content => content; protected override Container<Drawable> Content => content;
protected Container NotificationContent; protected Container MainContent;
public virtual bool Read { get; set; } public virtual bool Read { get; set; }
@ -71,7 +71,7 @@ namespace osu.Game.Overlays.Notifications
Anchor = Anchor.CentreLeft, Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreRight, Origin = Anchor.CentreRight,
}, },
NotificationContent = new Container MainContent = new Container
{ {
CornerRadius = 8, CornerRadius = 8,
Masking = true, Masking = true,
@ -135,7 +135,7 @@ namespace osu.Game.Overlays.Notifications
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider) private void load(OverlayColourProvider colourProvider)
{ {
NotificationContent.Add(new Box MainContent.Add(new Box
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Colour = colourProvider.Background3, Colour = colourProvider.Background3,
@ -157,8 +157,8 @@ namespace osu.Game.Overlays.Notifications
this.FadeInFromZero(200); this.FadeInFromZero(200);
NotificationContent.MoveToX(DrawSize.X); MainContent.MoveToX(DrawSize.X);
NotificationContent.MoveToX(0, 500, Easing.OutQuint); MainContent.MoveToX(0, 500, Easing.OutQuint);
} }
public bool WasClosed; public bool WasClosed;

View File

@ -141,7 +141,7 @@ namespace osu.Game.Overlays.Notifications
case ProgressNotificationState.Completed: case ProgressNotificationState.Completed:
loadingSpinner.Hide(); loadingSpinner.Hide();
NotificationContent.MoveToY(-DrawSize.Y / 2, 200, Easing.OutQuint); MainContent.MoveToY(-DrawSize.Y / 2, 200, Easing.OutQuint);
this.FadeOut(200).Finally(_ => Completed()); this.FadeOut(200).Finally(_ => Completed());
break; break;
} }
@ -180,7 +180,7 @@ namespace osu.Game.Overlays.Notifications
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
}); });
NotificationContent.Add(progressBar = new ProgressBar MainContent.Add(progressBar = new ProgressBar
{ {
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,