Some clean up
This commit is contained in:
parent
dc61362d82
commit
95998e0f52
@ -19,7 +19,7 @@ public partial class GodotCogwheelConsole : Control, ICogwheelConsole
|
|||||||
{"error", new Color(1, 0, 0)},
|
{"error", new Color(1, 0, 0)},
|
||||||
{"warning", new Color(1, 1, 0)},
|
{"warning", new Color(1, 1, 0)},
|
||||||
{"log", new Color(1, 1, 1)},
|
{"log", new Color(1, 1, 1)},
|
||||||
{"info", new Color(0, 0, 1)},
|
{"info", new Color(0, 0.3f, 1)},
|
||||||
{"commandHighlight", new Color(0, 0.8f, 0.4f)},
|
{"commandHighlight", new Color(0, 0.8f, 0.4f)},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ namespace ADEPT.Core;
|
|||||||
public partial class Main : Node
|
public partial class Main : Node
|
||||||
{
|
{
|
||||||
private static CommandsManager _commandsManager;
|
private static CommandsManager _commandsManager;
|
||||||
private static ICogwheelConsole _cogwheelConsole;
|
private static GodotCogwheelConsole _cogwheelConsole;
|
||||||
|
|
||||||
public CanvasLayer MainCanvas { get; private set; }
|
public CanvasLayer MainCanvas { get; private set; }
|
||||||
|
|
||||||
@ -28,10 +28,12 @@ public partial class Main : Node
|
|||||||
_commandsManager.AddAssembly(Assembly.GetAssembly(typeof(CommandsManager)));
|
_commandsManager.AddAssembly(Assembly.GetAssembly(typeof(CommandsManager)));
|
||||||
|
|
||||||
COGWHEEL.Initialize(_commandsManager, _cogwheelConsole);
|
COGWHEEL.Initialize(_commandsManager, _cogwheelConsole);
|
||||||
|
|
||||||
GD.Print("ADEPT initialized.");
|
|
||||||
|
|
||||||
COGWHEEL.RegisterObject(this);
|
COGWHEEL.RegisterObject(this);
|
||||||
|
|
||||||
|
_cogwheelConsole.LogInfo("COGWHEEL " + " initialized.");
|
||||||
|
_cogwheelConsole.LogInfo("ADEPT " + ADEPT.Constants.Version + " initialized.");
|
||||||
|
_cogwheelConsole.LogInfo("Type 'list' for a list of commands.");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command(Name = "test", Description = "Test command.")]
|
[Command(Name = "test", Description = "Test command.")]
|
||||||
|
Reference in New Issue
Block a user