From f392c6dd2b3a795cc1c6f4e75203f7296899f70c Mon Sep 17 00:00:00 2001 From: Derrick Timmermans Date: Sun, 20 Sep 2026 23:28:33 +0200 Subject: [PATCH 1/2] Bump osu and .NET --- .github/workflows/dotnet-core.yml | 2 +- .github/workflows/release.yml | 2 +- .vscode/launch.json | 8 ++++---- Directory.Build.props | 3 ++- .../osu.Game.Rulesets.Rush.Tests.csproj | 6 +++--- osu.Game.Rulesets.Rush/Objects/StarSheet.cs | 6 ++---- osu.Game.Rulesets.Rush/UI/Fever/RushFeverBar.cs | 3 +-- osu.Game.Rulesets.Rush/UI/RushPlayerSprite.cs | 8 +++----- osu.Game.Rulesets.Rush/UI/RushSettingsSubsection.cs | 6 ------ osu.Game.Rulesets.Rush/osu.Game.Rulesets.Rush.csproj | 4 ++-- 10 files changed, 19 insertions(+), 29 deletions(-) diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index b6c8d9a3..00e27d80 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -24,4 +24,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: Rush (dev build) - path: osu.Game.Rulesets.Rush/bin/Development/net8.0/osu.Game.Rulesets.Rush-dev.dll + path: osu.Game.Rulesets.Rush/bin/Development/net10.0/osu.Game.Rulesets.Rush-dev.dll diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3cda978d..7e95edc4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,6 +38,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./osu.Game.Rulesets.Rush/bin/Release/net8.0/osu.Game.Rulesets.Rush.dll + asset_path: ./osu.Game.Rulesets.Rush/bin/Release/net10.0/osu.Game.Rulesets.Rush.dll asset_name: osu.Game.Rulesets.Rush.dll asset_content_type: application/vnd.microsoft.portable-executable diff --git a/.vscode/launch.json b/.vscode/launch.json index 40b5c9e7..58561c29 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -7,7 +7,7 @@ "request": "launch", "program": "dotnet", "args": [ - "${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Debug/net8.0/osu.Game.Rulesets.Rush.Tests.dll" + "${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Debug/net10.0/osu.Game.Rulesets.Rush.Tests.dll" ], "cwd": "${workspaceRoot}", "preLaunchTask": "Build tests (Debug)", @@ -19,7 +19,7 @@ "request": "launch", "program": "dotnet", "args": [ - "${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Release/net8.0/osu.Game.Rulesets.Rush.Tests.dll" + "${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Release/net10.0/osu.Game.Rulesets.Rush.Tests.dll" ], "cwd": "${workspaceRoot}", "preLaunchTask": "Build tests (Release)", @@ -31,11 +31,11 @@ "request": "launch", "program": "dotnet", "args": [ - "${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Development/net8.0/osu.Game.Rulesets.Rush.Tests.dll" + "${workspaceRoot}/osu.Game.Rulesets.Rush.Tests/bin/Development/net10.0/osu.Game.Rulesets.Rush.Tests.dll" ], "cwd": "${workspaceRoot}", "preLaunchTask": "Build tests (Development)", "console": "internalConsole" }, ] -} +} \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index 1bef0169..b9e44492 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,8 @@ - 12.0 + 14.0 true + NU1901;NU1902;NU1903;NU1904 true true diff --git a/osu.Game.Rulesets.Rush.Tests/osu.Game.Rulesets.Rush.Tests.csproj b/osu.Game.Rulesets.Rush.Tests/osu.Game.Rulesets.Rush.Tests.csproj index 9015bd30..2ab53b4d 100644 --- a/osu.Game.Rulesets.Rush.Tests/osu.Game.Rulesets.Rush.Tests.csproj +++ b/osu.Game.Rulesets.Rush.Tests/osu.Game.Rulesets.Rush.Tests.csproj @@ -11,13 +11,13 @@ false - + - + WinExe - net8.0 + net10.0 true diff --git a/osu.Game.Rulesets.Rush/Objects/StarSheet.cs b/osu.Game.Rulesets.Rush/Objects/StarSheet.cs index 22d05a39..1331ba8b 100644 --- a/osu.Game.Rulesets.Rush/Objects/StarSheet.cs +++ b/osu.Game.Rulesets.Rush/Objects/StarSheet.cs @@ -22,14 +22,12 @@ public double EndTime set => Duration = value - StartTime; } - private double duration; - public double Duration { - get => duration; + get; set { - duration = value; + field = value; Tail.StartTime = EndTime; } } diff --git a/osu.Game.Rulesets.Rush/UI/Fever/RushFeverBar.cs b/osu.Game.Rulesets.Rush/UI/Fever/RushFeverBar.cs index 50c21ce6..5e04a9b1 100644 --- a/osu.Game.Rulesets.Rush/UI/Fever/RushFeverBar.cs +++ b/osu.Game.Rulesets.Rush/UI/Fever/RushFeverBar.cs @@ -130,8 +130,7 @@ private void updateFeverState(ValueChangedEvent valueChanged) FinishTransforms(true); // Force the animations to finish immediately when rewinding } - private RushInputManager rushActionInputManager; - internal RushInputManager RushActionInputManager => rushActionInputManager ??= GetContainingInputManager() as RushInputManager; + internal RushInputManager RushActionInputManager => field ??= GetContainingInputManager() as RushInputManager; public RushActionTarget ActionTargetForTouchPosition(Vector2 screenSpaceTouchPos) => RushActionTarget.Fever; diff --git a/osu.Game.Rulesets.Rush/UI/RushPlayerSprite.cs b/osu.Game.Rulesets.Rush/UI/RushPlayerSprite.cs index 1ccab3e8..ff31eacb 100644 --- a/osu.Game.Rulesets.Rush/UI/RushPlayerSprite.cs +++ b/osu.Game.Rulesets.Rush/UI/RushPlayerSprite.cs @@ -68,20 +68,18 @@ public partial class RushPlayerSprite : CompositeDrawable private double runResetTime; - private PlayerTargetLane target; - public PlayerTargetLane Target { - get => target; + get; set { if (value == PlayerTargetLane.MiniBoss) playAnimation(PlayerAnimation.AirAttack); - if (value == target) + if (value == field) return; - target = value; + field = value; switch (value) { diff --git a/osu.Game.Rulesets.Rush/UI/RushSettingsSubsection.cs b/osu.Game.Rulesets.Rush/UI/RushSettingsSubsection.cs index 5526a2d0..857f7d67 100644 --- a/osu.Game.Rulesets.Rush/UI/RushSettingsSubsection.cs +++ b/osu.Game.Rulesets.Rush/UI/RushSettingsSubsection.cs @@ -3,7 +3,6 @@ using osu.Framework.Allocation; using osu.Framework.Graphics; -using osu.Framework.Localisation; using osu.Game.Overlays.Settings; using osu.Game.Rulesets.Rush.Configuration; @@ -11,16 +10,11 @@ namespace osu.Game.Rulesets.Rush.UI { public partial class RushSettingsSubsection : RulesetSettingsSubsection { - private readonly Ruleset ruleset; - protected new RushRulesetConfigManager Config => (RushRulesetConfigManager)base.Config; - protected override LocalisableString Header => ruleset.Description; - public RushSettingsSubsection(Ruleset ruleset) : base(ruleset) { - this.ruleset = ruleset; } [BackgroundDependencyLoader] diff --git a/osu.Game.Rulesets.Rush/osu.Game.Rulesets.Rush.csproj b/osu.Game.Rulesets.Rush/osu.Game.Rulesets.Rush.csproj index 1e3fa136..97920c3d 100644 --- a/osu.Game.Rulesets.Rush/osu.Game.Rulesets.Rush.csproj +++ b/osu.Game.Rulesets.Rush/osu.Game.Rulesets.Rush.csproj @@ -1,7 +1,7 @@ Debug;Release;Development - net8.0 + net10.0 Library AnyCPU osu.Game.Rulesets.Rush @@ -33,6 +33,6 @@ - + From bb00538575c81f08b4809c087d15fefc053b9e62 Mon Sep 17 00:00:00 2001 From: Derrick Timmermans Date: Sun, 20 Sep 2026 23:56:20 +0200 Subject: [PATCH 2/2] Hide keybindings in editor variant --- osu.Game.Rulesets.Rush/RushRuleset.cs | 31 ++++++++++++++++----------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/osu.Game.Rulesets.Rush/RushRuleset.cs b/osu.Game.Rulesets.Rush/RushRuleset.cs index 3ff88acf..cd8f89a4 100644 --- a/osu.Game.Rulesets.Rush/RushRuleset.cs +++ b/osu.Game.Rulesets.Rush/RushRuleset.cs @@ -96,23 +96,28 @@ public override IEnumerable GetModsFor(ModType type) } } - public override IEnumerable GetDefaultKeyBindings(int variant = 0) => new[] + public override IEnumerable GetDefaultKeyBindings(int variant = 0) { - new KeyBinding(InputKey.J, RushAction.GroundPrimary), - new KeyBinding(InputKey.K, RushAction.GroundSecondary), - new KeyBinding(InputKey.L, RushAction.GroundTertiary), - new KeyBinding(InputKey.Semicolon, RushAction.GroundQuaternary), + if (variant == EDITOR_VARIANT) + return []; - new KeyBinding(InputKey.F, RushAction.AirPrimary), - new KeyBinding(InputKey.D, RushAction.AirSecondary), - new KeyBinding(InputKey.S, RushAction.AirTertiary), - new KeyBinding(InputKey.A, RushAction.AirQuaternary), + return [ + new KeyBinding(InputKey.J, RushAction.GroundPrimary), + new KeyBinding(InputKey.K, RushAction.GroundSecondary), + new KeyBinding(InputKey.L, RushAction.GroundTertiary), + new KeyBinding(InputKey.Semicolon, RushAction.GroundQuaternary), - new KeyBinding(InputKey.MouseRight, RushAction.GroundPrimary), - new KeyBinding(InputKey.MouseLeft, RushAction.AirPrimary), + new KeyBinding(InputKey.F, RushAction.AirPrimary), + new KeyBinding(InputKey.D, RushAction.AirSecondary), + new KeyBinding(InputKey.S, RushAction.AirTertiary), + new KeyBinding(InputKey.A, RushAction.AirQuaternary), - new KeyBinding(InputKey.Space, RushAction.Fever), - }; + new KeyBinding(InputKey.MouseRight, RushAction.GroundPrimary), + new KeyBinding(InputKey.MouseLeft, RushAction.AirPrimary), + + new KeyBinding(InputKey.Space, RushAction.Fever), + ]; + } public override IConvertibleReplayFrame CreateConvertibleReplayFrame() => new RushReplayFrame();