feat(ilt): Guardian panel under the ILT button; Mini Remote hosts the ILT tabs

See Changelog/2026-10-11-mini-remote-ilt-tabs-guardian.md.
This commit is contained in:
BlankenshipG 2026-10-12 00:32:00 -04:00
commit 67688f5be9
10 changed files with 239 additions and 51 deletions

View file

@ -0,0 +1,47 @@
# Mini Remote gets the ILT tabs; Guardian moves under the ILT button
## What changed
- **The Mini Remote window hosts the ILT Hub's sections as tabs.** RynthAi draws them on its
`"miniremote-window"` surface: Remote, then on ILT worlds Character, Quests, Pets, Banking, Gear
and Games. The window already fits itself to the size the plugin asks for, so it refits when the
tab changes.
- **New Guardian panel** (`GuardianFace`) in the ILT section.
- It hosts RynthAi's Temple guardian tools through the new embed surface `"guardian"`.
- It is registered when `RynthCore.Plugin.RynthAi.dll` is installed.
- Like Bounties, it has no bar button of its own. The bar's ILT button lists it, on Infinite
Leaftide only. With Bounties and Guardian both present, the ILT button opens a menu.
- The panel is user-sized (540x520 by default), and the plugin fills its body.
- Until RynthAi can draw it, the body says why: not loaded, not logged in, or the embed failed.
- **`/rc guardian [show|hide|toggle]`** is new. **`/rc bounties`** and **`/rc miniremote`** now
take `show|hide|toggle` too; with no argument they toggle, as before. RynthAi uses these to open
the panels from `/ra guardian window` and `/ra bounty`.
- **`/rc ilt`** also reports whether RynthAi's Guardian panel and ILT tabs are available.
- **RynthAi dashboard, Char launcher.**
- Left-click opens the Mini Remote window on its Character tab.
- Right-click lists the Mini Remote, its six ILT tabs, Guardian (when registered) and
Progression. The old "Mini Remote (ILT Hub)" entry and the per-section windows are gone.
- **Wording.**
- Settings > trace categories: "ILT Hub on" is now "ILT on".
- The Mini Remote drawer tooltip now points to the window's ILT tabs.
- The Skills panel's Progression message now says "ILT features".
## Files
- `src/RynthCore.Engine/ImGui/Panels/GuardianFace.cs`: new.
- `src/RynthCore.Engine/EntryPoint.cs`: registers `GuardianFace` with RynthAi.
- `src/RynthCore.Engine/ImGui/ImGuiBar.cs`: `IltPanels` now includes Guardian.
- `src/RynthCore.Engine/Compatibility/RynthCoreChatCommands.cs`:
- `/rc bounties|guardian|miniremote [show|hide|toggle]`;
- the helpers `TryPanelMode`, `SetPanelOpen` and `IltPanel`;
- the extra `/rc ilt` line.
- `src/RynthCore.Engine/ImGui/Panels/RynthAiFace.cs`: the Char launcher and menu
(`ShowMiniRemoteTab`).
- `src/RynthCore.Engine/ImGui/Panels/RynthAiFace.Drawers.cs`, `SettingsFace.cs`,
`SkillsFace.Progression.cs` and `MiniRemoteFace.cs`: wording and comments.
## Testing
- ItemHudTests: 63 assertions pass.
- Engine and plugin both build in Release.
- In-game checks are listed in the matching RynthSuite changelog.

View file

