mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Merge branch 'master' into custom-storage-startup-exception
This commit is contained in:
@ -52,6 +52,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.622.1" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.622.1" />
|
||||||
<PackageReference Include="ppy.osu.Framework.Android" Version="2020.701.0" />
|
<PackageReference Include="ppy.osu.Framework.Android" Version="2020.704.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
Before Width: | Height: | Size: 165 B After Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 899 B After Width: | Height: | Size: 899 B |
@ -10,3 +10,5 @@ Hit100: mania/hit100
|
|||||||
Hit200: mania/hit200
|
Hit200: mania/hit200
|
||||||
Hit300: mania/hit300
|
Hit300: mania/hit300
|
||||||
Hit300g: mania/hit300g
|
Hit300g: mania/hit300g
|
||||||
|
StageLeft: mania/stage-left
|
||||||
|
StageRight: mania/stage-right
|
@ -14,6 +14,7 @@ using osu.Framework.Extensions.Color4Extensions;
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Rulesets.Scoring;
|
using osu.Game.Rulesets.Scoring;
|
||||||
using osu.Game.Screens.Ranking;
|
using osu.Game.Screens.Ranking;
|
||||||
|
|
||||||
@ -193,9 +194,10 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
SpmCounter.SetRotation(Disc.RotationAbsolute);
|
SpmCounter.SetRotation(Disc.RotationAbsolute);
|
||||||
|
|
||||||
float relativeCircleScale = Spinner.Scale * circle.DrawHeight / mainContainer.DrawHeight;
|
float relativeCircleScale = Spinner.Scale * circle.DrawHeight / mainContainer.DrawHeight;
|
||||||
Disc.ScaleTo(relativeCircleScale + (1 - relativeCircleScale) * Progress, 200, Easing.OutQuint);
|
float targetScale = relativeCircleScale + (1 - relativeCircleScale) * Progress;
|
||||||
|
Disc.Scale = new Vector2((float)Interpolation.Lerp(Disc.Scale.X, targetScale, Math.Clamp(Math.Abs(Time.Elapsed) / 100, 0, 1)));
|
||||||
|
|
||||||
symbol.RotateTo(Disc.Rotation / 2, 500, Easing.OutQuint);
|
symbol.Rotation = (float)Interpolation.Lerp(symbol.Rotation, Disc.RotationAbsolute / 2, Math.Clamp(Math.Abs(Time.Elapsed) / 40, 0, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void UpdateInitialTransforms()
|
protected override void UpdateInitialTransforms()
|
||||||
|
@ -47,9 +47,25 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
||||||
{
|
{
|
||||||
Combo.BindTo(scoreProcessor.Combo);
|
Combo.BindTo(scoreProcessor.Combo);
|
||||||
|
|
||||||
|
// Default value of ScoreProcessor's Rank in Flashlight Mod should be SS+
|
||||||
|
scoreProcessor.Rank.Value = ScoreRank.XH;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ScoreRank AdjustRank(ScoreRank rank, double accuracy) => rank;
|
public ScoreRank AdjustRank(ScoreRank rank, double accuracy)
|
||||||
|
{
|
||||||
|
switch (rank)
|
||||||
|
{
|
||||||
|
case ScoreRank.X:
|
||||||
|
return ScoreRank.XH;
|
||||||
|
|
||||||
|
case ScoreRank.S:
|
||||||
|
return ScoreRank.SH;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return rank;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public virtual void ApplyToDrawableRuleset(DrawableRuleset<T> drawableRuleset)
|
public virtual void ApplyToDrawableRuleset(DrawableRuleset<T> drawableRuleset)
|
||||||
{
|
{
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Extensions.Color4Extensions;
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -9,6 +10,7 @@ using osu.Framework.Graphics.Colour;
|
|||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Utils;
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
|
using osu.Game.Rulesets.Mods;
|
||||||
using osu.Game.Scoring;
|
using osu.Game.Scoring;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
|
||||||
@ -191,18 +193,26 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
|
|||||||
Padding = new MarginPadding { Vertical = -15, Horizontal = -20 },
|
Padding = new MarginPadding { Vertical = -15, Horizontal = -20 },
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new RankBadge(1f, ScoreRank.X),
|
new RankBadge(1f, getRank(ScoreRank.X)),
|
||||||
new RankBadge(0.95f, ScoreRank.S),
|
new RankBadge(0.95f, getRank(ScoreRank.S)),
|
||||||
new RankBadge(0.9f, ScoreRank.A),
|
new RankBadge(0.9f, getRank(ScoreRank.A)),
|
||||||
new RankBadge(0.8f, ScoreRank.B),
|
new RankBadge(0.8f, getRank(ScoreRank.B)),
|
||||||
new RankBadge(0.7f, ScoreRank.C),
|
new RankBadge(0.7f, getRank(ScoreRank.C)),
|
||||||
new RankBadge(0.35f, ScoreRank.D),
|
new RankBadge(0.35f, getRank(ScoreRank.D)),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
rankText = new RankText(score.Rank)
|
rankText = new RankText(score.Rank)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private ScoreRank getRank(ScoreRank rank)
|
||||||
|
{
|
||||||
|
foreach (var mod in score.Mods.OfType<IApplicableToScoreProcessor>())
|
||||||
|
rank = mod.AdjustRank(rank, score.Accuracy);
|
||||||
|
|
||||||
|
return rank;
|
||||||
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
@ -115,6 +115,7 @@ namespace osu.Game.Skinning
|
|||||||
case string _ when pair.Key.StartsWith("NoteImage"):
|
case string _ when pair.Key.StartsWith("NoteImage"):
|
||||||
case string _ when pair.Key.StartsWith("KeyImage"):
|
case string _ when pair.Key.StartsWith("KeyImage"):
|
||||||
case string _ when pair.Key.StartsWith("Hit"):
|
case string _ when pair.Key.StartsWith("Hit"):
|
||||||
|
case string _ when pair.Key.StartsWith("Stage"):
|
||||||
currentConfig.ImageLookups[pair.Key] = pair.Value;
|
currentConfig.ImageLookups[pair.Key] = pair.Value;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -250,6 +250,15 @@ namespace osu.Game.Skinning
|
|||||||
case LegacyManiaSkinConfigurationLookups.RightStageImage:
|
case LegacyManiaSkinConfigurationLookups.RightStageImage:
|
||||||
return SkinUtils.As<TValue>(getManiaImage(existing, "StageRight"));
|
return SkinUtils.As<TValue>(getManiaImage(existing, "StageRight"));
|
||||||
|
|
||||||
|
case LegacyManiaSkinConfigurationLookups.BottomStageImage:
|
||||||
|
return SkinUtils.As<TValue>(getManiaImage(existing, "StageBottom"));
|
||||||
|
|
||||||
|
case LegacyManiaSkinConfigurationLookups.LightImage:
|
||||||
|
return SkinUtils.As<TValue>(getManiaImage(existing, "StageLight"));
|
||||||
|
|
||||||
|
case LegacyManiaSkinConfigurationLookups.HitTargetImage:
|
||||||
|
return SkinUtils.As<TValue>(getManiaImage(existing, "StageHint"));
|
||||||
|
|
||||||
case LegacyManiaSkinConfigurationLookups.LeftLineWidth:
|
case LegacyManiaSkinConfigurationLookups.LeftLineWidth:
|
||||||
Debug.Assert(maniaLookup.TargetColumn != null);
|
Debug.Assert(maniaLookup.TargetColumn != null);
|
||||||
return SkinUtils.As<TValue>(new Bindable<float>(existing.ColumnLineWidth[maniaLookup.TargetColumn.Value]));
|
return SkinUtils.As<TValue>(new Bindable<float>(existing.ColumnLineWidth[maniaLookup.TargetColumn.Value]));
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||||
<PackageReference Include="ppy.osu.Framework" Version="2020.701.0" />
|
<PackageReference Include="ppy.osu.Framework" Version="2020.704.0" />
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.622.1" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.622.1" />
|
||||||
<PackageReference Include="Sentry" Version="2.1.4" />
|
<PackageReference Include="Sentry" Version="2.1.4" />
|
||||||
<PackageReference Include="SharpCompress" Version="0.25.1" />
|
<PackageReference Include="SharpCompress" Version="0.25.1" />
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Label="Package References">
|
<ItemGroup Label="Package References">
|
||||||
<PackageReference Include="ppy.osu.Framework.iOS" Version="2020.701.0" />
|
<PackageReference Include="ppy.osu.Framework.iOS" Version="2020.704.0" />
|
||||||
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.622.1" />
|
<PackageReference Include="ppy.osu.Game.Resources" Version="2020.622.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<!-- Xamarin.iOS does not automatically handle transitive dependencies from NuGet packages. -->
|
<!-- Xamarin.iOS does not automatically handle transitive dependencies from NuGet packages. -->
|
||||||
@ -80,7 +80,7 @@
|
|||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.2.6" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="2.2.6" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||||
<PackageReference Include="ppy.osu.Framework" Version="2020.701.0" />
|
<PackageReference Include="ppy.osu.Framework" Version="2020.704.0" />
|
||||||
<PackageReference Include="SharpCompress" Version="0.25.1" />
|
<PackageReference Include="SharpCompress" Version="0.25.1" />
|
||||||
<PackageReference Include="NUnit" Version="3.12.0" />
|
<PackageReference Include="NUnit" Version="3.12.0" />
|
||||||
<PackageReference Include="SharpRaven" Version="2.4.0" />
|
<PackageReference Include="SharpRaven" Version="2.4.0" />
|
||||||
|
Reference in New Issue
Block a user