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:
parent
a8f4f00421
commit
906ea80d52
@ -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>)(() =>
|
||||
|
Loading…
Reference in New Issue
Block a user