RynthSuite/Plugins/RynthCore.Plugin.RynthAi/Huds/MovedTabs.cs
BlankenshipG 23efcfee87 feat(suite): ILT Server restore, progress lum/Enl, Oracle Benediction, Handler ring evade
RynthILT: restore RynthILT.Server for Oracle/Mini Remote; aug/enl planners use character AvailableLuminance.
RynthOracle: Asheron Lesser Benediction via lesserbenedictionaug; Skills tabs.
RynthAi: Empyrean Handler lethal-ring back-jump evade (face Handler then xs); pet CD already on sk.
Inventory/Sort: GInv/RSort off bar; inventory links and autostack polish.
2026-10-18 15:59:53 -04:00

56 lines
2.7 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), and a
// server is forced only in RynthCore Options > Diagnostics ("/rc diagnostics").
// 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>RynthCore Options > Diagnostics (the server picker; RynthCore 2026.10.5.54+).</summary>
public const string Diagnostics = "/rc diagnostics";
/// <summary>RynthAi Settings (Advanced Settings panel; RynthCore SettingsFace).</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",
_ => command,
};
}