public SentakkiPlayfield() { Anchor = Anchor.Centre; Origin = Anchor.Centre; RelativeSizeAxes = Axes.None; Rotation = 0; Size = new Vector2(600); AddRangeInternal(new Drawable[] { judgementPool = new DrawablePool <DrawableSentakkiJudgement>(8), AccentContainer = new Container { RelativeSizeAxes = Axes.Both, Children = new Drawable[] { new PlayfieldVisualisation(), ring = new SentakkiRing(), } }, lanedPlayfield = new LanedPlayfield(), HitObjectContainer, // This only contains TouchHolds, which needs to be above others types touchPlayfield = new TouchPlayfield(), // This only contains Touch, which needs a custom playfield to handle their input judgementLayer = new Container <DrawableSentakkiJudgement> { RelativeSizeAxes = Axes.Both, } }); AddNested(lanedPlayfield); AddNested(touchPlayfield); NewResult += onNewResult; }
public SentakkiPlayfield() { Anchor = Anchor.Centre; Origin = Anchor.Centre; RelativeSizeAxes = Axes.None; Rotation = 0; Size = new Vector2(600); AddRangeInternal(new Drawable[] { judgementPool = new DrawablePool <DrawableSentakkiJudgement>(8), new PlayfieldVisualisation(), ring = new SentakkiRing(), lanedPlayfield = new LanedPlayfield(), HitObjectContainer, // This only contains Touch and TouchHolds, which should appear above others note types. Might consider separating to another playfield. judgementLayer = new Container <DrawableSentakkiJudgement> { RelativeSizeAxes = Axes.Both, } }); AddNested(lanedPlayfield); NewResult += onNewResult; }