Skip to content

Commit

Permalink
API fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xezno committed Dec 10, 2022
1 parent 05e736f commit 0694449
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 49 deletions.
1 change: 0 additions & 1 deletion .addon
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"ResourcePaths": null,
"HasCode": true,
"CodePath": "code",
"RootNamespace": "Tools",
"Metadata": {
"ProjectTemplate": null
}
Expand Down
7 changes: 1 addition & 6 deletions code/AddToolDialog.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using Sandbox;
using System.IO;
using System.Linq;
using System.Threading.Tasks;

namespace Tools;
namespace Editor;

public class AddToolDialog : Dialog
{
Expand Down
8 changes: 2 additions & 6 deletions code/GithubApi.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
3 changes: 1 addition & 2 deletions code/PopupWindow.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;

namespace Tools;
namespace Editor;

public class PopupWindow : BaseWindow
{
Expand Down
2 changes: 1 addition & 1 deletion code/ToolInfoHeader.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Tools;
namespace Editor;

//
// Copied this from base inspector stuff so that things stay consistent,
Expand Down
6 changes: 1 addition & 5 deletions code/ToolInfoPage.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using Sandbox;
using System.IO;
using System.Threading.Tasks;

namespace Tools;
namespace Editor;

internal class ToolInfoPage : Widget
{
Expand Down
2 changes: 1 addition & 1 deletion code/ToolUpdateNotice.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Tools;
namespace Editor;
internal class ToolUpdateNotice : NoticeWidget
{
private int Count;
Expand Down
11 changes: 7 additions & 4 deletions code/ToolsManager.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion code/Types/Github/Release.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

public class Author
Expand Down
3 changes: 1 addition & 2 deletions code/Types/Github/Search.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Tools;
namespace Editor;
public class Repository
{
[JsonPropertyName( "id" )]
Expand Down
5 changes: 2 additions & 3 deletions code/Types/Manifest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System.IO;
using System.Text.Json;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Tools;
namespace Editor;

/// <summary>
/// Contains information about a GitHub repository and the currently downloaded
Expand Down
5 changes: 1 addition & 4 deletions code/Utils/GitUtils.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion code/Utils/LabelExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Tools;
namespace Editor;

public class Heading : Label
{
Expand Down
5 changes: 2 additions & 3 deletions code/Utils/LocalProjectExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.IO;
using System.Text.Json;
using System.Text.Json;

namespace Tools;
namespace Editor;

public static class LocalProjectExtensions
{
Expand Down
6 changes: 1 addition & 5 deletions code/Utils/WidgetExtensions.cs
Original file line number Diff line number Diff line change
@@ -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 )
{
Expand Down
4 changes: 1 addition & 3 deletions code/Widgets/Container.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Tools;

public class Container : Widget
public class Container : Widget
{
public Container( Widget parent ) : base( parent )
{
Expand Down
1 change: 0 additions & 1 deletion tm-manifest.json

This file was deleted.

0 comments on commit 0694449

Please sign in to comment.