From ffe65e13aca6fbce20bc03e41ebb60e1cb37ae0a Mon Sep 17 00:00:00 2001 From: goodtrailer Date: Fri, 16 Apr 2021 00:05:21 -0700 Subject: [PATCH] Changed anchor to centre for Hit Circles and Judgements Fixed issue #4. --- .../Objects/Drawables/DrawableHitCircle.cs | 2 +- .../Objects/Drawables/DrawableSoyokazeHitObject.cs | 1 + .../Objects/Drawables/DrawableSoyokazeJudgement.cs | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableHitCircle.cs b/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableHitCircle.cs index 30c099b..29c4dac 100644 --- a/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableHitCircle.cs +++ b/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableHitCircle.cs @@ -55,7 +55,7 @@ private void load(TextureStore textures) private void updatePosition() { - Vector2[] positions = PositionExtensions.GetPositions(ScreenCenterDistanceBindable.Value, GapBindable.Value, true, Anchor.TopLeft); + Vector2[] positions = PositionExtensions.GetPositions(ScreenCenterDistanceBindable.Value, GapBindable.Value, true, Anchor.Centre); Position = positions[(int)ButtonBindable.Value]; } diff --git a/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableSoyokazeHitObject.cs b/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableSoyokazeHitObject.cs index b1ed8d4..cd0b542 100644 --- a/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableSoyokazeHitObject.cs +++ b/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableSoyokazeHitObject.cs @@ -29,6 +29,7 @@ public DrawableSoyokazeHitObject(SoyokazeHitObject hitObject) { Alpha = 1; Origin = Anchor.Centre; + Anchor = Anchor.Centre; } [BackgroundDependencyLoader] diff --git a/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableSoyokazeJudgement.cs b/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableSoyokazeJudgement.cs index 922ae31..80c9ed0 100644 --- a/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableSoyokazeJudgement.cs +++ b/osu.Game.Rulesets.Soyokaze/Objects/Drawables/DrawableSoyokazeJudgement.cs @@ -18,12 +18,13 @@ public DrawableSoyokazeJudgement(JudgementResult result, DrawableHitObject drawa : base(result, drawableObject) { Origin = Anchor.Centre; + Anchor = Anchor.Centre; SoyokazeAction button = (drawableObject as DrawableSoyokazeHitObject)?.ButtonBindable.Value ?? default; int screenCenterDistance = configManager.Get(SoyokazeConfig.JudgementScreenCenterDistance); int gap = configManager.Get(SoyokazeConfig.JudgementGap); - Vector2[] positions = PositionExtensions.GetPositions(screenCenterDistance, gap, true, Anchor.TopLeft); + Vector2[] positions = PositionExtensions.GetPositions(screenCenterDistance, gap, true, Anchor.Centre); Position = positions[(int)button]; }