mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Make editor discard approach circles
Temporary solution for now.
This commit is contained in:
parent
f1d170c390
commit
def2e5bd17
@ -9,5 +9,7 @@ namespace osu.Game.Rulesets.Osu.Edit
|
|||||||
public class OsuEditPlayfield : OsuPlayfield
|
public class OsuEditPlayfield : OsuPlayfield
|
||||||
{
|
{
|
||||||
protected override CursorContainer CreateCursor() => null;
|
protected override CursorContainer CreateCursor() => null;
|
||||||
|
|
||||||
|
protected override bool ProxyApproachCircles => false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,10 @@ namespace osu.Game.Rulesets.Osu.UI
|
|||||||
|
|
||||||
public override bool ProvidingUserCursor => true;
|
public override bool ProvidingUserCursor => true;
|
||||||
|
|
||||||
|
// Todo: This should not be a thing, but is currently required for the editor
|
||||||
|
// https://github.com/ppy/osu-framework/issues/1283
|
||||||
|
protected virtual bool ProxyApproachCircles => true;
|
||||||
|
|
||||||
public static readonly Vector2 BASE_SIZE = new Vector2(512, 384);
|
public static readonly Vector2 BASE_SIZE = new Vector2(512, 384);
|
||||||
|
|
||||||
public override Vector2 Size
|
public override Vector2 Size
|
||||||
@ -80,7 +84,7 @@ namespace osu.Game.Rulesets.Osu.UI
|
|||||||
h.Depth = (float)h.HitObject.StartTime;
|
h.Depth = (float)h.HitObject.StartTime;
|
||||||
|
|
||||||
var c = h as IDrawableHitObjectWithProxiedApproach;
|
var c = h as IDrawableHitObjectWithProxiedApproach;
|
||||||
if (c != null)
|
if (c != null && ProxyApproachCircles)
|
||||||
approachCircles.Add(c.ProxiedLayer.CreateProxy());
|
approachCircles.Add(c.ProxiedLayer.CreateProxy());
|
||||||
|
|
||||||
base.Add(h);
|
base.Add(h);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user