Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change key overlay to use the ordering provided by rulesets #26589

Merged
merged 3 commits into from Jan 17, 2024

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Jan 17, 2024

osu!mania already goes out of its way to order things correctly. Arguably, osu!taiko just did it wrong.

See commit which fixes the original reason for adding Order (#10553).

Addresses #25944.

osu!mania already goes out of its way to order things correctly.
Arguably, osu!taiko just did it wrong.
Fixes the issue originally fixed via
ppy#10553 in a slightly different way,
allowing more flexibility.
Comment on lines 74 to 76
new KeyBinding(InputKey.MouseLeft, TaikoAction.LeftCentre),
new KeyBinding(InputKey.J, TaikoAction.RightCentre),
new KeyBinding(InputKey.MouseRight, TaikoAction.LeftRim),
Copy link
Collaborator

@bdach bdach Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing this in this way causes revert-to-default buttons to appear in the settings overlay in the taiko section:

osu_2024-01-17_12-11-08

Something like the following:

diff --git a/osu.Game.Rulesets.Taiko/TaikoRuleset.cs b/osu.Game.Rulesets.Taiko/TaikoRuleset.cs
index b80d8218f5..24b0ec5d57 100644
--- a/osu.Game.Rulesets.Taiko/TaikoRuleset.cs
+++ b/osu.Game.Rulesets.Taiko/TaikoRuleset.cs
@@ -69,11 +69,11 @@ public class TaikoRuleset : Ruleset, ILegacyRuleset
 
         public override IEnumerable<KeyBinding> GetDefaultKeyBindings(int variant = 0) => new[]
         {
+            new KeyBinding(InputKey.MouseRight, TaikoAction.LeftRim),
             new KeyBinding(InputKey.D, TaikoAction.LeftRim),
-            new KeyBinding(InputKey.F, TaikoAction.LeftCentre),
             new KeyBinding(InputKey.MouseLeft, TaikoAction.LeftCentre),
+            new KeyBinding(InputKey.F, TaikoAction.LeftCentre),
             new KeyBinding(InputKey.J, TaikoAction.RightCentre),
-            new KeyBinding(InputKey.MouseRight, TaikoAction.LeftRim),
             new KeyBinding(InputKey.K, TaikoAction.RightRim),
         };
 

fixes that, without regressing #10545. Think it's worth it?

This would also fix the test failures, by the way.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a feeling that would be the case. I last minute reordered them for visual appeal without retesting.

Applying the change sounds fine.

@bdach bdach merged commit d335c01 into ppy:master Jan 17, 2024
15 of 17 checks passed
@peppy peppy deleted the key-binding-overlay-ordering branch January 18, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants