1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 22:33:05 +08:00

Further improved method of getting OsuColour

This commit is contained in:
OpenSauce 2023-01-10 12:11:33 +00:00
parent a8f4f00421
commit 906ea80d52

View File

@ -46,8 +46,6 @@ namespace osu.Game.Rulesets.Taiko.UI
private Bindable<TaikoTouchControlScheme> configTouchControlScheme = new Bindable<TaikoTouchControlScheme>();
private static OsuColour colours;
[BackgroundDependencyLoader]
private void load(TaikoInputManager taikoInputManager, TaikoRulesetConfigManager config, OsuColour _colours)
{
@ -60,7 +58,6 @@ namespace osu.Game.Rulesets.Taiko.UI
const float centre_region = 0.80f;
config.BindWith(TaikoRulesetSetting.TouchControlScheme, configTouchControlScheme);
colours = _colours;
Children = new Drawable[]
{
@ -231,6 +228,9 @@ namespace osu.Game.Rulesets.Taiko.UI
public override bool Contains(Vector2 screenSpacePos) => circle.Contains(screenSpacePos);
[Resolved]
private OsuColour colours { get; set; } = null!;
public QuarterCircle(TaikoAction handledAction)
{
Color4 colour = ((Func<Color4>)(() =>