Skip to content

Commit 86cf333

Browse files
feat: full osuTK→System.Numerics+Colour4 migration (1173 files)
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/e73de580-9497-40f3-b042-e0067320550d Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent d31333a commit 86cf333

1,174 files changed

Lines changed: 2022 additions & 3244 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Templates/Rulesets/ruleset-empty/osu.Game.Rulesets.EmptyFreeform.Tests/TestSceneOsuGame.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using osu.Framework.Graphics;
66
using osu.Framework.Graphics.Shapes;
77
using osu.Game.Tests.Visual;
8-
using osuTK.Graphics;
98

109
namespace osu.Game.Rulesets.EmptyFreeform.Tests
1110
{
@@ -19,7 +18,7 @@ private void load()
1918
new Box
2019
{
2120
RelativeSizeAxes = Axes.Both,
22-
Colour = Color4.Black,
21+
Colour = Colour4.Black,
2322
},
2423
};
2524

Templates/Rulesets/ruleset-empty/osu.Game.Rulesets.EmptyFreeform/EmptyFreeformRuleset.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
using osu.Game.Rulesets.EmptyFreeform.UI;
1717
using osu.Game.Rulesets.Mods;
1818
using osu.Game.Rulesets.UI;
19-
using osuTK;
2019
using Vector2 = System.Numerics.Vector2;
21-
using osuTK.Graphics;
2220

2321
namespace osu.Game.Rulesets.EmptyFreeform
2422
{
@@ -66,7 +64,7 @@ public Icon(char c)
6664
new Circle
6765
{
6866
Size = new Vector2(20),
69-
Colour = Color4.White,
67+
Colour = Colour4.White,
7068
},
7169
new SpriteText
7270
{

Templates/Rulesets/ruleset-empty/osu.Game.Rulesets.EmptyFreeform/Objects/Drawables/DrawableEmptyFreeformHitObject.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
using osu.Framework.Graphics;
55
using osu.Game.Rulesets.Objects.Drawables;
66
using osu.Game.Rulesets.Scoring;
7-
using osuTK;
87
using Vector2 = System.Numerics.Vector2;
9-
using osuTK.Graphics;
108

119
namespace osu.Game.Rulesets.EmptyFreeform.Objects.Drawables
1210
{
@@ -41,7 +39,7 @@ protected override void UpdateHitStateTransforms(ArmedState state)
4139
break;
4240

4341
case ArmedState.Miss:
44-
this.FadeColour(Color4.Red, duration);
42+
this.FadeColour(Colour4.Red, duration);
4543
this.FadeOut(duration, Easing.InQuint).Expire();
4644
break;
4745
}

Templates/Rulesets/ruleset-empty/osu.Game.Rulesets.EmptyFreeform/Replays/EmptyFreeformReplayFrame.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System.Collections.Generic;
55
using System.Linq;
66
using osu.Game.Rulesets.Replays;
7-
using osuTK;
87

98
namespace osu.Game.Rulesets.EmptyFreeform.Replays
109
{

Templates/Rulesets/ruleset-example/osu.Game.Rulesets.Pippidon.Tests/TestSceneOsuGame.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using osu.Framework.Graphics;
66
using osu.Framework.Graphics.Shapes;
77
using osu.Game.Tests.Visual;
8-
using osuTK.Graphics;
98

109
namespace osu.Game.Rulesets.Pippidon.Tests
1110
{
@@ -19,7 +18,7 @@ private void load()
1918
new Box
2019
{
2120
RelativeSizeAxes = Axes.Both,
22-
Colour = Color4.Black,
21+
Colour = Colour4.Black,
2322
},
2423
};
2524

Templates/Rulesets/ruleset-example/osu.Game.Rulesets.Pippidon/Beatmaps/PippidonBeatmapConverter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using osu.Game.Rulesets.Objects;
99
using osu.Game.Rulesets.Objects.Types;
1010
using osu.Game.Rulesets.Pippidon.Objects;
11-
using osuTK;
1211

1312
namespace osu.Game.Rulesets.Pippidon.Beatmaps
1413
{

Templates/Rulesets/ruleset-example/osu.Game.Rulesets.Pippidon/Objects/Drawables/DrawablePippidonHitObject.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
using osu.Framework.Graphics.Textures;
1010
using osu.Game.Audio;
1111
using osu.Game.Rulesets.Objects.Drawables;
12-
using osuTK;
13-
using osuTK.Graphics;
1412

1513
namespace osu.Game.Rulesets.Pippidon.Objects.Drawables
1614
{
@@ -73,7 +71,7 @@ protected override void UpdateHitStateTransforms(ArmedState state)
7371

7472
this.ScaleTo(0.8f, duration, Easing.OutQuint);
7573
this.MoveToOffset(new Vector2(0, 10), duration, Easing.In);
76-
this.FadeColour(Color4.Red.Opacity(0.5f), duration / 2, Easing.OutQuint).Then().FadeOut(duration / 2, Easing.InQuint).Expire();
74+
this.FadeColour(Colour4.Red.Opacity(0.5f), duration / 2, Easing.OutQuint).Then().FadeOut(duration / 2, Easing.InQuint).Expire();
7775
break;
7876
}
7977
}

Templates/Rulesets/ruleset-example/osu.Game.Rulesets.Pippidon/Replays/PippidonReplayFrame.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// See the LICENCE file in the repository root for full licence text.
33

44
using osu.Game.Rulesets.Replays;
5-
using osuTK;
65

76
namespace osu.Game.Rulesets.Pippidon.Replays
87
{

Templates/Rulesets/ruleset-example/osu.Game.Rulesets.Pippidon/UI/PippidonCursorContainer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using osu.Framework.Graphics.Sprites;
77
using osu.Framework.Graphics.Textures;
88
using osu.Game.Rulesets.UI;
9-
using osuTK;
109

1110
namespace osu.Game.Rulesets.Pippidon.UI
1211
{

Templates/Rulesets/ruleset-example/osu.Game.Rulesets.Pippidon/UI/PippidonPlayfieldAdjustmentContainer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
using osu.Framework.Graphics;
55
using osu.Game.Rulesets.UI;
6-
using osuTK;
76

87
namespace osu.Game.Rulesets.Pippidon.UI
98
{

0 commit comments

Comments
 (0)