mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Remove usages of the 'new' keyword.
This commit is contained in:
@ -50,7 +50,7 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
foreach (ModButton button in value)
|
||||
{
|
||||
button.Colour = Colour;
|
||||
button.ButtonColour = BottonColour;
|
||||
button.SelectedColour = selectedColour;
|
||||
button.Action = this.Action;
|
||||
}
|
||||
@ -59,21 +59,21 @@ namespace osu.Game.Overlays.Mods
|
||||
}
|
||||
}
|
||||
|
||||
private Color4 colour = Color4.White;
|
||||
public new Color4 Colour
|
||||
private Color4 buttonsBolour = Color4.White;
|
||||
public Color4 BottonColour
|
||||
{
|
||||
get
|
||||
{
|
||||
return colour;
|
||||
return buttonsBolour;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value == colour) return;
|
||||
colour = value;
|
||||
if (value == buttonsBolour) return;
|
||||
buttonsBolour = value;
|
||||
|
||||
foreach (ModButton button in buttons)
|
||||
{
|
||||
button.Colour = value;
|
||||
button.ButtonColour = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user