// IltSections.cs - The Infinite Leaftide tabs of RynthAi's Mini Remote and the Guardian panel. // Originally SilentKelpie's ILT Hub sections (RynthAi IltHub/); moved to RynthILT 2026-10-13. // // Banking, Gear, Charms, Games and Vaulted Dungeons are Mini Remote tabs: RynthAi's MiniRemoteHud draws the tab bar // (after its Remote, Pets and Crafting tabs) and asks RynthILT for each tab's body (RynthILT.Hub // GetTabs / RenderTab); "/ra hub open
" picks one, and with RynthCore's sections rail // RynthAi lists them as "section:" views (Inventory). Guardian is a RynthCore ILT panel // instead (the bar's ILT button, next to Bounties; "/rc guardian"), drawn by this plugin through // RynthPluginRenderEmbed("guardian"). The Pets tab is RynthAi's (every server: summoning essences // aren't ILT's); quests are RynthOracle's. // // Character was a Mini Remote tab until 2026-10-13. It moved out: // the character overview and session -> RynthOracle's Character tab ("/ro character"); // the ILT session rates -> RynthCore's Mini Remote "Session Stats" section // (RynthILT's own surface "section:ilt-rates"); // the force-server override -> RynthCore Options > Diagnostics only. // Its names still parse, so old links and commands land on the new home (MovedCommand). Charms and // Banking are Infinite Leaftide's own screens and stay RynthILT's tabs. using System; using System.Numerics; namespace RynthCore.Plugin.RynthILT.Hub; /// ILT sections: the Mini Remote's ILT tabs, the one that moved out, then the Guardian panel. internal enum IltSection { /// Moved out (2026-10-13): RynthOracle's Character tab and the Session Stats section. Character, Banking, Gear, Games, /// /// Vaulted Dungeons keeper (portal-recall gem + kill-client). A Mini Remote tab on ILT worlds only, /// and only while its "Vaulted Dungeons" master switch (/ilt settings, Settings > Navigation) is on. /// VaultedDungeons, /// Registry charms (acquired / status / tier / server) and the Guardian Hand. Charms, // Keep Guardian last. Guardian, } internal static class IltSections { /// The ILT tabs, in tab-bar order (RynthAi puts them after its own tabs). public static readonly IltSection[] Tabs = { IltSection.Banking, IltSection.Gear, IltSection.Charms, IltSection.Games, IltSection.VaultedDungeons, }; /// The Mini Remote's own tab (the remote itself): its tab id. public const string RemoteTab = ""; /// RynthOracle's Character tab: the character overview and this session. public const string OracleCharacterCommand = "/ro character"; public static string Label(IltSection s) => s switch { IltSection.Character => "Character", IltSection.Banking => "Banking", IltSection.Gear => "Gear", IltSection.Games => "Games", IltSection.VaultedDungeons => "Vaulted Dungeons", IltSection.Charms => "Charms", IltSection.Guardian => "Guardian", _ => s.ToString(), }; /// /// The section's tab id: saved as RynthAi's HudState.MiniRemoteTab and sent by the engine's /// dashboard ("/ra hub tab <id>", "/rc miniremote tab <id>"). TryParse reads it back. /// public static string TabId(IltSection s) => s switch { IltSection.Character => "character", IltSection.Banking => "banking", IltSection.Gear => "gear", IltSection.Games => "games", IltSection.VaultedDungeons => "vaulted", IltSection.Charms => "charms", IltSection.Guardian => "guardian", _ => s.ToString().ToLowerInvariant(), }; /// True for the sections drawn as Mini Remote tabs (Banking, Gear, Charms, Games, Vaulted Dungeons). public static bool IsTab(IltSection s) => s is IltSection.Banking or IltSection.Gear or IltSection.Charms or IltSection.Games or IltSection.VaultedDungeons; /// /// Where a section that moved out of the Mini Remote lives now, as the chat command that opens /// it; null for a section that is still RynthILT's (a tab or the Guardian panel). /// public static string? MovedCommand(IltSection s) => s switch { IltSection.Character => OracleCharacterCommand, _ => null, }; /// "quests" / "pets" (and their aliases): not ILT sections (RynthAi's Pets tab, RynthOracle's quests). public static bool IsUniversalTabName(string text) => (text ?? string.Empty).Trim().ToLowerInvariant() switch { "quests" or "quest" or "pets" or "pet" => true, _ => false, }; /// Parses a "/ra hub open" section name (a few aliases accepted). public static bool TryParse(string text, out IltSection section) { switch ((text ?? string.Empty).Trim().ToLowerInvariant()) { case "character": case "char": case "rates": section = IltSection.Character; return true; case "banking": case "bank": section = IltSection.Banking; return true; case "gear": section = IltSection.Gear; return true; case "games": case "game": section = IltSection.Games; return true; case "vaulted": case "vaulteddungeons": case "vaulted-dungeons": section = IltSection.VaultedDungeons; return true; case "charms": case "charm": section = IltSection.Charms; return true; case "guardian": case "temple": case "riddle": section = IltSection.Guardian; return true; default: section = IltSection.Gear; return false; } } /// /// Size of a Mini Remote tab's body (the old section window's default size): the tab draws in a /// child this big, and the Mini Remote (or the engine window hosting it) fits to it. /// public static Vector2 TabSize(IltSection section) => section switch { IltSection.Banking => new Vector2(560, 520), IltSection.Gear => new Vector2(560, 520), IltSection.Charms => new Vector2(560, 520), IltSection.Games => new Vector2(520, 440), IltSection.VaultedDungeons => new Vector2(360, 420), _ => new Vector2(520, 440), }; /// "show" / "hide" / "toggle" (anything else toggles) applied to the current state. public static bool Resolve(string mode, bool current) => (mode ?? string.Empty).ToLowerInvariant() switch { "show" or "on" or "open" => true, "hide" or "off" or "close" => false, _ => !current, }; }