Character editor: characters of a mod in a searchable list, name in every language, portrait, RPG charset, stats, battle actions; GUI suite characters_editor_edit

This commit is contained in:
cthangover committed 2026-10-23 19:09:46 +02:00
commit c6627a8205
11 files changed
+461

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
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, the novel editor hub and (with <see cref="CharacterEditorToolBoxButton"/>)
/// the in-game toolbar.
/// </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();
/// <summary>Adds the launcher button to the main menu's tool block.</summary>
public void AddMenuButton(Container container) => ToolMenuButton.Attach(container, this);
}
}