1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 00:42:55 +08:00

Move resolved property to top of class

This commit is contained in:
Dean Herbert 2021-07-22 15:39:01 +09:00
parent 9d43ca122f
commit b5cc9010de

View File

@ -190,6 +190,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
private class SelectableAreaBackground : CompositeDrawable private class SelectableAreaBackground : CompositeDrawable
{ {
[Resolved]
private OsuColour colours { get; set; }
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) public override bool ReceivePositionalInputAt(Vector2 screenSpacePos)
{ {
float localY = ToLocalSpace(screenSpacePos).Y; float localY = ToLocalSpace(screenSpacePos).Y;
@ -220,9 +223,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
}); });
} }
[Resolved]
private OsuColour colours { get; set; }
protected override bool OnHover(HoverEvent e) protected override bool OnHover(HoverEvent e)
{ {
this.FadeColour(colours.BlueLighter, 120, Easing.OutQuint); this.FadeColour(colours.BlueLighter, 120, Easing.OutQuint);