using Cthangover.Core.UI.Tool; using Cthangover.Mods.Interface.Tool; using Godot; namespace Cthangover.Tools.CharactersEditor { /// /// Registers the character editor as a tool: it appears in the main menu's tool /// block and (with ) /// the in-game toolbar. /// public class CharacterEditorToolProvider : IToolProvider { /// Tool id. public string Id => "characters_editor"; /// Display name key. public string LocaleKey => "tools/characters_editor/title"; /// Creates the window. public Window CreateWindow() => new CharacterEditorWindow(); /// Adds the launcher button to the main menu's tool block. public void AddMenuButton(Container container) => ToolMenuButton.Attach(container, this); } }