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:
cthangover committed 2026-10-29 13:21:39 +01:00
1 parent 804cb1d8f7
commit c975b5ae86
3 files changed
+4 -9

No files matched your search

+2 -7
View File
@@ -1,13 +1,11 @@
using Cthangover.Core.UI.Tool;
using Cthangover.Mods.Interface.Tool;
using Godot;
namespace Cthangover.Tools.CharactersEditor
{
/// <summary>
/// Registers the character editor as a tool: it appears in the main menu's tool
/// block and (with <see cref="CharacterEditorToolBoxButton"/>)
/// the in-game toolbar.
/// Registers the character editor window opened from the in-game toolbar
/// through <see cref="CharacterEditorToolBoxButton"/>.
/// </summary>
public class CharacterEditorToolProvider : IToolProvider
{
@@ -19,8 +17,5 @@ namespace Cthangover.Tools.CharactersEditor
/// <summary>Creates the window.</summary>
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);
}
}