Skip to content

Commit

Permalink
bump osu version and adjust mods to use userplayable and remove the…
Browse files Browse the repository at this point in the history
… obsolete member `ranked`
  • Loading branch information
Flutterish committed Jul 7, 2021
1 parent 92e2df9 commit af45c77
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 10 deletions.
3 changes: 2 additions & 1 deletion Hitokori/Mods/HitokoriModAuto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ public class HitokoriModAuto : ModAutoplay {
public override string Acronym => "AT";
public override string Description => "Let the cute bot do all the hard work";

public override bool UserPlayable => false;

public override double ScoreMultiplier => 1;
public override bool Ranked => false;

public override IconUsage? Icon => OsuIcon.ModAuto;

Expand Down
2 changes: 0 additions & 2 deletions Hitokori/Mods/HitokoriModHoldTiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public class HitokoriModHoldTiles : AutoImplementedMod {

public override IconUsage? Icon => FontAwesome.Solid.HandHolding;

public override bool Ranked => false;

public override ModType Type => ModType.Conversion;

public override bool HasImplementation => true;
Expand Down
2 changes: 0 additions & 2 deletions Hitokori/Mods/HitokoriModSpinTiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public class HitokoriModSpinTiles : AutoImplementedMod {

public override IconUsage? Icon => FontAwesome.Solid.Spinner;

public override bool Ranked => false;

public override ModType Type => ModType.Conversion;

public override bool HasImplementation => true;
Expand Down
2 changes: 0 additions & 2 deletions Hitokori/Mods/HitokoriModTriplets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public class HitokoriModTriplets : AutoImplementedMod {

public override IconUsage? Icon => new IconUsage( '∴' );

public override bool Ranked => false;

public override ModType Type => ModType.Fun;

public override bool HasImplementation => true;
Expand Down
5 changes: 3 additions & 2 deletions Hitokori/UI/HitokoriSettingsSubsection.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Localisation;
using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays.Settings;
using osu.Game.Rulesets.Hitokori.Settings;
Expand Down Expand Up @@ -58,9 +59,9 @@ private void load () {
}

public class SpeedSlider : OsuSliderBar<double> {
public override string TooltipText => $"{Current.Value:N1}x";
public override LocalisableString TooltipText => $"{Current.Value:N1}x";
}
public class PercentageSlider : OsuSliderBar<double> {
public override string TooltipText => $"{Current.Value:##0%}";
public override LocalisableString TooltipText => $"{Current.Value:##0%}";
}
}
16 changes: 16 additions & 0 deletions Hitokori/osu - Backup.Game.Rulesets.Hitokori.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<LangVersion>preview</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2021.608.0" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Resources\**" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Hitokori/osu.Game.Rulesets.Hitokori.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2021.608.0" />
<PackageReference Include="ppy.osu.Game" Version="2021.707.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit af45c77

Please sign in to comment.