mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Further improved method of getting OsuColour
This commit is contained in:
@ -46,8 +46,6 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
|
|
||||||
private Bindable<TaikoTouchControlScheme> configTouchControlScheme = new Bindable<TaikoTouchControlScheme>();
|
private Bindable<TaikoTouchControlScheme> configTouchControlScheme = new Bindable<TaikoTouchControlScheme>();
|
||||||
|
|
||||||
private static OsuColour colours;
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TaikoInputManager taikoInputManager, TaikoRulesetConfigManager config, OsuColour _colours)
|
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;
|
const float centre_region = 0.80f;
|
||||||
|
|
||||||
config.BindWith(TaikoRulesetSetting.TouchControlScheme, configTouchControlScheme);
|
config.BindWith(TaikoRulesetSetting.TouchControlScheme, configTouchControlScheme);
|
||||||
colours = _colours;
|
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -231,6 +228,9 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
|
|
||||||
public override bool Contains(Vector2 screenSpacePos) => circle.Contains(screenSpacePos);
|
public override bool Contains(Vector2 screenSpacePos) => circle.Contains(screenSpacePos);
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
|
private OsuColour colours { get; set; } = null!;
|
||||||
|
|
||||||
public QuarterCircle(TaikoAction handledAction)
|
public QuarterCircle(TaikoAction handledAction)
|
||||||
{
|
{
|
||||||
Color4 colour = ((Func<Color4>)(() =>
|
Color4 colour = ((Func<Color4>)(() =>
|
||||||
|
Reference in New Issue
Block a user