@ -310,6 +310,33 @@ internal static class RynthCoreChatCommands
return true;
}
// /rc bounties|guardian [show|hide|toggle] : the ILT section's panels, like the bar's
// ILT button (Bounties: the RynthILT plugin's tracker; Guardian: RynthAi's Temple
// guardian tools). Only on Infinite Leaftide with the plugin installed.
if (IsVerb(sub, "bounties", out string panelArgs) || IsVerb(sub, "bounty", out panelArgs) || IsVerb(sub, "bountys", out panelArgs))
{
IltPanel(ImGuiBackend.Panels.BountiesFace.Title, "Bounties", "RynthILT", panelArgs);
return true;
}
if (IsVerb(sub, "guardian", out panelArgs) || IsVerb(sub, "guardians", out panelArgs))
{
IltPanel(ImGuiBackend.Panels.GuardianFace.Title, "Guardian", "RynthAi", panelArgs);
return true;
}
// /rc miniremote [show|hide|toggle] : the ImGui Mini Remote panel, like its bar button
// (RynthAi's dashboard and "/ra hub" use show / hide).
if (IsVerb(sub, "miniremote", out string remoteArgs) || IsVerb(sub, "remote", out remoteArgs))
{
if (!ImGuiBackend.ImGuiPanelHost.HasFace(ImGuiBackend.Panels.MiniRemoteFace.Title))
Reply("The Mini Remote panel isn't available (the ImGui layer is off?).");
else if (!TryPanelMode(remoteArgs, out bool? show))
Reply("Usage: /rc miniremote [show|hide|toggle]");
else
SetPanelOpen(ImGuiBackend.Panels.MiniRemoteFace.Title, show);
return true;
}
switch (sub.ToLowerInvariant())
{
case "rl":
@ -347,28 +374,6 @@ internal static class RynthCoreChatCommands
UI.PanelRouter.Toggle(ImGuiBackend.Panels.ItemCountFace.Title);
return true;
case "bounties":
case "bounty":
case "bountys":
// The ImGui Bounties panel (ILT section: ACECustom bounties, the RynthILT plugin's
// tracker), like the ILT bar button. Only on Infinite Leaftide with RynthILT installed.
if (!ImGuiBackend.ImGuiPanelHost.HasFace(ImGuiBackend.Panels.BountiesFace.Title))
Reply("The Bounties panel isn't available (the RynthILT plugin isn't installed, or the ImGui layer is off).");
else if (!IltInfo.IsIlt && !ImGuiBackend.ImGuiPanelHost.IsOpen(ImGuiBackend.Panels.BountiesFace.Title))
Reply("Bounties are an Infinite Leaftide feature, and this isn't Infinite Leaftide (/rc ilt for why).");
else
UI.PanelRouter.Toggle(ImGuiBackend.Panels.BountiesFace.Title);
return true;
case "remote":
case "miniremote":
// The ImGui Mini Remote panel (open/close), like its bar button.
if (!ImGuiBackend.ImGuiPanelHost.HasFace(ImGuiBackend.Panels.MiniRemoteFace.Title))
Reply("The Mini Remote panel isn't available (the ImGui layer is off?).");
else
UI.PanelRouter.Toggle(ImGuiBackend.Panels.MiniRemoteFace.Title);
return true;
case "resetbar":
case "barreset":
RynthLog.Compat("RynthCoreChatCommands: /rc resetbar — resetting overlay bar position.");
@ -624,9 +629,12 @@ internal static class RynthCoreChatCommands
Reply($"ILT: {(v.IsIlt ? "Infinite Leaftide" : "not Infinite Leaftide")} - {v.Reason}.");
Reply($"Signals: host {ServerInfo.HostDescription}; world name {AccountHooks.AnnouncedWorldName ?? "(not announced)"}; "
+ $"override {IltInfo.Override}. Lists: {IltInfo.ListsDescription}.");
Reply(ImGuiBackend.ImGuiPanelHost.HasFace(ImGuiBackend.Panels.BountiesFace.Title)
? "RynthILT: installed (Bounties: the ILT bar button or /rc bounties)."
: "RynthILT: not installed, so there is no ILT section.");
bool bounties = ImGuiBackend.ImGuiPanelHost.HasFace(ImGuiBackend.Panels.BountiesFace.Title);
bool guardian = ImGuiBackend.ImGuiPanelHost.HasFace(ImGuiBackend.Panels.GuardianFace.Title);
Reply(bounties ? "RynthILT: installed (Bounties: the ILT bar button or /rc bounties)."
: "RynthILT: not installed (no Bounties panel).");
Reply(guardian ? "RynthAi: installed (Guardian: the ILT bar button or /rc guardian; the ILT tabs: the Mini Remote)."
: "RynthAi: not installed (no Guardian panel or ILT tabs).");
}
private static void HandleMasteryCommand()
@ -670,6 +678,42 @@ internal static class RynthCoreChatCommands
Reply(ImGuiBackend.UnderUiLayer.Describe());
}
/// <summary>
/// "" / "toggle" → null (flip), "show" / "on" / "open" → true, "hide" / "off" / "close" →
/// false. False for anything else.
/// </summary>
private static bool TryPanelMode(string args, out bool? show)
{
show = null;
switch (args.Trim().ToLowerInvariant())
{
case "": case "toggle": return true;
case "show": case "on": case "open": show = true; return true;
case "hide": case "off": case "close": show = false; return true;
default: return false;
}
}
/// <summary>Opens (true), closes (false) or toggles (null) an ImGui panel, like its bar button.</summary>
private static void SetPanelOpen(string title, bool? show)
{
if (show == null || show.Value != ImGuiBackend.ImGuiPanelHost.IsOpen(title))
UI.PanelRouter.Toggle(title);
}
/// <summary>"/rc bounties|guardian [show|hide|toggle]": one of the ILT section's panels.</summary>
private static void IltPanel(string title, string label, string plugin, string args)
{
if (!ImGuiBackend.ImGuiPanelHost.HasFace(title))
Reply($"The {label} panel isn't available (the {plugin} plugin isn't installed, or the ImGui layer is off).");
else if (!TryPanelMode(args, out bool? show))
Reply($"Usage: /rc {label.ToLowerInvariant()} [show|hide|toggle]");
else if (show != false && !IltInfo.IsIlt && !ImGuiBackend.ImGuiPanelHost.IsOpen(title))
Reply($"{label} is an Infinite Leaftide feature, and this isn't Infinite Leaftide (/rc ilt for why).");
else
SetPanelOpen(title, show);
}
private static bool IsVerb(string sub, string verb, out string args)
{
args = string.Empty;

View file

@ -1043,10 +1043,13 @@ public static class EntryPoint
ImGuiBackend.Panels.VisionFace.Register();
if (HasPluginDll("RynthCore.Plugin.RynthNav.dll"))
ImGuiBackend.Panels.RynthNavFace.Register();
// The ILT section (Infinite Leaftide): its faces exist only with RynthILT
// installed, and the bar's ILT button shows them only on ILT (IltInfo).
// The ILT section (Infinite Leaftide): each face exists only with its plugin
// installed (Bounties: RynthILT, Guardian: RynthAi), and the bar's ILT button
// shows them only on ILT (IltInfo).
if (HasPluginDll("RynthCore.Plugin.RynthILT.dll"))
ImGuiBackend.Panels.BountiesFace.Register();
if (HasPluginDll("RynthCore.Plugin.RynthAi.dll"))
ImGuiBackend.Panels.GuardianFace.Register();
if (HasPluginDll("RynthCore.Plugin.RynthChat.dll"))
{
ImGuiBackend.Panels.ChatFace.Register();

View file

@ -59,10 +59,11 @@ internal static class ImGuiBar
private static readonly string[] ImGuiOnlyBarPanels =
{ Panels.InventoryFace.Title, Panels.SkillsFace.Title, Panels.SenseFace.Title, Panels.ItemCountFace.Title, Panels.MiniRemoteFace.Title };
// The ILT section: the RynthILT plugin's ImGui-only panels. They never get buttons of their
// own; one ILT button stands for them, shown only on Infinite Leaftide (IltInfo.IsIlt) and
// only for the ones registered (EntryPoint registers them when RynthILT is installed).
private static readonly string[] IltPanels = { Panels.BountiesFace.Title };
// The ILT section: ImGui-only Infinite Leaftide panels (Bounties from RynthILT, Guardian from
// RynthAi). They never get buttons of their own; one ILT button stands for them, shown only
// on Infinite Leaftide (IltInfo.IsIlt) and only for the ones registered (EntryPoint registers
// each when its plugin is installed).
private static readonly string[] IltPanels = { Panels.BountiesFace.Title, Panels.GuardianFace.Title };
// Known panels' icons (DrakBot's where the same window exists); others show their first letter.
private static readonly Dictionary<string, string> PanelIcons = new(StringComparer.OrdinalIgnoreCase)
@ -389,8 +390,8 @@ internal static class ImGuiBar
FacePopup(b.PopupId, b.Title, ImGuiPanelHost.HasFace(b.Title));
}
// The ILT section: one button, only on Infinite Leaftide with RynthILT's panels
// registered. With one panel it toggles that panel; with more it opens a menu.
// The ILT section: one button, only on Infinite Leaftide with ILT panels registered
// (Bounties, Guardian). With one panel it toggles that panel; with more it opens a menu.
int iltCount = IltPanelCount();
if (iltCount > 0)
{

View file

@ -0,0 +1,78 @@
// ============================================================================
// RynthCore.Engine - ImGui/Panels/GuardianFace.cs
// Temple of Enlightenment guardians (riddle answers, Give, the phrasebook),
// drawn by RynthAi through RynthPluginRenderEmbed ("guardian"). Part of the
// ILT section: registered when RynthAi is installed, opened from the bar's ILT
// button or "/rc guardian" on Infinite Leaftide only. ImGui-only.
//
// The panel is user-sized: the plugin fills the body it is given. Until
// RynthAi can draw it (not logged in, too old for the surface, or its embed
// failed) the body says why.
// ============================================================================
using System;
using System.Numerics;
using ImGuiNET;
using RynthCore.Engine.Plugins;
using static RynthCore.Engine.ImGuiBackend.Panels.FaceKit;
namespace RynthCore.Engine.ImGuiBackend.Panels;
internal sealed class GuardianFace : IImGuiPanel
{
public const string Title = "Guardian";
public static void Register() => ImGuiPanelHost.Register(Title,
new PanelSpec(new Vector2(540, 520), new Vector2(320, 220), EdgeToEdge: true, GripInBody: true),
() => new GuardianFace());
/// <summary>The RynthAi surface for this panel (NUL-terminated for the export).</summary>
private static ReadOnlySpan<byte> Surface => "guardian\0"u8;
// Its export failed this session: say so instead of calling it every frame.
private bool _embedOff;
public void OnShown() { }
public void OnHidden() { }
public void Draw()
{
float w = Begin(out Vector2 origin, out Vector2 size);
float h = Math.Max(60f, Remaining(origin, size) - GripOverlap());
Vector2 start = ImGuiNET.ImGui.GetCursorScreenPos();
int result = PluginManager.EmbedFailed;
if (!_embedOff)
{
ImGuiNET.ImGui.PushStyleVar(ImGuiStyleVar.WindowPadding, new Vector2(6, 4));
bool open = ImGuiNET.ImGui.BeginChild("##guardian_rynthai", new Vector2(w, h), ImGuiChildFlags.AlwaysUseWindowPadding,
ImGuiWindowFlags.NoBackground);
ImGuiNET.ImGui.PopStyleVar();
try
{
if (open)
{
// The plugin's widgets use the default UI font, as in its own windows.
ImGuiNET.ImGui.PushFont(ImGuiFonts.Get(UiFont.Ui11));
try { result = PluginManager.RenderEmbed("RynthAi", Surface, ImGuiNET.ImGui.GetContentRegionAvail(), out _); }
finally { ImGuiNET.ImGui.PopFont(); }
}
else result = PluginManager.EmbedDrawn; // clipped: nothing to draw, nothing wrong
}
finally { ImGuiNET.ImGui.EndChild(); }
if (result == PluginManager.EmbedFailed) _embedOff = true;
}
if (result != PluginManager.EmbedDrawn)
{
ImGuiNET.ImGui.SetCursorScreenPos(start + new Vector2(0, 4));
Label(result switch
{
PluginManager.EmbedNoPlugin => "The Guardian tools come with RynthAi; it isn't loaded.",
PluginManager.EmbedFailed => "RynthAi couldn't draw the Guardian tools (this build may be too old). See the log.",
_ => "Waiting for RynthAi (log in; ILT features turn on once the server reports them).",
}, Mute);
}
End(origin, size);
}
}

View file

@ -4,9 +4,11 @@
//
// With RynthAi loaded it hosts RynthAi's Mini Remote (session rates, target,
// summon, item slots, toggles, bank, rebuff, Translate, Guardian and its
// Options menu), drawn by the plugin through RynthPluginRenderEmbed
// ("miniremote-window"). The window fits itself to what the plugin asks for
// whenever that changes (a section shown or hidden, bigger or smaller boxes);
// Options menu, plus on ILT worlds the tabs Character, Quests, Pets, Banking,
// Gear and Games that were the ILT Hub), drawn by the plugin through
// RynthPluginRenderEmbed ("miniremote-window"). The window fits itself to what
// the plugin asks for whenever that changes (another tab, a section shown or
// hidden, bigger or smaller boxes);
// a resize by hand holds until then. While this window shows it, RynthAi keeps
// its own floating copy hidden, so there is one Mini Remote, not two.
//

View file

@ -167,7 +167,7 @@ internal sealed partial class RynthAiFace
public override string TabTooltip(bool right) =>
"Mini Remote: session rates, attack target, summon, item slots, toggles, bank, rebuff, Translate.\n" +
"Its Options button picks the sections and opens the ILT Hub windows (also: right-click Hub).\n" +
"Its Options button picks the sections (also: right-click Hub). The ILT tabs are in the Mini Remote window.\n" +
(right ? "Click to slide it out (to the right: there's no room on the left)." : "Click to slide it out.");
public override float Width(float k) =>

View file

@ -537,12 +537,11 @@ internal sealed partial class RynthAiFace : IImGuiPanel
}
x += bw + LauncherGap;
// Char and Hub open RynthAi's own ImGui overlay windows (Mini Remote, which is the ILT
// Hub, its section windows, Inventory HUDs). They draw only when the engine hands plugins
// its ImGui context.
// Char and Hub open the Mini Remote window (MiniRemoteFace, hosting RynthAi's remote): Char
// on its Character tab (an ILT tab; elsewhere the remote shows), Hub as it was left.
Launcher("##l_char", PhosphorIcons.User, "Char",
"Char. Left-click: ILT Hub / Mini Remote (/ra hub show). Right-click: Hub windows, Progression (Skills panel).",
x, y, bw, labels, () => RynthAiCommands.ApplyRemoteCommand("hub", "show"));
"Char. Left-click: the Mini Remote on its Character tab (ILT worlds). Right-click: the Mini Remote's tabs, Guardian, Progression (Skills panel).",
x, y, bw, labels, () => ShowMiniRemoteTab("character"));
if (ImGuiNET.ImGui.IsItemClicked(ImGuiMouseButton.Right))
{
ImGuiNET.ImGui.SetNextWindowPos(ImGuiNET.ImGui.GetItemRectMin(), ImGuiCond.Always, new Vector2(0, 1));
@ -756,13 +755,23 @@ internal sealed partial class RynthAiFace : IImGuiPanel
// ── Char menu (right-click Char): RynthAi's character windows ──────────
/// <summary>ILT Hub section windows: menu label and the "/ra hub open" section name RynthAi parses.</summary>
/// <summary>The Mini Remote's ILT tabs: menu label and the "/ra hub tab" name RynthAi parses.</summary>
private static readonly (string Label, string Section)[] HubSections =
{
("Character", "character"), ("Quests", "quests"), ("Pets", "pets"),
("Banking", "banking"), ("Gear", "gear"), ("Games", "games"), ("Guardian", "guardian"),
("Banking", "banking"), ("Gear", "gear"), ("Games", "games"),
};
/// <summary>
/// Opens the Mini Remote window on one of its tabs ("" = the remote). RynthAi shows the tab
/// once the server reports that ILT feature on; until then the window shows the remote.
/// </summary>
private static void ShowMiniRemoteTab(string section)
{
ImGuiPanelHost.Open(MiniRemoteFace.Title);
RynthAiCommands.ApplyRemoteCommand("hub", section.Length > 0 ? "tab " + section : "tab");
}
private static void CharMenu()
{
ImGuiNET.ImGui.PushStyleColor(ImGuiCol.PopupBg, ShellBg);
@ -774,15 +783,19 @@ internal sealed partial class RynthAiFace : IImGuiPanel
if (!open) return;
try
{
// The Mini Remote is the ILT Hub; each former Hub tab is its own window (toggled).
if (ImGuiNET.ImGui.MenuItem("Mini Remote (ILT Hub)", "/ra hub"))
RynthAiCommands.ApplyRemoteCommand("hub", "toggle");
// The ILT sections are tabs of the one Mini Remote window; Guardian is an ILT panel.
if (ImGuiNET.ImGui.MenuItem("Mini Remote", "/rc miniremote"))
ShowMiniRemoteTab("");
ImGuiNET.ImGui.Separator();
ImGuiNET.ImGui.TextDisabled("Mini Remote tabs (ILT worlds)");
foreach ((string label, string section) in HubSections)
{
if (ImGuiNET.ImGui.MenuItem(label, "/ra hub open " + section))
RynthAiCommands.ApplyRemoteCommand("hub", "open " + section + " toggle");
ShowMiniRemoteTab(section);
}
if (ImGuiPanelHost.HasFace(GuardianFace.Title)
&& ImGuiNET.ImGui.MenuItem("Guardian", "/rc guardian", ImGuiPanelHost.IsOpen(GuardianFace.Title)))
PanelRouter.Toggle(GuardianFace.Title);
ImGuiNET.ImGui.Separator();
if (ImGuiNET.ImGui.MenuItem("Progression (Skills panel)"))
SkillsFace.ShowProgression();

View file

@ -218,7 +218,7 @@ internal sealed class SettingsFace : IImGuiPanel
}
}
// [All on] [All off] [ILT Hub on], then a 3-column grid of square toggles, one per
// [All on] [All off] [ILT on], then a 3-column grid of square toggles, one per
// RynthAi trace category. Edits the copy's DiagCategories and saves like any other row.
private void TraceCategoriesRow(SettingRow row, float w)
{
@ -234,7 +234,7 @@ internal sealed class SettingsFace : IImGuiPanel
ImGuiNET.ImGui.SameLine(0, 6);
if (ImGuiNET.ImGui.Button("All off")) SaveCategories(TraceCategoryLevels.Set(_data.DiagCategories, "", false));
ImGuiNET.ImGui.SameLine(0, 6);
if (ImGuiNET.ImGui.Button("ILT Hub on")) SaveCategories(TraceCategoryLevels.Set(_data.DiagCategories, "", true, "Ilt"));
if (ImGuiNET.ImGui.Button("ILT on")) SaveCategories(TraceCategoryLevels.Set(_data.DiagCategories, "", true, "Ilt"));
Tooltip(row);
ImGuiNET.ImGui.Dummy(new Vector2(0, 4));

View file

@ -103,7 +103,7 @@ internal sealed partial class SkillsFace
ImGuiNET.ImGui.Dummy(new Vector2(0, 6));
if (info == null || !info.Available)
{
Message("Augmentations and Enlightenment need RynthAi's ILT Hub on an ILT world.", w);
Message("Augmentations and Enlightenment need RynthAi's ILT features on an ILT world.", w);
return;
}
DrawAttrRaiser(info.Attr, w);