diff --git a/.addon b/.addon index 30dc596..d5fbade 100644 --- a/.addon +++ b/.addon @@ -10,7 +10,6 @@ "ResourcePaths": null, "HasCode": true, "CodePath": "code", - "RootNamespace": "Tools", "Metadata": { "ProjectTemplate": null } diff --git a/code/AddToolDialog.cs b/code/AddToolDialog.cs index 192a7df..60bf3f2 100644 --- a/code/AddToolDialog.cs +++ b/code/AddToolDialog.cs @@ -1,9 +1,4 @@ -using Sandbox; -using System.IO; -using System.Linq; -using System.Threading.Tasks; - -namespace Tools; +namespace Editor; public class AddToolDialog : Dialog { diff --git a/code/GithubApi.cs b/code/GithubApi.cs index 62fdc45..7c2f20f 100644 --- a/code/GithubApi.cs +++ b/code/GithubApi.cs @@ -1,11 +1,7 @@ -using Sandbox; -using System; -using System.Collections.Generic; -using System.Linq; +using System; using System.Net.Http; -using System.Threading.Tasks; -namespace Tools; +namespace Editor; public static class GithubApi { diff --git a/code/PopupWindow.cs b/code/PopupWindow.cs index ca95d1b..14b7d29 100644 --- a/code/PopupWindow.cs +++ b/code/PopupWindow.cs @@ -1,7 +1,6 @@ using System; -using System.Collections.Generic; -namespace Tools; +namespace Editor; public class PopupWindow : BaseWindow { diff --git a/code/ToolInfoHeader.cs b/code/ToolInfoHeader.cs index e4fd9dd..4f7fdf6 100644 --- a/code/ToolInfoHeader.cs +++ b/code/ToolInfoHeader.cs @@ -1,4 +1,4 @@ -namespace Tools; +namespace Editor; // // Copied this from base inspector stuff so that things stay consistent, diff --git a/code/ToolInfoPage.cs b/code/ToolInfoPage.cs index 9a6209a..0a0f31a 100644 --- a/code/ToolInfoPage.cs +++ b/code/ToolInfoPage.cs @@ -1,8 +1,4 @@ -using Sandbox; -using System.IO; -using System.Threading.Tasks; - -namespace Tools; +namespace Editor; internal class ToolInfoPage : Widget { diff --git a/code/ToolUpdateNotice.cs b/code/ToolUpdateNotice.cs index 22d8056..0e4abe9 100644 --- a/code/ToolUpdateNotice.cs +++ b/code/ToolUpdateNotice.cs @@ -1,4 +1,4 @@ -namespace Tools; +namespace Editor; internal class ToolUpdateNotice : NoticeWidget { private int Count; diff --git a/code/ToolsManager.cs b/code/ToolsManager.cs index 2ad1363..4ebd105 100644 --- a/code/ToolsManager.cs +++ b/code/ToolsManager.cs @@ -1,7 +1,10 @@ -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Tools; +global using Editor; +global using Sandbox; +global using System.Collections.Generic; +global using System.Diagnostics; +global using System.IO; +global using System.Linq; +global using System.Threading.Tasks; [Tool( "Tools Manager", "hardware", "Manages your tools." )] public class ToolsManager : BaseWindow diff --git a/code/Types/Github/Release.cs b/code/Types/Github/Release.cs index f92434b..0d6dd25 100644 --- a/code/Types/Github/Release.cs +++ b/code/Types/Github/Release.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Text.Json.Serialization; public class Author diff --git a/code/Types/Github/Search.cs b/code/Types/Github/Search.cs index 4cfe8f4..12249d3 100644 --- a/code/Types/Github/Search.cs +++ b/code/Types/Github/Search.cs @@ -1,8 +1,7 @@ using System; -using System.Collections.Generic; using System.Text.Json.Serialization; -namespace Tools; +namespace Editor; public class Repository { [JsonPropertyName( "id" )] diff --git a/code/Types/Manifest.cs b/code/Types/Manifest.cs index 0b834f9..24fd567 100644 --- a/code/Types/Manifest.cs +++ b/code/Types/Manifest.cs @@ -1,8 +1,7 @@ -using System.IO; -using System.Text.Json; +using System.Text.Json; using System.Text.Json.Serialization; -namespace Tools; +namespace Editor; /// /// Contains information about a GitHub repository and the currently downloaded diff --git a/code/Utils/GitUtils.cs b/code/Utils/GitUtils.cs index f1d3c0f..3c38c9d 100644 --- a/code/Utils/GitUtils.cs +++ b/code/Utils/GitUtils.cs @@ -1,9 +1,6 @@ using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Threading.Tasks; -namespace Tools; +namespace Editor; public static class GitUtils { diff --git a/code/Utils/LabelExtensions.cs b/code/Utils/LabelExtensions.cs index 3c10abc..58dceaf 100644 --- a/code/Utils/LabelExtensions.cs +++ b/code/Utils/LabelExtensions.cs @@ -1,4 +1,4 @@ -namespace Tools; +namespace Editor; public class Heading : Label { diff --git a/code/Utils/LocalProjectExtensions.cs b/code/Utils/LocalProjectExtensions.cs index 6fa7ee2..34cf578 100644 --- a/code/Utils/LocalProjectExtensions.cs +++ b/code/Utils/LocalProjectExtensions.cs @@ -1,7 +1,6 @@ -using System.IO; -using System.Text.Json; +using System.Text.Json; -namespace Tools; +namespace Editor; public static class LocalProjectExtensions { diff --git a/code/Utils/WidgetExtensions.cs b/code/Utils/WidgetExtensions.cs index 895b0f9..01970d7 100644 --- a/code/Utils/WidgetExtensions.cs +++ b/code/Utils/WidgetExtensions.cs @@ -1,8 +1,4 @@ -using System.IO; -using System.Linq; -using Tools; - -public static class WidgetExtensions +public static class WidgetExtensions { public static void SetStylesheet( this Widget widget, string path ) { diff --git a/code/Widgets/Container.cs b/code/Widgets/Container.cs index 7664af7..120f14e 100644 --- a/code/Widgets/Container.cs +++ b/code/Widgets/Container.cs @@ -1,6 +1,4 @@ -using Tools; - -public class Container : Widget +public class Container : Widget { public Container( Widget parent ) : base( parent ) { diff --git a/tm-manifest.json b/tm-manifest.json deleted file mode 100644 index 1bc3192..0000000 --- a/tm-manifest.json +++ /dev/null @@ -1 +0,0 @@ -{"repo":"xezno/sbox-tools-manager","description":"Manages your tools.","release_version":null,"release_name":null,"release_description":null,"auto_update":true} \ No newline at end of file