1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22: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 Container NotificationContent;
protected Container MainContent;
public virtual bool Read { get; set; }
@ -71,7 +71,7 @@ namespace osu.Game.Overlays.Notifications
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreRight,
},
NotificationContent = new Container
MainContent = new Container
{
CornerRadius = 8,
Masking = true,
@ -135,7 +135,7 @@ namespace osu.Game.Overlays.Notifications
[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)
{
NotificationContent.Add(new Box
MainContent.Add(new Box
{
RelativeSizeAxes = Axes.Both,
Colour = colourProvider.Background3,
@ -157,8 +157,8 @@ namespace osu.Game.Overlays.Notifications
this.FadeInFromZero(200);
NotificationContent.MoveToX(DrawSize.X);
NotificationContent.MoveToX(0, 500, Easing.OutQuint);
MainContent.MoveToX(DrawSize.X);
MainContent.MoveToX(0, 500, Easing.OutQuint);
}
public bool WasClosed;

View File

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