mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Enforce readonly private members where possible.
This commit is contained in:
@ -35,9 +35,9 @@ namespace osu.Game.Overlays.Notifications
|
||||
public virtual bool DisplayOnTop => true;
|
||||
|
||||
protected NotificationLight Light;
|
||||
private CloseButton closeButton;
|
||||
private readonly CloseButton closeButton;
|
||||
protected Container IconContent;
|
||||
private Container content;
|
||||
private readonly Container content;
|
||||
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
|
@ -135,7 +135,7 @@ namespace osu.Game.Overlays.Notifications
|
||||
|
||||
private class ClearAllButton : ClickableContainer
|
||||
{
|
||||
private OsuSpriteText text;
|
||||
private readonly OsuSpriteText text;
|
||||
|
||||
public ClearAllButton()
|
||||
{
|
||||
|
@ -104,12 +104,12 @@ namespace osu.Game.Overlays.Notifications
|
||||
|
||||
public override bool DisplayOnTop => false;
|
||||
|
||||
private ProgressBar progressBar;
|
||||
private readonly ProgressBar progressBar;
|
||||
private Color4 colourQueued;
|
||||
private Color4 colourActive;
|
||||
private Color4 colourCancelled;
|
||||
|
||||
private SpriteText textDrawable;
|
||||
private readonly SpriteText textDrawable;
|
||||
|
||||
public ProgressNotification()
|
||||
{
|
||||
|
@ -34,8 +34,8 @@ namespace osu.Game.Overlays.Notifications
|
||||
}
|
||||
}
|
||||
|
||||
private SpriteText textDrawable;
|
||||
private TextAwesome iconDrawable;
|
||||
private readonly SpriteText textDrawable;
|
||||
private readonly TextAwesome iconDrawable;
|
||||
|
||||
protected Box IconBackgound;
|
||||
|
||||
|
Reference in New Issue
Block a user