mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 12:43:21 +08:00
Update taiko with legacy colour setters
This commit is contained in:
parent
16a2ab9dea
commit
9fbc5f3aeb
@ -90,7 +90,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning
|
|||||||
|
|
||||||
private void updateAccentColour()
|
private void updateAccentColour()
|
||||||
{
|
{
|
||||||
backgroundLayer.Colour = accentColour;
|
backgroundLayer.Colour = accentColour.ToLegacyColour();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,9 +76,9 @@ namespace osu.Game.Rulesets.Taiko.Skinning
|
|||||||
|
|
||||||
private void updateAccentColour()
|
private void updateAccentColour()
|
||||||
{
|
{
|
||||||
headCircle.AccentColour = accentColour;
|
headCircle.AccentColour = accentColour.ToLegacyColour();
|
||||||
body.Colour = accentColour;
|
body.Colour = accentColour.ToLegacyColour();
|
||||||
end.Colour = accentColour;
|
end.Colour = accentColour.ToLegacyColour();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
|
using osu.Game.Skinning;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Taiko.Skinning
|
namespace osu.Game.Rulesets.Taiko.Skinning
|
||||||
@ -18,9 +19,9 @@ namespace osu.Game.Rulesets.Taiko.Skinning
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
AccentColour = component == TaikoSkinComponents.CentreHit
|
AccentColour = (component == TaikoSkinComponents.CentreHit
|
||||||
? new Color4(235, 69, 44, 255)
|
? new Color4(235, 69, 44, 255)
|
||||||
: new Color4(67, 142, 172, 255);
|
: new Color4(67, 142, 172, 255)).ToLegacyColour();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user