Skip to content

Commit

Permalink
Merge pull request #453 from taulazer/dependabot/nuget/ppy.osu.Game-2…
Browse files Browse the repository at this point in the history
…024.312.0

Bump ppy.osu.Game from 2024.302.1 to 2024.312.0
  • Loading branch information
LumpBloom7 authored Mar 11, 2024
2 parents fa2894f + 4aa19c0 commit 73c9335
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public StrictHardBeatPiece()

AngleRange.BindValueChanged(val =>
{
Current.Value = val.NewValue / 360;
Progress = val.NewValue / 360;
Rotation = -(float)(val.NewValue / 2);
}, true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private void load()
RelativePositionAxes = Axes.Both,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Current = new BindableDouble(paddedAngleRange / 360),
Progress = paddedAngleRange / 360,
InnerRadius = 0.05f,
Rotation = (float)(-paddedAngleRange / 2),
Y = 0.0035f
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Tau/UI/Cursor/CursorPiece.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private CircularProgress createProgress(float rotation)
RelativeSizeAxes = Axes.Both,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Current = new BindableDouble(0.33f),
Progress = 0.33,
InnerRadius = 0.1f,
Rotation = rotation
};
Expand Down
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Tau/UI/Cursor/Paddle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public Paddle()
RelativeSizeAxes = Axes.Both,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Current = new BindableDouble(),
Progress = 0,
InnerRadius = PADDLE_RADIUS
},
new HandlePiece()
Expand All @@ -44,7 +44,7 @@ private void load(TauCachedProperties props)

angleRange.BindValueChanged(r =>
{
paddle.Current.Value = r.NewValue / 360;
paddle.Progress = r.NewValue / 360;
paddle.Rotation = (float)(-r.NewValue / 2);
}, true);
}
Expand Down
4 changes: 2 additions & 2 deletions osu.Game.Rulesets.Tau/UI/Effects/PlayfieldVisualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ protected override void Draw(IRenderer renderer)
if (data[i] < amplitude_dead_zone)
continue;

float rotation = MathUtils.DegreesToRadians((i / (float)bars_per_visualiser * 360) + (j * 360 / (float)visualizer_rounds));
float rotation = float.DegreesToRadians((i / (float)bars_per_visualiser * 360) + (j * 360 / (float)visualizer_rounds));
float rotationCos = MathF.Cos(rotation);
float rotationSin = MathF.Sin(rotation);
// taking the cos and sin to the 0..1 range
var barPosition = new Vector2((rotationCos / 2) + 0.5f, (rotationSin / 2) + 0.5f) * size;

var barSize = new Vector2(size * MathF.Sqrt(2 * (1 - MathF.Cos(MathUtils.DegreesToRadians(360f / bars_per_visualiser)))) / 2f,
var barSize = new Vector2(size * MathF.Sqrt(2 * (1 - MathF.Cos(float.DegreesToRadians(360f / bars_per_visualiser)))) / 2f,
bar_length * data[i]);
// The distance between the position and the sides of the bar.
var bottomOffset = new Vector2(-rotationSin * barSize.X / 2, rotationCos * barSize.X / 2);
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Tau/UI/TauResumeOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void load()
RelativeSizeAxes = Axes.Both,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Current = new BindableDouble((angleRange / 360) * 0.25f),
Progress = (angleRange / 360) * 0.25f,
ResumeRequested = Resume
}
}
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Tau/osu.Game.Rulesets.Tau.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2024.302.1" />
<PackageReference Include="ppy.osu.Game" Version="2024.312.0" />
</ItemGroup>
<ItemGroup>
<Compile Update="Objects\Drawables\DrawableSlider.Calculations.cs">
Expand Down

0 comments on commit 73c9335

Please sign in to comment.