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

Bump ppy.osu.Game from 2024.302.1 to 2024.312.0 #453

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
@@ -1,4 +1,4 @@
using osu.Framework.Bindables;

Check failure on line 1 in osu.Game.Rulesets.Tau/UI/Cursor/CursorPiece.cs

View workflow job for this annotation

GitHub Actions / Code Quality

Using directive is not required by the code and can be safely removed in osu.Game.Rulesets.Tau\UI\Cursor\CursorPiece.cs on line 1
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.UserInterface;
Expand Down Expand Up @@ -26,7 +26,7 @@
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
@@ -1,6 +1,6 @@
using System;
using osu.Framework.Allocation;
using osu.Framework.Bindables;

Check failure on line 3 in osu.Game.Rulesets.Tau/UI/TauResumeOverlay.cs

View workflow job for this annotation

GitHub Actions / Code Quality

Using directive is not required by the code and can be safely removed in osu.Game.Rulesets.Tau\UI\TauResumeOverlay.cs on line 3
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
Expand Down Expand Up @@ -57,7 +57,7 @@
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