Skip to content

Commit 132af14

Browse files
committed
Run cc
1 parent 3eb95b0 commit 132af14

18 files changed

Lines changed: 12 additions & 36 deletions

Common/Configs/Config.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using Terraria.ModLoader.Config;
44
using UICustomizer.MainMenu.Helpers;
55
using UICustomizer.MainMenu.Hooks;
6-
using UICustomizer.MainMenu.UI;
76

87
namespace UICustomizer.Common.Configs
98
{

EditMode/Helpers/DefaultLayouts.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
using System.Collections.Generic;
22
using System.IO;
3-
using static UICustomizer.Edit.Helpers.ElementHelper;
4-
using static UICustomizer.Edit.Helpers.MapThemeHelper;
5-
using static UICustomizer.Edit.Helpers.ResourceThemeHelper;
63

7-
namespace UICustomizer.Edit.Helpers
4+
namespace UICustomizer.EditMode.Helpers
85
{
96
public static class DefaultLayouts
107
{

EditMode/Helpers/ElementHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections.Generic;
22

3-
namespace UICustomizer.Edit.Helpers
3+
namespace UICustomizer.EditMode.Helpers
44
{
55
public static class ElementHelper
66
{

EditMode/Helpers/FileHelper.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
using System.IO;
55
using System.Linq;
66
using Terraria;
7-
using UICustomizer.EditMode.Helpers;
87
using UICustomizer.EditMode.Hooks;
98

10-
namespace UICustomizer.Helpers.Layouts
9+
namespace UICustomizer.EditMode.Helpers
1110
{
1211
/// <summary>
1312
/// Handles file I/O operations for UICustomizer layouts.
@@ -48,14 +47,14 @@ public static string LoadLastLayoutName()
4847

4948
public static void CreateAndOpenNewLayoutFile(string layoutName)
5049
{
51-
string basePath = FileHelper.GetLayoutFilePath(layoutName);
50+
string basePath = GetLayoutFilePath(layoutName);
5251
string path = basePath;
5352
int counter = 1;
5453

5554
// Generate unique filename if needed
5655
while (File.Exists(path))
5756
{
58-
path = FileHelper.GetLayoutFilePath($"{layoutName}{counter}");
57+
path = GetLayoutFilePath($"{layoutName}{counter}");
5958
counter++;
6059
}
6160

@@ -102,7 +101,7 @@ public static void CreateAndOpenNewLayoutFile(string layoutName)
102101

103102
public static List<string> GetLayouts()
104103
{
105-
string folder = FileHelper.GetLayoutsFolderPath();
104+
string folder = GetLayoutsFolderPath();
106105
if (!Directory.Exists(folder))
107106
{
108107
Log.Warn($"Layouts folder does not exist: {folder}");

EditMode/Helpers/LayoutData.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
using System.Collections.Generic;
22
using Newtonsoft.Json.Converters;
3-
using static UICustomizer.Edit.Helpers.ElementHelper;
4-
using static UICustomizer.Edit.Helpers.MapThemeHelper;
5-
using static UICustomizer.Edit.Helpers.ResourceThemeHelper;
63

7-
namespace UICustomizer.Edit.Helpers
4+
namespace UICustomizer.EditMode.Helpers
85
{
96
public class LayoutData
107
{

EditMode/Helpers/LayoutHelper.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
using System.Linq;
55
using Newtonsoft.Json;
66
using UICustomizer.EditMode.Hooks;
7-
using UICustomizer.Helpers.Layouts;
8-
using static UICustomizer.Edit.Helpers.ElementHelper;
9-
using static UICustomizer.Helpers.Layouts.ElementHelper;
10-
using static UICustomizer.Helpers.Layouts.MapThemeHelper;
11-
using static UICustomizer.Helpers.Layouts.ResourceThemeHelper;
127

138
namespace UICustomizer.EditMode.Helpers
149
{

EditMode/Helpers/MapThemeHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Linq;
22
using Terraria;
33

4-
namespace UICustomizer.Edit.Helpers
4+
namespace UICustomizer.EditMode.Helpers
55
{
66
public static class MapThemeHelper
77
{

EditMode/Helpers/ResourceThemeHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Terraria;
22

3-
namespace UICustomizer.Edit.Helpers
3+
namespace UICustomizer.EditMode.Helpers
44
{
55
public static class ResourceThemeHelper
66
{

EditMode/Old/LayoutsTab.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using UICustomizer.EditMode.Helpers;
88
using UICustomizer.EditMode.System;
99

10-
namespace UICustomizer.EditMode.UI.Old
10+
namespace UICustomizer.EditMode.Old
1111
{
1212
public class LayoutsTab : Tab
1313
{

EditMode/System/EditState.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Microsoft.Xna.Framework.Graphics;
22
using Terraria.UI;
3-
using UICustomizer.EditMode.UI;
43

54
namespace UICustomizer.EditMode.System
65
{

0 commit comments

Comments
 (0)