RynthSuite/Plugins/RynthCore.Plugin.RynthAi/Huds/MovedTabs.cs
BlankenshipG dc08e1abba feat: SK backlog from test through 2026.11.22.48 (Trade Shop, Oracle, quests, loot, nav)
Squash of test/main-merge-2026-10-25 onto aelrynth main 2026.11.19.1 for the standing sk PR. Includes Trade Shop, Oracle wiki/ILT tracker, quest runs, loot checklist, RynthNav, VTank import. HandWrittenVersion remains 0.5.0-legacy-ui. See Changelog/2026-11-22-sk-backlog-test-merge.md.
2026-11-23 00:08:38 -05:00

62 lines
3.1 KiB
C#

// MovedTabs.cs - Mini Remote tabs that moved out of the Mini Remote (2026-10-13), and where to.
//
// RynthILT's Character, Charms and Banking tabs left the Mini Remote:
// Character, Charms -> RynthOracle's Character tab ("/ro character"): the character, its
// session and the ILT charms list (fed by "RynthILT.Data");
// Banking -> RynthInventory's Global Inventory ("/ginv bank"): every character's
// saved packs and storage (including banks when Include Storage is on).
// RynthCore's Mini Remote "Char" section is "Session Stats" now (RynthAi's session stats, with RynthILT's
// "section:ilt-rates"), and a server is forced only in RynthCore Settings > Game Client ("/rc diagnostics",
// the server picker; on Diagnostics until 2026-11-11).
// Old saved tab ids, links and "/ra hub open|tab <name>" land on the new home through CommandFor.
//
// Pure: the host tests check the mapping offline.
using System;
namespace RynthCore.Plugin.RynthAi.Huds;
internal static class MovedTabs
{
/// <summary>RynthOracle's Character tab.</summary>
public const string OracleCharacter = "/ro character";
/// <summary>RynthOracle's Pet Breeding tab (Infinite Leaftide; the same tracker as the Pets tab's Breeding sub-tab).</summary>
public const string OracleBreeding = "/ro breeding";
/// <summary>RynthInventory's Global Inventory (alias used by the old Banking tab).</summary>
public const string GlobalBank = "/ginv bank";
/// <summary>RynthInventory's Global Inventory window.</summary>
public const string GlobalInventory = "/ginv";
/// <summary>The server picker: RynthCore Settings > Game Client (on Diagnostics until 2026-11-11, hence the name; RynthCore 2026.10.5.54+).</summary>
public const string Diagnostics = "/rc diagnostics";
/// <summary>
/// RynthAi Settings (Advanced Settings): RynthCore's "Settings" panel (SettingsFace.Title), opened
/// by name through "/rc ui open &lt;Panel&gt;" (RynthCoreChatCommands, the generic panel verb).
/// </summary>
public const string Settings = "/rc ui open Settings";
/// <summary>
/// The chat command that opens where tab <paramref name="tab"/> lives now, or null when it is
/// still a Mini Remote tab (or not a tab at all). Case and padding don't matter.
/// </summary>
public static string? CommandFor(string? tab) => (tab ?? string.Empty).Trim().ToLowerInvariant() switch
{
"character" or "char" or "rates" or "charms" or "charm" => OracleCharacter,
"banking" or "bank" => GlobalBank,
_ => null,
};
/// <summary>Where <paramref name="command"/> opens, in words, for chat replies and tooltips.</summary>
public static string HomeOf(string command) => command switch
{
OracleCharacter => "RynthOracle's Character tab",
OracleBreeding => "RynthOracle's Pet Breeding tab",
GlobalBank or GlobalInventory => "Global Inventory",
Diagnostics => "RynthCore Settings > Game Client",
Settings => "RynthAi Settings (Advanced Settings)",
_ => command,
};
}