Snapshot for release 2026.10.13.2 (internal fa01751)
This commit is contained in:
parent
1d86acdf27
commit
401a8613cd
28 changed files with 428 additions and 105 deletions
|
|
@ -495,7 +495,7 @@ internal static class EngineFrameController
|
|||
{
|
||||
// Plugins only get the ImGui context when they may draw with it: the
|
||||
// ImGui shell (EnableImGuiShell, FORCE-gated) or their own overlay
|
||||
// windows (EnablePluginOverlayWindows: RynthAi's ILT Hub, HUDs, Item
|
||||
// windows (EnablePluginOverlayWindows: RynthAi's Mini Remote, HUDs, Item
|
||||
// Info; RynthPluginRenderOverlay). RynthAi only reads the context for
|
||||
// those windows, so this does not switch it into a legacy-ImGui setup.
|
||||
bool pluginsDraw = Plugins.EngineSettings.EnableImGuiShell
|
||||
|
|
|
|||
|
|
@ -60,10 +60,10 @@ internal static class ImGuiBar
|
|||
{ Panels.InventoryFace.Title, Panels.SkillsFace.Title, Panels.SenseFace.Title, Panels.ItemCountFace.Title, Panels.MiniRemoteFace.Title,
|
||||
Panels.CharactersFace.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).
|
||||
// The ILT section: ImGui-only Infinite Leaftide panels (Bounties and Guardian, both RynthILT's).
|
||||
// They never get buttons of their own; one ILT button stands for them, shown only on Infinite
|
||||
// Leaftide (IltInfo.IsIlt) with RynthILT loaded (IltInfo.PluginLoaded), and only for the ones
|
||||
// registered (EntryPoint registers them when RynthILT 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.
|
||||
|
|
@ -460,7 +460,7 @@ internal static class ImGuiBar
|
|||
int n = 0;
|
||||
foreach (string title in IltPanels)
|
||||
if (ImGuiPanelHost.HasFace(title)) n++;
|
||||
return n > 0 && IltInfo.IsIlt ? n : 0;
|
||||
return n > 0 && IltInfo.IsIlt && IltInfo.PluginLoaded ? n : 0;
|
||||
}
|
||||
|
||||
private static string? FirstIltPanel()
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
// ============================================================================
|
||||
// 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.
|
||||
// drawn by RynthILT through RynthPluginRenderEmbed ("guardian"; RynthAi drew it
|
||||
// until the ILT Hub moved to RynthILT, 2026-10-13, and an older RynthAi still
|
||||
// answers when RynthILT has no Guardian). Part of the ILT section: registered
|
||||
// when RynthILT 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
|
||||
// RynthILT can draw it (not logged in, too old for the surface, or its embed
|
||||
// failed) the body says why.
|
||||
// ============================================================================
|
||||
|
||||
|
|
@ -26,7 +28,7 @@ internal sealed class GuardianFace : IImGuiPanel
|
|||
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>
|
||||
/// <summary>The plugin 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.
|
||||
|
|
@ -45,7 +47,7 @@ internal sealed class GuardianFace : IImGuiPanel
|
|||
if (!_embedOff)
|
||||
{
|
||||
ImGuiNET.ImGui.PushStyleVar(ImGuiStyleVar.WindowPadding, new Vector2(6, 4));
|
||||
bool open = ImGuiNET.ImGui.BeginChild("##guardian_rynthai", new Vector2(w, h), ImGuiChildFlags.AlwaysUseWindowPadding,
|
||||
bool open = ImGuiNET.ImGui.BeginChild("##guardian_rynthilt", new Vector2(w, h), ImGuiChildFlags.AlwaysUseWindowPadding,
|
||||
ImGuiWindowFlags.NoBackground);
|
||||
ImGuiNET.ImGui.PopStyleVar();
|
||||
try
|
||||
|
|
@ -54,7 +56,14 @@ internal sealed class GuardianFace : IImGuiPanel
|
|||
{
|
||||
// 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 _); }
|
||||
try
|
||||
{
|
||||
Vector2 avail = ImGuiNET.ImGui.GetContentRegionAvail();
|
||||
result = PluginManager.RenderEmbed("RynthILT", Surface, avail, out _);
|
||||
// RynthILT without the Guardian (older than the move): an older RynthAi may still draw it.
|
||||
if (result == PluginManager.EmbedNoPlugin)
|
||||
result = PluginManager.RenderEmbed("RynthAi", Surface, avail, out _);
|
||||
}
|
||||
finally { ImGuiNET.ImGui.PopFont(); }
|
||||
}
|
||||
else result = PluginManager.EmbedDrawn; // clipped: nothing to draw, nothing wrong
|
||||
|
|
@ -68,9 +77,9 @@ internal sealed class GuardianFace : IImGuiPanel
|
|||
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).",
|
||||
PluginManager.EmbedNoPlugin => "The Guardian tools come with RynthILT; it isn't loaded.",
|
||||
PluginManager.EmbedFailed => "RynthILT couldn't draw the Guardian tools (this build may be too old). See the log.",
|
||||
_ => "Waiting for RynthILT (log in; ILT features turn on once the server reports them).",
|
||||
}, Mute);
|
||||
}
|
||||
End(origin, size);
|
||||
|
|
|
|||
|
|
@ -258,6 +258,7 @@ internal sealed class HotkeysSettingsUi
|
|||
string group = string.Empty;
|
||||
foreach (HotkeyAction a in HotkeyActions.BuiltIns)
|
||||
{
|
||||
if (!HotkeyActions.Offered(a)) continue; // the ILT panels: only on Infinite Leaftide with RynthILT
|
||||
if (a.Group != group || group.Length == 0 && a == HotkeyActions.BuiltIns[0])
|
||||
{
|
||||
ImGuiNET.ImGui.Separator();
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@
|
|||
//
|
||||
// With RynthAi loaded it hosts RynthAi's Mini Remote (session rates, target,
|
||||
// summon, item slots, toggles, bank, rebuff, Translate, Guardian and its
|
||||
// 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
|
||||
// Options menu, its Quests and Pets tabs, plus on ILT worlds the RynthILT
|
||||
// plugin's tabs Character, Banking, Gear, Charms and Games, which RynthAi asks
|
||||
// RynthILT to draw), 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);
|
||||
|
|
|
|||
|
|
@ -169,7 +169,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 (also: right-click Hub). The ILT tabs are in the Mini Remote window.\n" +
|
||||
"Its Options button picks the sections (also: right-click Hub). RynthILT's 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) =>
|
||||
|
|
|
|||
|
|
@ -660,7 +660,7 @@ internal sealed partial class RynthAiFace : IImGuiPanel
|
|||
x += bw + gap;
|
||||
|
||||
// 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.
|
||||
// on its Character tab (RynthILT's ILT tab; elsewhere the remote shows), Hub as it was left.
|
||||
Launcher("##l_char", PhosphorIcons.User, "Char",
|
||||
"Char. Left-click: the Mini Remote on its Character tab (ILT worlds). Right-click: Character windows (Spells, Quests, Pets, Skills, Inventory...), then Server: this server's plugin windows.",
|
||||
x, y, bw, labels, () => ShowMiniRemoteTab("character"));
|
||||
|
|
@ -886,8 +886,8 @@ internal sealed partial class RynthAiFace : IImGuiPanel
|
|||
|
||||
/// <summary>
|
||||
/// Opens the Mini Remote window on one of its tabs ("" = the remote). Quests and Pets show on
|
||||
/// every server; RynthAi shows an ILT tab once the server reports that feature on, and until
|
||||
/// then the window shows the remote.
|
||||
/// every server; RynthILT's ILT tabs show once the server reports that feature on (and only with
|
||||
/// RynthILT), and until then the window shows the remote.
|
||||
/// </summary>
|
||||
private static void ShowMiniRemoteTab(string section)
|
||||
{
|
||||
|
|
@ -920,7 +920,7 @@ internal sealed partial class RynthAiFace : IImGuiPanel
|
|||
if (ImGuiNET.ImGui.MenuItem("Spells", "/rc spells"))
|
||||
RynthAiCommands.ApplyRemoteCommand("spells", "toggle");
|
||||
ImGuiNET.ImGui.SetItemTooltip("RynthAi Spells: the spell catalog and buff profiles.");
|
||||
// The Mini Remote's universal tabs (every server); its ILT tabs are in the server half.
|
||||
// The Mini Remote's universal tabs (every server); RynthILT's ILT tabs are in the server half.
|
||||
if (ImGuiNET.ImGui.MenuItem("Quests", "/rc miniremote tab quests")) ShowMiniRemoteTab("quests");
|
||||
ImGuiNET.ImGui.SetItemTooltip("The Mini Remote's Quests tab: /myquests timers and favorites (RynthAi).");
|
||||
if (ImGuiNET.ImGui.MenuItem("Pets", "/rc miniremote tab pets")) ShowMiniRemoteTab("pets");
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ internal sealed class SettingsFace : IImGuiPanel
|
|||
}
|
||||
}
|
||||
|
||||
// [All on] [All off] [ILT on], then a 3-column grid of square toggles, one per
|
||||
// [All on] [All off], 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,8 +234,6 @@ internal sealed class SettingsFace : IImGuiPanel
|
|||
if (ImGuiNET.ImGui.Button("All on")) SaveCategories(TraceCategoryLevels.Set(_data.DiagCategories, "", true));
|
||||
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 on")) SaveCategories(TraceCategoryLevels.Set(_data.DiagCategories, "", true, "Ilt"));
|
||||
Tooltip(row);
|
||||
ImGuiNET.ImGui.Dummy(new Vector2(0, 4));
|
||||
|
||||
|
|
|
|||
|
|
@ -3,15 +3,16 @@
|
|||
// The Skills panel's Progression tab, shown on ILT-like worlds only:
|
||||
// - XP planner: exact XP for the next N raises of every attribute and vital,
|
||||
// from the client's XP tables (raising stays on the Attributes & Vitals tab).
|
||||
// - Attribute raiser: infinite attributes past the retail cap. RynthAi reads the
|
||||
// - Attribute raiser: infinite attributes past the retail cap. RynthILT reads the
|
||||
// server's costs ("/xp all") and raises with "/attr", by hand or on a timer from
|
||||
// unassigned XP, in the order and mode set here. Laid out like UB's Leaftide XP
|
||||
// tab: "+1 Level" / "+10 Levels" buttons labelled with their (projected) cost.
|
||||
// - Augmentations: UB's Augs tab - Refresh current (/aug), Current / Target / Inc /
|
||||
// Luminance / Coins with a totals row, Reset targets, Copy Discord / In-Game.
|
||||
// - Augmentations / Enlightenment: RynthAi's ILT Hub planners. RynthAi owns the
|
||||
// math and the saved inputs (UiSources.Progression snapshot); edits and
|
||||
// actions go back as "prog ..." remote commands. /enl and arming
|
||||
// - Augmentations / Enlightenment: the ILT Hub's planners (RynthILT's since
|
||||
// 2026-10-13; RynthAi's before). The plugin owns the math and the saved inputs
|
||||
// (UiSources.Progression snapshot); edits and actions go back as "prog ..."
|
||||
// commands (IltCommands.Progression). /enl and arming
|
||||
// auto-enlighten ask here first; the server still shows its own dialog.
|
||||
// ============================================================================
|
||||
|
||||
|
|
@ -37,11 +38,11 @@ internal sealed partial class SkillsFace
|
|||
private string _progConfirmTitle = "", _progConfirmText = "", _progConfirmYes = "", _progConfirmCommand = "";
|
||||
private bool _progConfirmOpenRequested;
|
||||
|
||||
// Set by ShowProgression (any panel, AC thread); the tab is selected once RynthAi's snapshot
|
||||
// Set by ShowProgression (any panel, AC thread); the tab is selected once RynthILT's snapshot
|
||||
// says it exists (the first poll lands a step after the panel opens).
|
||||
private static bool _progressionRequested;
|
||||
|
||||
/// <summary>RynthAi reports an ILT-like world (its ILT Hub exists and the server has ILT features).</summary>
|
||||
/// <summary>RynthILT reports an ILT-like world (its ILT Hub exists and the server has ILT features).</summary>
|
||||
private static bool ProgressionTabVisible => UiSources.Progression.Current?.Value.Available == true;
|
||||
|
||||
/// <summary>Opens the Skills panel (if closed) on the Progression tab. AC thread.</summary>
|
||||
|
|
@ -75,10 +76,10 @@ internal sealed partial class SkillsFace
|
|||
UiSources.Progression.Unsubscribe();
|
||||
}
|
||||
|
||||
/// <summary>Sends "prog <value>" to RynthAi; the snapshot re-polls after its next tick applies it.</summary>
|
||||
/// <summary>Sends "prog <value>" to RynthILT (an older RynthAi takes it too); the snapshot re-polls after.</summary>
|
||||
private static void SendProg(string value)
|
||||
{
|
||||
RynthAiCommands.ApplyRemoteCommand("prog", value);
|
||||
IltCommands.Progression(value);
|
||||
UiSources.Progression.RequestRefreshAfterPluginTick();
|
||||
}
|
||||
|
||||
|
|
@ -103,7 +104,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 features on an ILT world.", w);
|
||||
Message("Augmentations and Enlightenment need RynthILT's ILT features on an ILT world.", w);
|
||||
return;
|
||||
}
|
||||
DrawAttrRaiser(info.Attr, w);
|
||||
|
|
|
|||
Loading…
Reference in a new issue