Build on tools_base and open only from the in-game toolbar
The provider no longer adds a main menu button; the edit suite quits through ApplicationExit.
This commit is contained in:
1 parent
804cb1d8f7
commit
c975b5ae86
3 files changed
+4
-9
No files matched your search
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"src/**/*.cs"
|
"src/**/*.cs"
|
||||||
],
|
],
|
||||||
"depends": [
|
"depends": [
|
||||||
"editor_tools>=1",
|
"tools_base>=1",
|
||||||
"characters_base>=1",
|
"characters_base>=1",
|
||||||
"ui_base>=1"
|
"ui_base>=1"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
using Cthangover.Core.UI.Tool;
|
using Cthangover.Core.UI.Tool;
|
||||||
using Cthangover.Mods.Interface.Tool;
|
|
||||||
using Godot;
|
using Godot;
|
||||||
|
|
||||||
namespace Cthangover.Tools.CharactersEditor
|
namespace Cthangover.Tools.CharactersEditor
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Registers the character editor as a tool: it appears in the main menu's tool
|
/// Registers the character editor window opened from the in-game toolbar
|
||||||
/// block and (with <see cref="CharacterEditorToolBoxButton"/>)
|
/// through <see cref="CharacterEditorToolBoxButton"/>.
|
||||||
/// the in-game toolbar.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CharacterEditorToolProvider : IToolProvider
|
public class CharacterEditorToolProvider : IToolProvider
|
||||||
{
|
{
|
||||||
@@ -19,8 +17,5 @@ namespace Cthangover.Tools.CharactersEditor
|
|||||||
|
|
||||||
/// <summary>Creates the window.</summary>
|
/// <summary>Creates the window.</summary>
|
||||||
public Window CreateWindow() => new CharacterEditorWindow();
|
public Window CreateWindow() => new CharacterEditorWindow();
|
||||||
|
|
||||||
/// <summary>Adds the launcher button to the main menu's tool block.</summary>
|
|
||||||
public void AddMenuButton(Container container) => ToolMenuButton.Attach(container, this);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -215,7 +215,7 @@ namespace Cthangover.Tools.CharactersEditor.Tests
|
|||||||
{
|
{
|
||||||
step = -1;
|
step = -1;
|
||||||
GameLogger.Log("TEST", $"[TEST_RESULT] name=characters_editor_edit passed={passed} failed={failures.Count}");
|
GameLogger.Log("TEST", $"[TEST_RESULT] name=characters_editor_edit passed={passed} failed={failures.Count}");
|
||||||
GetTree().Quit(failures.Count == 0 ? 0 : 1);
|
Cthangover.Core.Bootstrap.ApplicationExit.Quit(GetTree(), failures.Count == 0 ? 0 : 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user