1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 17:27:24 +08:00

Made judgements follow DrawableOsuHitObjects. Enabled judgements for depth mod

This commit is contained in:
DavidBeh 2024-04-24 00:23:45 +02:00
parent 7dac5afd90
commit 16190a4ed7
2 changed files with 11 additions and 3 deletions

View File

@ -50,9 +50,6 @@ namespace osu.Game.Rulesets.Osu.Mods
// Hide follow points as they won't make any sense.
// Judgements can potentially be turned on in a future where they display at a position relative to their drawable counterpart.
(drawableRuleset.Playfield as OsuPlayfield)?.FollowPoints.Hide();
// Hide judgements as they don't move with the drawables after appearing, which does look bad.
// They would need to either move with them or disappear sooner.
drawableRuleset.Playfield.DisplayJudgements.Value = false;
}
private void applyTransform(DrawableHitObject drawable, ArmedState state)

View File

@ -46,6 +46,17 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
}
}
protected override void Update()
{
base.Update();
if (JudgedObject is DrawableOsuHitObject osuObject && Parent != null && osuObject.HitObject != null)
{
Position = osuObject.ToSpaceOfOtherDrawable(osuObject.OriginPosition, Parent!);
Scale = new Vector2(osuObject.HitObject.Scale);
}
}
protected override void ApplyHitAnimations()
{
bool hitLightingEnabled = config.Get<bool>(OsuSetting.HitLighting);