A Dictionary<string,UiElement> registry on UiRoot with RegisterWindow + Show/Hide/Toggle. Show/Hide flip UiElement.Visible (already gates Draw/Tick/HitTest); Toggle returns the new visibility; unknown names are no-ops. WindowNames.Inventory const shared by mount/registry/toggle. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 lines
281 B
C#
8 lines
281 B
C#
namespace AcDream.App.UI;
|
|
|
|
/// <summary>Canonical registry names for top-level retail-UI windows, so the
|
|
/// mount, the window registry, and the toggle keybind all agree on one literal.</summary>
|
|
public static class WindowNames
|
|
{
|
|
public const string Inventory = "inventory";
|
|
}
|