feat(suite): Vaulted Dungeons tab, Oracle breeding/charms, Mini Remote Options

Port tonight's Suite work onto standing sk for upstream release prep: ILT Vaulted Dungeons (Options-gated), chat 0x1C channels, Oracle Charms/Pet Breeding, Mini Remote Options opens Settings. HandWrittenVersion stays 0.5.0-legacy-ui.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BlankenshipG 2026-10-16 00:55:13 -04:00
commit 0532d8d981
43 changed files with 2129 additions and 197 deletions

View file

@ -8,9 +8,8 @@ namespace RynthCore.Plugin.RynthOracle.Views;
/// <summary>
/// Character: level and experience, luminance, the status summary (upstream's Status HUD: buff,
/// house, beer, page and rare timers, key skills, aetheria surges), RynthAi's session (the generic
/// part of the Mini Remote's old Character tab, moved here 2026-10-13) and the full buff list.
/// Infinite Leaftide's charms stay RynthILT's (its Charms tab in the Mini Remote).
/// house, beer, page and rare timers, key skills, aetheria surges), RynthAi's session, RynthILT's
/// charms (the Mini Remote's Character and Charms tabs moved here 2026-10-13) and the full buff list.
/// </summary>
internal sealed partial class OracleView
{
@ -57,6 +56,7 @@ internal sealed partial class OracleView
Field(w, "Summoning", SkillText(c.Summoning), 300f, 400f);
DrawSession(w);
DrawCharms(w);
var list = new List<ActiveEnchantment>(c.Enchantments);
list.Sort((a, b) => a.Remaining.CompareTo(b.Remaining));
@ -105,6 +105,97 @@ internal sealed partial class OracleView
private static string RateText(double perHour) => perHour > 0 ? TimeText.Number((long)Math.Round(perHour)) : "0";
/// <summary>
/// "Charms": RynthILT's Infinite Leaftide charm list (the Mini Remote's old Charms tab), with a
/// Toggle for each carried charm and Guardian Hand. Nothing is listed here: RynthILT sends the
/// list, so a charm it learns about shows up without an Oracle update.
/// </summary>
private void DrawCharms(UiWindow w)
{
Shared.IltCharmsView v = _c.Charms;
if (!v.Loaded)
{
if (_c.Server.Is(ServerTags.InfiniteLeaftide))
{
w.SeparatorText("Charms");
w.TextDisabled("Load RynthILT to list your Infinite Leaftide charms here.");
}
return;
}
if (!v.Available) return; // not an ILT world: no charms
w.SeparatorText("Charms");
w.TextDisabled($"{v.Acquired} acquired, {v.Active} on (from RynthILT{(v.World.Length > 0 ? ", " + v.World : "")}).");
if (_c.CharmMessage.Length > 0) w.TextDisabled(_c.CharmMessage);
if (w.CollapsingHeader($"Charms ({v.Charms.Count})", "c.charms", defaultOpen: true))
{
if (v.Charms.Count == 0) w.TextDisabled("RynthILT hasn't listed any charms yet.");
for (int i = 0; i < v.Charms.Count; i++)
{
Shared.IltCharmRow r = v.Charms[i];
CharmState(w, r.Active);
w.SameLine(50f);
if (r.Carried) w.Text(Cut(r.Name, 30));
else w.TextDisabled(Cut(r.Name, 30));
if (r.Effect.Length > 0) w.Tooltip(r.Effect);
w.SameLine(270f);
w.TextDisabled(r.MaxTier > 0 ? $"T{r.Tier}/{r.MaxTier}" : r.Tier > 0 ? $"T{r.Tier}" : "-");
w.SameLine(330f);
w.TextDisabled(AcquiredText(r));
if (r.Server == "off")
{
w.SameLine(430f);
w.TextColored(UiColors.Red, "server off");
}
if (r.Carried && r.ToggleId != 0)
{
w.SameLine(510f);
uint id = r.ToggleId;
w.SmallButton("Toggle", "c.charm." + i, () => _c.ToggleCharm(id));
}
}
}
if (v.Hands.Count > 0 && w.CollapsingHeader($"Guardian Hands ({v.Hands.Count})", "c.hands", defaultOpen: true))
{
for (int i = 0; i < v.Hands.Count; i++)
{
Shared.IltHandRow h = v.Hands[i];
CharmState(w, h.Active);
w.SameLine(50f);
w.Text(Cut(h.Name, 30));
if (h.Server == "off")
{
w.SameLine(430f);
w.TextColored(UiColors.Red, "server off");
}
w.SameLine(510f);
uint id = h.Id;
w.SmallButton("Toggle", "c.hand." + i, () => _c.ToggleCharm(id));
}
}
}
/// <summary>ON in green, OFF in red, "?" in grey (status not read yet).</summary>
private static void CharmState(UiWindow w, string active)
{
switch (active)
{
case "on": w.TextColored(UiColors.Green, "ON"); break;
case "off": w.TextColored(UiColors.Red, "OFF"); break;
default: w.TextColored(UiColors.Grey, "?"); break;
}
}
/// <summary>Carried (with the count), stored (seen on this character before) or not acquired.</summary>
internal static string AcquiredText(Shared.IltCharmRow r) => r.Acquired switch
{
"carried" => r.Count > 1 ? $"carried x{r.Count}" : "carried",
"seen" => r.LastSeen.Length > 0 ? "seen " + r.LastSeen : "seen",
_ => "not acquired",
};
/// <summary>
/// The buff timer: the soonest-ending long (over 15 minutes) buff that isn't a beer, a debuff
/// or one of the not-really-buffs, with how many there are (upstream's rule).