Files
mod_characters_editor/src/CharacterEditorToolProvider.cs
T
cthangover c975b5ae86 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.
2026-10-29 13:21:39 +01:00

22 lines
669 B
C#

using Cthangover.Core.UI.Tool;
using Godot;
namespace Cthangover.Tools.CharactersEditor
{
/// <summary>
/// Registers the character editor window opened from the in-game toolbar
/// through <see cref="CharacterEditorToolBoxButton"/>.
/// </summary>
public class CharacterEditorToolProvider : IToolProvider
{
/// <summary>Tool id.</summary>
public string Id => "characters_editor";
/// <summary>Display name key.</summary>
public string LocaleKey => "tools/characters_editor/title";
/// <summary>Creates the window.</summary>
public Window CreateWindow() => new CharacterEditorWindow();
}
}