3
3
using osu . Game . Graphics ;
4
4
using osu . Framework . Allocation ;
5
5
using osu . Framework . Graphics . Sprites ;
6
- using OpenTK ;
6
+ using osuTK ;
7
7
using osu . Framework . Input . Bindings ;
8
8
using osu . Game . Graphics . Containers ;
9
9
using osu . Framework . Audio . Track ;
10
10
using osu . Game . Beatmaps . ControlPoints ;
11
11
using osu . Framework . Graphics . Containers ;
12
12
using osu . Framework . Graphics . Textures ;
13
+ using osu . Game . Rulesets . Objects . Drawables ;
13
14
using osu . Game . Rulesets . UI . Scrolling ;
14
15
15
16
namespace osu . Game . Rulesets . Pippidon . UI
@@ -18,24 +19,20 @@ public class PippidonPlayfield : ScrollingPlayfield
18
19
{
19
20
private readonly Container content ;
20
21
21
- protected override Container < Drawable > Content => content ;
22
-
23
22
private readonly PippidonContainer pippidon ;
24
23
public int PippidonLane => pippidon . LanePosition ;
25
24
26
25
public PippidonPlayfield ( PippidonRuleset ruleset )
27
26
{
28
- VisibleTimeRange . Value = 6000 ;
29
- Direction . Value = ScrollingDirection . Left ;
30
-
31
- base . Content . AddRange ( new Drawable [ ]
27
+ AddRangeInternal ( new Drawable [ ]
32
28
{
33
29
content = new Container
34
30
{
35
31
RelativeSizeAxes = Axes . Both ,
36
32
Padding = new MarginPadding { Left = 200 } ,
37
33
Anchor = Anchor . CentreRight ,
38
34
Origin = Anchor . CentreRight ,
35
+ Child = HitObjectContainer
39
36
} ,
40
37
new LaneContainer
41
38
{
@@ -97,7 +94,7 @@ protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint,
97
94
98
95
private class PippidonContainer : BeatSyncedContainer , IKeyBindingHandler < PippidonAction >
99
96
{
100
- public override bool HandleKeyboardInput => true ;
97
+ public override bool HandleNonPositionalInput => true ;
101
98
102
99
public int LanePosition
103
100
{
0 commit comments