Skip to content

Commit b8c17f0

Browse files
committed
Move components to their screen's component folder
1 parent 3178ff8 commit b8c17f0

8 files changed

Lines changed: 11 additions & 8 deletions

File tree

PerformanceCalculatorGUI/Components/BeatmapCard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ private void updateValues() => Scheduler.AddOnce(() =>
217217
if (beatmap?.BeatmapInfo == null)
218218
return;
219219

220-
Ruleset rulesetInstance = ruleset.Value.CreateInstance();
220+
var rulesetInstance = ruleset.Value.CreateInstance();
221221
var displayAttributes = rulesetInstance.GetBeatmapAttributesForDisplay(beatmap.BeatmapInfo, mods.Value).ToList();
222222

223223
// make sure we have enough displays

PerformanceCalculatorGUI/Components/LeaderboardTable.cs renamed to PerformanceCalculatorGUI/Screens/Leaderboard/LeaderboardTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using osu.Game.Overlays.Rankings.Tables;
1414
using osu.Game.Users;
1515

16-
namespace PerformanceCalculatorGUI.Components
16+
namespace PerformanceCalculatorGUI.Screens.Leaderboard
1717
{
1818
public class LeaderboardUser
1919
{

PerformanceCalculatorGUI/Screens/LeaderboardScreen.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
using PerformanceCalculatorGUI.Components;
2525
using PerformanceCalculatorGUI.Components.TextBoxes;
2626
using PerformanceCalculatorGUI.Configuration;
27+
using PerformanceCalculatorGUI.Screens.Leaderboard;
2728

2829
namespace PerformanceCalculatorGUI.Screens
2930
{

PerformanceCalculatorGUI/Components/ProfileSortCriteria.cs renamed to PerformanceCalculatorGUI/Screens/Profile/ProfileSortCriteria.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
22
// See the LICENCE file in the repository root for full licence text.
33

4-
namespace PerformanceCalculatorGUI.Components
4+
namespace PerformanceCalculatorGUI.Screens.Profile
55
{
66
public enum ProfileSortCriteria
77
{

PerformanceCalculatorGUI/Components/UserCard.cs renamed to PerformanceCalculatorGUI/Screens/Profile/UserCard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using osu.Game.Users.Drawables;
1818
using PerformanceCalculatorGUI.Components.TextBoxes;
1919

20-
namespace PerformanceCalculatorGUI.Components
20+
namespace PerformanceCalculatorGUI.Screens.Profile
2121
{
2222
public struct UserCardData
2323
{

PerformanceCalculatorGUI/Screens/ProfileScreen.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
using PerformanceCalculatorGUI.Components;
2929
using PerformanceCalculatorGUI.Components.TextBoxes;
3030
using PerformanceCalculatorGUI.Configuration;
31+
using PerformanceCalculatorGUI.Screens.Profile;
3132
using ButtonState = PerformanceCalculatorGUI.Components.ButtonState;
3233

3334
namespace PerformanceCalculatorGUI.Screens

PerformanceCalculatorGUI/Components/ExtendedUserModSelectOverlay.cs renamed to PerformanceCalculatorGUI/Screens/Simulate/ExtendedUserModSelectOverlay.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using osu.Game.Overlays;
66
using osu.Game.Overlays.Mods;
77

8-
namespace PerformanceCalculatorGUI.Components
8+
namespace PerformanceCalculatorGUI.Screens.Simulate
99
{
1010
public partial class ExtendedUserModSelectOverlay : UserModSelectOverlay
1111
{

PerformanceCalculatorGUI/Components/StrainVisualizer.cs renamed to PerformanceCalculatorGUI/Screens/Simulate/StrainVisualizer.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
using osu.Game.Screens.Edit.Compose.Components.Timeline;
2121
using osuTK;
2222
using osuTK.Graphics;
23+
using PerformanceCalculatorGUI.Components;
2324
using PerformanceCalculatorGUI.Components.TextBoxes;
2425

25-
namespace PerformanceCalculatorGUI.Components
26+
namespace PerformanceCalculatorGUI.Screens.Simulate
2627
{
2728
public partial class StrainVisualizer : Container
2829
{
@@ -245,7 +246,7 @@ private void addTooltipBars(List<float[]> strainLists, int nBars = 1000)
245246

246247
private static List<float[]> getStrainLists(Skill[] skills)
247248
{
248-
List<float[]> strainLists = new List<float[]>();
249+
var strainLists = new List<float[]>();
249250

250251
foreach (var skill in skills)
251252
{
@@ -256,7 +257,7 @@ private static List<float[]> getStrainLists(Skill[] skills)
256257
for (int i = 0; i < strains.Length; i++)
257258
{
258259
double strain = strains[i];
259-
skillStrainList.Add(((float)strain));
260+
skillStrainList.Add((float)strain);
260261
}
261262

262263
strainLists.Add(skillStrainList.ToArray());

0 commit comments

Comments
 (0)