From 6eb0d1e3bba2bda39f3b54ed7f28b44188e534e5 Mon Sep 17 00:00:00 2001 From: BlankenshipG Date: Thu, 8 Oct 2026 11:20:10 -0400 Subject: [PATCH 1/4] feat(loot): Add-to-loot T11 tooltip covers stamped tier and gear grade (2026.10.5.20) Pairs with RynthAi 0.5.26, which reads ACECustom's new T11 item state (ZcTier / WeaponAugScale* properties, Gear Grade, property slots, Tainted, jewelry Cast on Strike). The new loot keys and the Gear Grade value table arrive through the editor vocabulary; only the "Include T11 attributes" tooltip text changes here. Co-authored-by: Cursor --- ...-08-release-2026.10.5.20-t11-item-state.md | 28 +++++++++++++++++++ .../ImGui/Panels/LootAddDialog.cs | 8 ++++-- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 Changelog/2026-10-08-release-2026.10.5.20-t11-item-state.md diff --git a/Changelog/2026-10-08-release-2026.10.5.20-t11-item-state.md b/Changelog/2026-10-08-release-2026.10.5.20-t11-item-state.md new file mode 100644 index 0000000..3cdff30 --- /dev/null +++ b/Changelog/2026-10-08-release-2026.10.5.20-t11-item-state.md @@ -0,0 +1,28 @@ +# RynthCore engine 2026.10.5.20 - Add-to-loot text for the new T11 item state + +**Date:** 2026-10-08 +**Previous release:** 2026.10.5.18 (2026.10.5.19 is reserved by the Skills augments-tab work on +`feat/skills-augments-tab`, not yet released) +**Branch:** `QOL-items` +**Pairs with:** RynthAi 0.5.26-legacy-ui + +## Why + +RynthAi 0.5.26 reads the T11 state ACECustom added in its endgame updates: the stamped loot tier +(`ZcTier` 50109, `WeaponAugScaleTier` 9061), the weapon quality roll (`WeaponAugScaleQuality` 9060), +Gear Grade, property slots, Tainted and the jewelry Cast on Strike. "Add to loot profile" with +"Include T11 attributes" now adds the stamped tier and Gear Grade, so the checkbox tooltip had to say so. + +## What changed + +- `ImGui/Panels/LootAddDialog.cs`: the "Include T11 attributes" tooltip lists the server's stamped tier, + gear grade, and that property slots / Tainted are not added. +- No engine-side key tables changed: the new loot keys (T11: Gear Grade, Tier Is Exact, Property + Slots, Tainted, T11 Mod: Cast on Strike, and the named ZcTier / WeaponAugScale* properties) and the + Gear Grade letter table come from RynthAi's editor vocabulary, so the loot editor face shows them + as soon as RynthAi 0.5.26 is loaded. + +## Build + +- `scripts/Publish-EngineCoreClr.ps1 -EngineOnly -MsBuildArgs @('-p:Version=2026.10.5.20')` +- Previous live engine saved to `C:\Games\RynthCore\PreviousReleases\2026.10.5.18-engine\`. diff --git a/src/RynthCore.Engine/ImGui/Panels/LootAddDialog.cs b/src/RynthCore.Engine/ImGui/Panels/LootAddDialog.cs index 0c77514..a0fe2b2 100644 --- a/src/RynthCore.Engine/ImGui/Panels/LootAddDialog.cs +++ b/src/RynthCore.Engine/ImGui/Panels/LootAddDialog.cs @@ -269,9 +269,11 @@ internal sealed class LootAddDialog } if (ImGuiNET.ImGui.IsItemHovered()) ImGuiNET.ImGui.SetTooltip( - "Also require this item's T11 tier, weapon grade, damage %, every modifier, slot special\n" + - "and Cast on Strike, each at least as good as this one. Works with any match.\n" + - "Not added: Can Wield (depends on your character) and Zone Locked (depends on where it was assessed)."); + "Also require this item's T11 tier (the server's stamped tier when it sends one), weapon grade,\n" + + "damage %, gear grade, every modifier, slot special and Cast on Strike, each at least as good\n" + + "as this one. Works with any match.\n" + + "Not added: Can Wield (depends on your character), Zone Locked (depends on where it was assessed),\n" + + "and property slots / Tainted (bag state, not quality)."); if (!d.IsT11) { ImGuiNET.ImGui.SameLine(); From d46cd9114bf2330df4ae1fe4fc82b9e864603038 Mon Sep 17 00:00:00 2001 From: BlankenshipG Date: Thu, 8 Oct 2026 21:38:09 -0400 Subject: [PATCH 2/4] feat(dashboard): Mini Remote drawer on the RynthAi dashboard (2026.10.5.21) A fourth left-edge drawer holds RynthAi's whole Mini Remote (rates, target and summon bars, item slots, toggles, bank, rebuff, Translate, Guardian) with its Options menu. Right-click Hub opens it, as right-click Patrol opens the Patrol drawer; popped out it shows the floating Mini Remote. New optional plugin export RynthPluginRenderEmbed: the plugin draws a named surface into the engine's current ImGui window on the render thread and reports the size it wants. No RynthCoreAPI change. Pairs with RynthAi 0.5.27. Co-authored-by: Cursor --- ...release-2026.10.5.21-mini-remote-drawer.md | 56 +++++++++++++ .../ImGui/Panels/DashboardDrawers.cs | 4 +- .../ImGui/Panels/RynthAiFace.Drawers.cs | 84 +++++++++++++++++++ .../ImGui/Panels/RynthAiFace.cs | 16 +++- src/RynthCore.Engine/Plugins/LoadedPlugin.cs | 8 ++ .../Plugins/PluginContract.cs | 7 ++ src/RynthCore.Engine/Plugins/PluginLoader.cs | 3 + src/RynthCore.Engine/Plugins/PluginManager.cs | 45 ++++++++++ .../UI/RynthAiDashboardState.cs | 21 ++++- 9 files changed, 236 insertions(+), 8 deletions(-) create mode 100644 Changelog/2026-10-08-release-2026.10.5.21-mini-remote-drawer.md diff --git a/Changelog/2026-10-08-release-2026.10.5.21-mini-remote-drawer.md b/Changelog/2026-10-08-release-2026.10.5.21-mini-remote-drawer.md new file mode 100644 index 0000000..c5dd3d6 --- /dev/null +++ b/Changelog/2026-10-08-release-2026.10.5.21-mini-remote-drawer.md @@ -0,0 +1,56 @@ +# RynthCore 2026.10.5.21: Mini Remote drawer on the RynthAi dashboard + +Released 2026-10-08. Previous release: 2026.10.5.20 (T11 item state tooltip). +Pairs with RynthAi 0.5.27-legacy-ui. + +## What's new + +- **Mini Remote drawer.** The RynthAi dashboard has a fourth left-edge drawer, + under Ranges, Loaded files and Patrol. It holds RynthAi's whole Mini Remote: + - session rates with Reset XP / Report + - the attack target and summon health bars, with the summon's time left + - the 5 x 6 item slots (click to use, right-click to assign, drag items in) + - the macro toggles, bank balances and rebuff buttons + - the Translate row and the Guardian answer +- **Options inside the drawer.** The remote's Options button, or a right-click on + it, opens the same menu as the floating window: which sections show, the ILT Hub + windows, horizontal layout, Inventory HUDs setup, and "Floating window too". +- **Opening it.** Use the drawer tab, or right-click the **Hub** launcher (as + right-clicking Patrol opens its drawer). Left-click Hub still toggles the floating + Mini Remote. On a popped-out dashboard (no drawers), right-click Hub shows the + floating Mini Remote. +- The drawer sizes itself to the remote: one column when stacked, three side by side + in horizontal layout. It is never taller than the screen; past that it scrolls. +- The drawer's open / closed state is saved with the dashboard, as line 11 of + `rynthai_avalonia.cache`. + +## Changed + +- Right-click **Hub** no longer opens Inventory HUDs setup directly. It is in the + Mini Remote's Options menu (and `/ra huds`). + +## Plugin API + +- New optional plugin export: + `int RynthPluginRenderEmbed(const char* surface, float width, float height, float* wantWidth, float* wantHeight)` + (Cdecl). + - The engine calls it on the render thread, inside a child window of the size + given, in the main ImGui context. + - The plugin draws the named UTF-8 surface there and reports the content size it + wants. + - Returns 1 if it drew, 0 if it isn't ready or doesn't know the surface. +- The export is resolved at load, like `RynthPluginRenderOverlay`. + - A plugin without it shows a "needs RynthAi 0.5.27 or later" note in the drawer. + - If it throws, the export is switched off for the session; the plugin keeps + running. +- No `RynthCoreAPI` struct change; the API version is unchanged. + +## Files + +- `ImGui/Panels/RynthAiFace.Drawers.cs`: `RemoteDrawer`. +- `ImGui/Panels/RynthAiFace.cs`: the drawer added to the dashboard; Hub right-click. +- `ImGui/Panels/DashboardDrawers.cs`: header comment. +- `Plugins/PluginManager.cs`: `RenderEmbed` (render thread, login gated). +- `Plugins/LoadedPlugin.cs`, `Plugins/PluginLoader.cs`: `RenderEmbedPtr`. +- `Plugins/PluginContract.cs`: export documented. +- `UI/RynthAiDashboardState.cs`: `RemoteOpen` (cache line 11). diff --git a/src/RynthCore.Engine/ImGui/Panels/DashboardDrawers.cs b/src/RynthCore.Engine/ImGui/Panels/DashboardDrawers.cs index 00af2e3..cca13f5 100644 --- a/src/RynthCore.Engine/ImGui/Panels/DashboardDrawers.cs +++ b/src/RynthCore.Engine/ImGui/Panels/DashboardDrawers.cs @@ -10,8 +10,8 @@ // // The mechanics live here (tabs, slide, side, placement, the one window); // each drawer only draws its panel (DashboardDrawer.DrawPanel) and says how -// big it is. Drawers today: Ranges (RangesSlideOut.cs), Loaded files and -// Patrol (RynthAiFace.Drawers.cs). +// big it is. Drawers today: Ranges (RangesSlideOut.cs), Loaded files, +// Patrol and Mini Remote (RynthAiFace.Drawers.cs). // // A top-level ImGui window of its own, begun from inside the dashboard's Draw // and placed against the dashboard's window every frame, so it follows the diff --git a/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.Drawers.cs b/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.Drawers.cs index cc3946b..943e7b2 100644 --- a/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.Drawers.cs +++ b/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.Drawers.cs @@ -12,12 +12,19 @@ // recorded hazards and the saved routes. Was the Patrol // launcher's right-click popup; right-click now opens this // drawer (popped out: still the popup). +// Mini Remote RynthAi's Mini Remote (session rates, target, summon, +// item slots, toggles, bank, rebuff, Translate, Guardian) +// with its Options menu. The plugin draws it here through +// RynthPluginRenderEmbed("miniremote") and says how big it +// wants the panel; the Hub launcher's right-click opens it +// (popped out: the floating Mini Remote instead). // AC thread only (inside the dashboard's Draw). // ============================================================================ using System; using System.Numerics; using ImGuiNET; +using RynthCore.Engine.Plugins; using RynthCore.Engine.UI; using RynthCore.Engine.UI.Data; @@ -136,4 +143,81 @@ internal sealed partial class RynthAiFace finally { ImGuiNET.ImGui.EndChild(); } } } + + /// RynthAi's Mini Remote, drawn by the plugin into this drawer (the Hub launcher's right-click). + private sealed class RemoteDrawer : DashboardDrawer + { + /// The plugin surface name, NUL-terminated for the export. + private static ReadOnlySpan Surface => "miniremote\0"u8; + + // Content bounds in unscaled pixels; the plugin's wish is clamped to them. + private const float MinW = 200, MaxW = 760, MinH = 60, DefaultH = 120; + + /// The content size the plugin last asked for (pixels); zero until it has drawn here. + private Vector2 _want; + + public override string Key => "remote"; + public override string Icon => PhosphorIcons.SquaresFour; + public override string Name => "Mini Remote drawer"; + public override bool SavedOpen => RynthAiDashboardState.RemoteOpen; + public override void SaveOpen(bool open) => RynthAiDashboardState.SetRemoteOpen(open); + + 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" + + (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) => + Math.Clamp(_want.X > 0 ? _want.X : MinW * k, MinW * k, MaxW * k) + 2 * Pad * k; + + public override float Height(float k) + { + float frame = (Pad + TitleH + 4 + Pad) * k; + // Never taller than the screen: the body scrolls instead. + float screen = ImGuiNET.ImGui.GetIO().DisplaySize.Y; + float maxBody = screen > 1 ? MathF.Max(MinH * k, screen - frame - 8 * k) : 900 * k; + return frame + Math.Clamp(_want.Y > 0 ? _want.Y : DefaultH * k, MinH * k, maxBody); + } + + public override void DrawPanel(Vector2 origin, float panelW, float panelH, float k) + { + float y = PanelFrame(origin, panelW, panelH, k, PhosphorIcons.SquaresFour, "MINI REMOTE", null, "Hide the Mini Remote drawer"); + float x = origin.X + Pad * k; + ImGuiNET.ImGui.SetCursorScreenPos(new Vector2(x, y)); + Vector2 size = new(panelW - 2 * Pad * k, MathF.Max(1, origin.Y + panelH - Pad * k - y)); + ImGuiNET.ImGui.PushStyleVar(ImGuiStyleVar.WindowPadding, Vector2.Zero); + bool open = ImGuiNET.ImGui.BeginChild("##remote_body", size, ImGuiChildFlags.None, ImGuiWindowFlags.NoBackground); + ImGuiNET.ImGui.PopStyleVar(); + try + { + if (!open) return; + // The plugin's widgets use the default UI font, as in its floating Mini Remote. + ImGuiNET.ImGui.PushFont(ImGuiFonts.Get(UiFont.Ui11)); + try + { + int result = PluginManager.RenderEmbed("RynthAi", Surface, size, out Vector2 want); + if (result == PluginManager.EmbedDrawn) + { + if (want.X > 0 && want.Y > 0) _want = want; + } + else + { + _want = Vector2.Zero; + ImGuiNET.ImGui.PushStyleColor(ImGuiCol.Text, DMute); + ImGuiNET.ImGui.TextWrapped(result switch + { + PluginManager.EmbedNoPlugin => + "This RynthAi can't draw its Mini Remote here (it needs RynthAi 0.5.27 or later). Left-click Hub for the floating Mini Remote.", + PluginManager.EmbedFailed => + "The Mini Remote failed to draw here (see the log). Left-click Hub for the floating Mini Remote.", + _ => "The Mini Remote shows here once RynthAi is ready: in the world, with plugin windows on (engine.json EnablePluginOverlayWindows).", + }); + ImGuiNET.ImGui.PopStyleColor(); + } + } + finally { ImGuiNET.ImGui.PopFont(); } + } + finally { ImGuiNET.ImGui.EndChild(); } + } + } } diff --git a/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.cs b/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.cs index d0f493a..82dffa9 100644 --- a/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.cs +++ b/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.cs @@ -18,7 +18,7 @@ // the buttons above it. // drawers tabs on the left edge (DashboardDrawers.cs), one open at a // time, a window of their own beside the dashboard: Ranges -// (RangesSlideOut.cs), Loaded files and Patrol +// (RangesSlideOut.cs), Loaded files, Patrol and Mini Remote // (RynthAiFace.Drawers.cs). Everything that slides out goes // left; only the bars stay at the bottom (Tom 2026-10-05). // Minimized keeps the title row, the control row and the bars. The window's @@ -76,6 +76,7 @@ internal sealed partial class RynthAiFace : IImGuiPanel // The drawers on the dashboard's left edge (their own window, placed against this one). private readonly DashboardDrawers _drawers; private readonly PatrolDrawer _patrol = new(); + private readonly RemoteDrawer _remote = new(); // This frame's data, for the drawers. private RynthAiView? _view; private RynthAiSnapshot _raw = Empty; @@ -92,7 +93,7 @@ internal sealed partial class RynthAiFace : IImGuiPanel public RynthAiFace() { // Tab order top to bottom; the first one saved open wins at load. - _drawers = new DashboardDrawers(new RangesSlideOut(), new FilesDrawer(this), _patrol); + _drawers = new DashboardDrawers(new RangesSlideOut(), new FilesDrawer(this), _patrol, _remote); } public Vector2? MinSize => new Vector2(MinWidth, _contentHeight > 0 ? _contentHeight @@ -531,11 +532,18 @@ internal sealed partial class RynthAiFace : IImGuiPanel ImGuiNET.ImGui.OpenPopup("##charmenu"); } x += bw + LauncherGap; + // Right-click is the Mini Remote drawer, as Patrol's is its drawer; popped out there are + // no drawers, so it shows the floating Mini Remote. Inventory HUDs setup is in the + // Mini Remote's Options menu. Launcher("##l_hub", PhosphorIcons.SquaresFour, "Hub", - "Hub. Left-click: Mini Remote (/ra remote). Right-click: Inventory HUDs setup (/ra huds).", + popped ? "Hub. Left-click: floating Mini Remote (/ra remote). Right-click: show the floating Mini Remote." + : "Hub. Left-click: floating Mini Remote (/ra remote). Right-click: the Mini Remote drawer (left), with its Options.", x, y, bw, labels, () => RynthAiCommands.ApplyRemoteCommand("remote", "toggle")); if (ImGuiNET.ImGui.IsItemClicked(ImGuiMouseButton.Right)) - RynthAiCommands.ApplyRemoteCommand("huds", "show"); + { + if (popped) RynthAiCommands.ApplyRemoteCommand("remote", "show"); + else _drawers.Toggle(_remote); + } ImGuiNET.ImGui.SetCursorScreenPos(new Vector2(x0, y + LauncherH)); } diff --git a/src/RynthCore.Engine/Plugins/LoadedPlugin.cs b/src/RynthCore.Engine/Plugins/LoadedPlugin.cs index b2ce607..0ce3f41 100644 --- a/src/RynthCore.Engine/Plugins/LoadedPlugin.cs +++ b/src/RynthCore.Engine/Plugins/LoadedPlugin.cs @@ -60,6 +60,13 @@ internal sealed class LoadedPlugin /// Set after the first RenderOverlay call has been logged (render thread only). public bool RenderOverlayLogged { get; set; } + /// + /// Optional int RynthPluginRenderEmbed(const char* surface, float width, float height, + /// float* wantWidth, float* wantHeight), Cdecl: the plugin draws a named surface into the + /// engine's current ImGui window (PluginManager.RenderEmbed). Zeroed after it throws. + /// + public IntPtr RenderEmbedPtr { get; set; } + // ─── v77 UI exports (resolved lazily by PluginManager.ResolveUiExports) ─── public bool UiExportsResolved { get; set; } public IntPtr OnScreenChangedPtr { get; set; } @@ -129,5 +136,6 @@ internal sealed class LoadedPlugin Tick = null; Render = null; RenderOverlay = null; + RenderEmbedPtr = IntPtr.Zero; } } diff --git a/src/RynthCore.Engine/Plugins/PluginContract.cs b/src/RynthCore.Engine/Plugins/PluginContract.cs index 72d76f3..9bf7aff 100644 --- a/src/RynthCore.Engine/Plugins/PluginContract.cs +++ b/src/RynthCore.Engine/Plugins/PluginContract.cs @@ -15,6 +15,13 @@ // off (Avalonia mode): only windows that have no // Avalonia panel. Gated by engine.json // "EnablePluginOverlayWindows" (default true). +// int RynthPluginRenderEmbed(const char* surface, float width, float height, +// float* wantWidth, float* wantHeight) +// — draws a named surface (UTF-8, e.g. RynthAi's +// "miniremote") into the engine's current ImGui +// window on AC's render thread, inside a +// width x height child; reports the size it wants. +// 1 = drawn, 0 = not ready / unknown surface. // void RynthPluginOnServerMessage(uint opcode, byte* data, int length) // — v78, reassembled server messages the plugin // asked for with SetServerMessageInterestFn diff --git a/src/RynthCore.Engine/Plugins/PluginLoader.cs b/src/RynthCore.Engine/Plugins/PluginLoader.cs index 8e73b3a..b77b53e 100644 --- a/src/RynthCore.Engine/Plugins/PluginLoader.cs +++ b/src/RynthCore.Engine/Plugins/PluginLoader.cs @@ -513,6 +513,9 @@ internal static class PluginLoader if (renderOverlayPtr != IntPtr.Zero) plugin.RenderOverlay = Marshal.GetDelegateForFunctionPointer(renderOverlayPtr); + // Called through a function pointer (PluginManager.RenderEmbed), so no delegate here. + plugin.RenderEmbedPtr = GetProcAddress(handle, "RynthPluginRenderEmbed"); + // Read name/version from the plugin if available if (plugin.GetName != null) { diff --git a/src/RynthCore.Engine/Plugins/PluginManager.cs b/src/RynthCore.Engine/Plugins/PluginManager.cs index ebc7651..f7a2697 100644 --- a/src/RynthCore.Engine/Plugins/PluginManager.cs +++ b/src/RynthCore.Engine/Plugins/PluginManager.cs @@ -1242,6 +1242,51 @@ internal static partial class PluginManager internal static string DescribeOverlayState() => $"overlayCalls={_overlayCalls} loginSeen={_loginCompleteObserved} overlayPlugins={_overlayBound}"; + /// RenderEmbed results. + internal const int EmbedDrawn = 1, EmbedNotReady = 0, EmbedNoPlugin = -1, EmbedFailed = -2; + + /// + /// Lets the plugin named (display name contains it) draw the + /// surface (NUL-terminated) into the current ImGui window, + /// through its optional RynthPluginRenderEmbed export. The caller has begun a child of + /// in the main ImGui context; the plugin draws only inside it and + /// reports the content size it wants in (zero when it didn't say). + /// Render thread only. Returns , (the + /// plugin isn't ready: before login, no ImGui context), (not + /// loaded, or too old to have the export) or (it threw: the export + /// is switched off for this session; the plugin keeps running). + /// + internal static unsafe int RenderEmbed(string pluginName, ReadOnlySpan surfaceUtf8, System.Numerics.Vector2 size, out System.Numerics.Vector2 want) + { + want = System.Numerics.Vector2.Zero; + if (!_loginCompleteObserved) return EmbedNotReady; // same not-in-world guard as RenderAll + LoadedPlugin[] plugins = System.Threading.Volatile.Read(ref _pluginsRenderSnapshot); + for (int i = 0; i < plugins.Length; i++) + { + LoadedPlugin p = plugins[i]; + if (!p.Initialized || p.Failed || !p.DisplayName.Contains(pluginName, StringComparison.OrdinalIgnoreCase)) + continue; + IntPtr fn = p.RenderEmbedPtr; + if (fn == IntPtr.Zero) return EmbedNoPlugin; + float w = 0, h = 0; + try + { + int r; + fixed (byte* s = surfaceUtf8) + r = ((delegate* unmanaged[Cdecl])fn)(s, size.X, size.Y, &w, &h); + want = new System.Numerics.Vector2(float.IsFinite(w) ? MathF.Max(0, w) : 0, float.IsFinite(h) ? MathF.Max(0, h) : 0); + return r == 1 ? EmbedDrawn : EmbedNotReady; + } + catch (Exception ex) + { + p.RenderEmbedPtr = IntPtr.Zero; + RynthLog.Error($"PluginManager: {p.DisplayName} RenderEmbed threw {ex.GetType().Name}: {ex.Message} - embedded surfaces off for this session (plugin keeps running)."); + return EmbedFailed; + } + } + return EmbedNoPlugin; + } + public static void ShutdownAll() { RynthLog.Plugin($"PluginManager: Shutting down {_plugins.Count} plugin(s)..."); diff --git a/src/RynthCore.Engine/UI/RynthAiDashboardState.cs b/src/RynthCore.Engine/UI/RynthAiDashboardState.cs index 31f2692..a39f9a2 100644 --- a/src/RynthCore.Engine/UI/RynthAiDashboardState.cs +++ b/src/RynthCore.Engine/UI/RynthAiDashboardState.cs @@ -6,7 +6,8 @@ // minimized|expanded, line 2 unused, line 3 target|notarget, line 4 // vitals|novitals; line 5 filesopen|nofiles, the Loaded files drawer; line 9 // ranges|noranges, the Ranges drawer; line 10 patrol|nopatrol, the Patrol -// drawer: the left-edge drawers, ImGui/Panels/DashboardDrawers.cs). Line 2 +// drawer; line 11 remote|noremote, the Mini Remote drawer: the left-edge +// drawers, ImGui/Panels/DashboardDrawers.cs). Line 2 // was the Monsters button's Simple/Advanced mode, retired 2026-10-01 with the // basic Monsters panel: it is still written ("advanced") so the lines after // it keep their places, and ignored on read. Lines 7 and 8 (the dashboard's @@ -37,6 +38,7 @@ internal static class RynthAiDashboardState private static volatile bool _barCollapsed; // the RynthCore bar shows only its grip + expand private static volatile bool _rangesOpen; // the Ranges drawer beside the dashboard is open private static volatile bool _patrolOpen; // the Patrol drawer beside the dashboard is open + private static volatile bool _remoteOpen; // the Mini Remote drawer beside the dashboard is open // Lines 7 and 8, unused since 2026-10-05: written back as read. private static string _line7 = "-", _line8 = "-"; private static bool _loaded; @@ -140,6 +142,19 @@ internal static class RynthAiDashboardState UiBackgroundWriter.Enqueue("rynthai dashboard state", Save); } + /// The Mini Remote drawer (RynthAi's Mini Remote drawn by the plugin) is open beside the dashboard. Any thread. + public static bool RemoteOpen + { + get { EnsureLoaded(); return _remoteOpen; } + } + + public static void SetRemoteOpen(bool open) + { + EnsureLoaded(); + _remoteOpen = open; + UiBackgroundWriter.Enqueue("rynthai dashboard state", Save); + } + /// Reads the file if it hasn't been read yet. Engine init calls this so AC's thread never does. public static void EnsureLoaded() { @@ -163,6 +178,7 @@ internal static class RynthAiDashboardState if (lines.Length >= 8 && lines[7].Trim().Length > 0) _line8 = lines[7].Trim(); _rangesOpen = lines.Length >= 9 && lines[8].Trim().Equals("ranges", StringComparison.OrdinalIgnoreCase); _patrolOpen = lines.Length >= 10 && lines[9].Trim().Equals("patrol", StringComparison.OrdinalIgnoreCase); + _remoteOpen = lines.Length >= 11 && lines[10].Trim().Equals("remote", StringComparison.OrdinalIgnoreCase); } } catch { /* corrupt cache: start expanded */ } @@ -180,7 +196,8 @@ internal static class RynthAiDashboardState + (_showTargetBar ? "target" : "notarget") + "\n" + (_showVitals ? "vitals" : "novitals") + "\n" + (_filesOpen ? "filesopen" : "nofiles") + "\n" + (_barCollapsed ? "barcollapsed" : "bar") + "\n" + _line7 + "\n" + _line8 + "\n" - + (_rangesOpen ? "ranges" : "noranges") + "\n" + (_patrolOpen ? "patrol" : "nopatrol") + "\n"); + + (_rangesOpen ? "ranges" : "noranges") + "\n" + (_patrolOpen ? "patrol" : "nopatrol") + "\n" + + (_remoteOpen ? "remote" : "noremote") + "\n"); } catch { /* best-effort */ } } From bd7eba287beb427e521fd1507107d24efe49425a Mon Sep 17 00:00:00 2001 From: BlankenshipG Date: Thu, 8 Oct 2026 21:51:43 -0400 Subject: [PATCH 3/4] chore(release): installer 2026.10.5.21 (RynthAi 0.5.27-legacy-ui) Mini Remote drawer on the RynthAi dashboard. Local installer built from clean commits (RynthCore d46cd91, RynthSuite c60243c). Previous release 2026.10.5.11. Co-authored-by: Cursor --- ...26-10-08-installer-2026.10.5.21-release.md | 43 +++++++++++ .../previous-release/last-built-version.txt | 2 +- .../last-release-manifest.json | 74 ++++++++++++------- 3 files changed, 91 insertions(+), 28 deletions(-) create mode 100644 Changelog/2026-10-08-installer-2026.10.5.21-release.md diff --git a/Changelog/2026-10-08-installer-2026.10.5.21-release.md b/Changelog/2026-10-08-installer-2026.10.5.21-release.md new file mode 100644 index 0000000..5c5492a --- /dev/null +++ b/Changelog/2026-10-08-installer-2026.10.5.21-release.md @@ -0,0 +1,43 @@ +# Installer 2026.10.5.21 + +**Date:** 2026-10-08 +**Source:** RynthCore `QOL-items` d46cd91; RynthSuite c60243c, built from a clean worktree. +Both are clean in the manifest. **Local only**: the commits are not pushed. +**Previous installer:** 2026.10.5.11, archived by the build in `installer/previous-release/`. + +## Contents + +- **Engine 2026.10.5.21:** Mini Remote drawer on the RynthAi dashboard. Right-click Hub + or use the drawer tab. Adds the new optional plugin export `RynthPluginRenderEmbed` + (`2026-10-08-release-2026.10.5.21-mini-remote-drawer.md`). +- **Engine 2026.10.5.20:** the Add-to-loot T11 tooltip covers stamped tier and gear grade. + Earlier 2026.10.5.x work on this branch is included too. +- **RynthAi 0.5.27-legacy-ui:** the Mini Remote draws inside that drawer, with its own + Options menu. Also includes 0.5.26 (new ACECustom T11 item state for item ID and loot + rules) and the 0.5.23 / 0.5.24 progression and aug-cost work. +- **RynthCore.SehTrampoline.dll** was rebuilt from `SehTrampoline.c`. The prebuilt DLL + predated commit ab18df2 (CoreCLR-hosted engine AVs logged immediately), and the build + refuses a stale DLL. + +## Not included + +- The uncommitted ENL sigil-chain work (RynthAi 0.5.25 working tree, another session). + It ships later as its own release. +- The `feat/skills-augments-tab` engine branch. + +## Artifacts (`installer/Output/`) + +- `RynthCore-Setup-2026.10.5.21.exe`, 125.4 MB, SHA-256 + `9b5ca2a6f41d4615376281f8511a10c2ed614a1b8ec7282be3859a75c302e6cd`. +- `Release-2026.10.5.21/` and `RynthCore-2026.10.5.21-deploy.zip` (124.9 MB, hash-verified). + +## Build + +- Command: `Build-Release-All.ps1 -Version 2026.10.5.21 -RynthSuiteRoot `. +- The optional RynthJuice and UbRythai plugins are git-ignored and empty in this + checkout. Their sources were copied into the build worktree from the 2026-10-06 build + tree (`C:\Games\Rynthcore\build\sk-attr\RynthSuite`). +- The manifest lists the RynthAi plugin as `1.0.0+c60243c`: its assembly version. The + in-game version is `/ra version`, 0.5.27-legacy-ui. +- The engine and RynthAi are already deployed live to `C:\Games` (both clients + hot-reloaded). The installer is not yet verified on a fresh install. diff --git a/installer/previous-release/last-built-version.txt b/installer/previous-release/last-built-version.txt index 2ea516c..08473ec 100644 --- a/installer/previous-release/last-built-version.txt +++ b/installer/previous-release/last-built-version.txt @@ -1 +1 @@ -2026.10.5.11 \ No newline at end of file +2026.10.5.21 \ No newline at end of file diff --git a/installer/previous-release/last-release-manifest.json b/installer/previous-release/last-release-manifest.json index 20d4260..e99627e 100644 --- a/installer/previous-release/last-release-manifest.json +++ b/installer/previous-release/last-release-manifest.json @@ -1,24 +1,24 @@ { "schema": 1, "product": "RynthCore + RynthSuite", - "version": "2026.10.5.11", - "release": 2026100511, - "builtUtc": "2026-10-05T17:09:44Z", - "previous": "2026.10.5.10", + "version": "2026.10.5.21", + "release": 2026100521, + "builtUtc": "2026-10-09T01:50:55Z", + "previous": "2026.10.5.11", "installer": { - "file": "RynthCore-Setup-2026.10.5.11.exe", - "size": 130761857, - "sha256": "9be7f21a15c0d175f5f00c252eea7bf4caadaf798676ea96b3673e47267c424e" + "file": "RynthCore-Setup-2026.10.5.21.exe", + "size": 131448839, + "sha256": "9b5ca2a6f41d4615376281f8511a10c2ed614a1b8ec7282be3859a75c302e6cd" }, "source": { "rynthCore": { - "branch": "merge/aelrynth-2026.10.5.1", - "commit": "1c75df5351ab20b05bbd0493f6a4097e72f0ddcf", + "branch": "QOL-items", + "commit": "d46cd9114bf2330df4ae1fe4fc82b9e864603038", "dirty": false }, "rynthSuite": { - "branch": "fix/rynthai-launcher-remote-commands", - "commit": "27f962fa89daac495fc5c92cd252225d1b237b45", + "branch": "HEAD", + "commit": "c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8", "dirty": false } }, @@ -26,12 +26,12 @@ { "name": "Launcher (RynthCore.exe)", "file": "core\\RynthCore.exe", - "version": "2026.10.5.11+1c75df5351ab20b05bbd0493f6a4097e72f0ddcf" + "version": "2026.10.5.21+d46cd9114bf2330df4ae1fe4fc82b9e864603038" }, { "name": "Engine", "file": "core\\Runtime\\RynthCore.Engine.dll", - "version": "2026.10.5.11+1c75df5351ab20b05bbd0493f6a4097e72f0ddcf" + "version": "2026.10.5.21+d46cd9114bf2330df4ae1fe4fc82b9e864603038" }, { "name": "Loader", @@ -41,57 +41,77 @@ { "name": "Loot Editor", "file": "core\\Tools\\LootEditor\\RynthCore.LootEditor.exe", - "version": "2026.10.5.11+27f962fa89daac495fc5c92cd252225d1b237b45" + "version": "2026.10.5.21+c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8" }, { "name": "RynthAi plugin", "file": "suite\\RynthAi\\RynthCore.Plugin.RynthAi.dll", - "version": "1.0.0+27f962fa89daac495fc5c92cd252225d1b237b45" + "version": "1.0.0+c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8" }, { "name": "Monster Editor", "file": "suite\\RynthAi\\MonsterEditor\\RynthCore.MonsterEditor.exe", - "version": "2026.10.5.11+27f962fa89daac495fc5c92cd252225d1b237b45" + "version": "2026.10.5.21+c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8" }, { "name": "RynthChat (experimental)", "file": "suite\\RynthChat\\RynthCore.Plugin.RynthChat.dll", - "version": "1.0.0+27f962fa89daac495fc5c92cd252225d1b237b45" + "version": "1.0.0+c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8" }, { "name": "RynthJuice (experimental)", "file": "suite\\RynthJuice\\RynthCore.Plugin.RynthJuice.dll", - "version": "0.1.2-experimental+27f962fa89daac495fc5c92cd252225d1b237b45" + "version": "0.1.2-experimental+c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8" }, { "name": "RynthNav (experimental)", "file": "suite\\RynthNav\\RynthCore.Plugin.RynthNav.dll", - "version": "1.0.0+27f962fa89daac495fc5c92cd252225d1b237b45" + "version": "1.0.0+c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8" }, { "name": "RynthTracker (experimental)", "file": "suite\\RynthTracker\\RynthCore.Plugin.RynthTracker.dll", - "version": "1.0.0+27f962fa89daac495fc5c92cd252225d1b237b45" + "version": "1.0.0+c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8" }, { "name": "RynthVision (experimental)", "file": "suite\\RynthVision\\RynthCore.Plugin.RynthVision.dll", - "version": "1.0.0+27f962fa89daac495fc5c92cd252225d1b237b45" + "version": "1.0.0+c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8" }, { "name": "UbRythai (experimental)", "file": "suite\\UbRythai\\RynthCore.Plugin.UbRythai.dll", - "version": "3.1.10+27f962fa89daac495fc5c92cd252225d1b237b45" + "version": "3.1.10+c60243cda397cc1b8fad4f3d51a13bd1ff7b98a8" } ], "changelog": [ - "RynthCore/Changelog/2026-10-05-guardian-vendor-and-item-lookup.md", - "RynthCore/Changelog/2026-10-05-native-drag-real-item.md", - "RynthCore/Changelog/2026-10-05-release-2026.10.5.10.md" + "RynthCore/Changelog/2026-10-05-release-2026.10.5.11.md", + "RynthCore/Changelog/2026-10-06-release-2026.10.5.14-heartbeat-always-logged.md", + "RynthCore/Changelog/2026-10-06-upstream-snapshot-comparison.md", + "RynthCore/Changelog/2026-10-07-merge-main-into-QOL-items.md", + "RynthCore/Changelog/2026-10-07-release-2026.10.5.15-loot-add-t11-checkbox.md", + "RynthCore/Changelog/2026-10-07-release-2026.10.5.16-main-integration.md", + "RynthCore/Changelog/2026-10-07-release-2026.10.5.17-progression-ub-parity.md", + "RynthCore/Changelog/2026-10-07-release-2026.10.5.18-aug-cost-settings.md", + "RynthCore/Changelog/2026-10-08-release-2026.10.5.20-t11-item-state.md", + "RynthCore/Changelog/2026-10-08-release-2026.10.5.21-mini-remote-drawer.md", + "RynthSuite/Changelog/2026-10-05-release-0.5.17-item-info-format.md", + "RynthSuite/Changelog/2026-10-05-t11-loot-support.md", + "RynthSuite/Changelog/2026-10-06-release-0.5.18-item-info-click.md", + "RynthSuite/Changelog/2026-10-06-release-0.5.19-corpse-killer-decay-line.md", + "RynthSuite/Changelog/2026-10-06-release-0.5.20-vtank-unknown-node-length.md", + "RynthSuite/Changelog/2026-10-06-upstream-snapshot-comparison.md", + "RynthSuite/Changelog/2026-10-07-release-0.5.21-loot-add-t11-attributes.md", + "RynthSuite/Changelog/2026-10-07-release-0.5.22-main-integration.md", + "RynthSuite/Changelog/2026-10-07-release-0.5.23-progression-ub-parity.md", + "RynthSuite/Changelog/2026-10-07-release-0.5.24-aug-cost-settings.md", + "RynthSuite/Changelog/2026-10-08-release-0.5.26-t11-item-state.md", + "RynthSuite/Changelog/2026-10-08-release-0.5.27-mini-remote-drawer.md", + "RynthSuite/Changelog/RynthAi-0.5.14-attribute-raiser.md" ], "changelogSince": { - "rynthCore": "0bff4931842c0cc0bd67057fb4b670b204e6e1a8", - "rynthSuite": "e3982b4d5171cd1339745fa464bd86d0aab721dc", + "rynthCore": "1c75df5351ab20b05bbd0493f6a4097e72f0ddcf", + "rynthSuite": "27f962fa89daac495fc5c92cd252225d1b237b45", "date": "" } } \ No newline at end of file From 8922c2d06ab5161848f666592e0a0d2ba7900932 Mon Sep 17 00:00:00 2001 From: BlankenshipG Date: Fri, 9 Oct 2026 19:07:21 -0400 Subject: [PATCH 4/4] feat(dashboard): Buffs picker in Loaded Files and Spells window button (2026.10.5.22) Fifth Loaded Files row (docked drawer and popped-out header) picks RynthAi's buff profile (RynthPluginSelectProfile kind 4) from the snapshot's buffProfiles list; its sparkle button and Settings > Buffing > Buff Profiles open the RynthAi Spells window. Pairs with RynthAi 0.5.31-legacy-ui. Co-authored-by: Cursor --- ...10-09-release-2026.10.5.22-buffs-picker.md | 37 +++++++++++++++++++ .../ImGui/Panels/RynthAiFace.Drawers.cs | 9 +++-- .../ImGui/Panels/RynthAiFace.cs | 33 +++++++++++++---- src/RynthCore.Engine/UI/Data/RynthAiData.cs | 8 ++++ src/RynthCore.Engine/UI/Data/SettingsData.cs | 2 + 5 files changed, 78 insertions(+), 11 deletions(-) create mode 100644 Changelog/2026-10-09-release-2026.10.5.22-buffs-picker.md diff --git a/Changelog/2026-10-09-release-2026.10.5.22-buffs-picker.md b/Changelog/2026-10-09-release-2026.10.5.22-buffs-picker.md new file mode 100644 index 0000000..30a9031 --- /dev/null +++ b/Changelog/2026-10-09-release-2026.10.5.22-buffs-picker.md @@ -0,0 +1,37 @@ +# RynthCore 2026.10.5.22: Buffs picker in Loaded Files + +Released 2026-10-09. Previous release: 2026.10.5.21 (Mini Remote drawer). +Pairs with RynthAi 0.5.31-legacy-ui. + +## What's new + +- **Buffs picker.** The RynthAi dashboard's loaded files (the docked Loaded files drawer, and + the header of a popped-out dashboard) have a fifth row, **Buffs:**, under Meta. It lists + "Built-in" (buffing's own list) and every buff profile in `RynthAi\BuffProfiles`; picking one + makes buffing use it. +- **Spells button.** A sparkle button at the end of the Buffs row opens or closes RynthAi's + Spells window, where buff profiles are built. +- **Settings > Buffing** has a "Buff Profiles: Spells..." button that opens the same window. +- The Loaded files tooltips (drawer tab, popped-out caret) list the Buffs choice too. + +## Compatibility + +- With a RynthAi older than 0.5.31 the snapshot has no buff profiles: the row shows "Built-in" + and its picker has nothing to choose; the Spells button does nothing (the plugin logs an unknown + remote command). + +## Files + +- `UI/Data/RynthAiData.cs`: `RynthAiSnapshot.BuffProfiles` / `CurrentBuffName` / + `SelectedBuffIdx`; `RynthAiView.BuffText`. +- `ImGui/Panels/RynthAiFace.cs`: fifth selector slot (picker kind 4), the Buffs row in the + header grid, the Spells button option on `Selector`, caret tooltip. +- `ImGui/Panels/RynthAiFace.Drawers.cs`: the Buffs row and height in `FilesDrawer`, tab tooltip. +- `UI/Data/SettingsData.cs`: Buffing > Buff Profiles button (`spells show`). + +## Checks + +- Release publish (NativeAOT) succeeds. +- RynthAi's host tests check the plugin side of the picker (list, pick by index, snapshot + fields). +- Not yet tried in game. diff --git a/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.Drawers.cs b/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.Drawers.cs index 943e7b2..4ce63ef 100644 --- a/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.Drawers.cs +++ b/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.Drawers.cs @@ -32,7 +32,7 @@ namespace RynthCore.Engine.ImGuiBackend.Panels; internal sealed partial class RynthAiFace { - /// Meta state, bot activity and the four file pickers. + /// Meta state, bot activity and the five file pickers. private sealed class FilesDrawer : DashboardDrawer { private readonly RynthAiFace _face; @@ -47,9 +47,10 @@ internal sealed partial class RynthAiFace public override string TabTooltip(bool right) { RynthAiView? v = _face._view; - return "Loaded files: the Profile, Nav, Loot and Meta pickers, meta state and bot activity.\n" + + return "Loaded files: the Profile, Nav, Loot, Meta and Buffs pickers, meta state and bot activity.\n" + "Profile: " + (v?.ProfileText ?? "Default") + "\nNav: " + (v?.NavText ?? "None") + "\nLoot: " + (v?.LootText ?? "None") + "\nMeta: " + (v?.MetaText ?? "None") + + "\nBuffs: " + (v?.BuffText ?? "Built-in") + (right ? "\n\nClick to slide them out (to the right: there's no room on the left)." : "\n\nClick to slide them out."); } @@ -57,7 +58,7 @@ internal sealed partial class RynthAiFace public override float Width(float k) => 230 * k; public override float Height(float k) => - (Pad + TitleH + 4 + 2 * LineH + 6) * k + 4 * SelRow + 3 * SelGap + Pad * k; + (Pad + TitleH + 4 + 2 * LineH + 6) * k + 5 * SelRow + 4 * SelGap + Pad * k; public override void DrawPanel(Vector2 origin, float panelW, float panelH, float k) { @@ -83,6 +84,8 @@ internal sealed partial class RynthAiFace _face.Selector(2, "Loot:", view?.LootText ?? "None", raw.LootProfiles, raw.SelectedLootIdx, 1, x, y, w, raw); y += SelRow + SelGap; _face.Selector(3, "Meta:", view?.MetaText ?? "None", raw.MetaProfiles, raw.SelectedMetaIdx, 2, x, y, w, null); + y += SelRow + SelGap; + _face.Selector(4, "Buffs:", view?.BuffText ?? "Built-in", raw.BuffProfiles, raw.SelectedBuffIdx, 4, x, y, w, null, spellsButton: true); } private static void InfoLine(ImDrawListPtr dl, ImFontPtr f, float x, float y, float w, float lh, float labelW, string label, string value) diff --git a/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.cs b/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.cs index 82dffa9..415f2d8 100644 --- a/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.cs +++ b/src/RynthCore.Engine/ImGui/Panels/RynthAiFace.cs @@ -82,8 +82,8 @@ internal sealed partial class RynthAiFace : IImGuiPanel private RynthAiSnapshot _raw = Empty; // Picker toggle: ImGui closes a popup on the press outside it, so remember // whether it was showing when the selector press began (a second click closes). - private readonly int[] _pickerShownFrame = { -10, -10, -10, -10 }; - private readonly bool[] _pressedWhileOpen = new bool[4]; + private readonly int[] _pickerShownFrame = { -10, -10, -10, -10, -10 }; + private readonly bool[] _pressedWhileOpen = new bool[5]; // The content's height (logical units, body padding included), measured each // frame: the window's minimum height. _fit: resize the window to it once. private float _contentHeight; @@ -250,7 +250,7 @@ internal sealed partial class RynthAiFace : IImGuiPanel ImGuiNET.ImGui.SetCursorScreenPos(new Vector2(x0, y + rowH)); } - // ── Header: macro + state (40%) | Profile/Nav/Loot/Meta pickers (60%) ── + // ── Header: macro + state (40%) | Profile/Nav/Loot/Meta/Buffs pickers (60%) ── private void HeaderGrid(RynthAiView? view, RynthAiSnapshot raw, float x0, float width) { @@ -268,7 +268,7 @@ internal sealed partial class RynthAiFace : IImGuiPanel dl.AddText(f10, f10.FontSize, new Vector2(x0, ly + f10.FontSize + 1), Amber, view?.BotActivityText ?? "Idle"); float leftBottom = ly + 2 * (f10.FontSize + 1); - // Right: four selector rows (label 36 px, picker fills, spacing 3). + // Right: five selector rows (label 36 px, picker fills, spacing 3). float rx = x0 + leftW, rw = width - leftW, ry = y0; // The fold arrow sits at the end of the Profile row, where it always fits. const float foldW = 18f; @@ -282,23 +282,39 @@ internal sealed partial class RynthAiFace : IImGuiPanel Selector(2, "Loot:", view?.LootText ?? "None", raw.LootProfiles, raw.SelectedLootIdx, 1, rx, ry, rw, raw); ry += 16 + 3; Selector(3, "Meta:", view?.MetaText ?? "None", raw.MetaProfiles, raw.SelectedMetaIdx, 2, rx, ry, rw, null); + ry += 16 + 3; + Selector(4, "Buffs:", view?.BuffText ?? "Built-in", raw.BuffProfiles, raw.SelectedBuffIdx, 4, rx, ry, rw, null, spellsButton: true); ry += 16; ImGuiNET.ImGui.SetCursorScreenPos(new Vector2(x0, Math.Max(leftBottom, ry) + 4)); } - private static readonly string[] SelectorIds = { "##sel_profile", "##sel_nav", "##sel_loot", "##sel_meta" }; - private static readonly string[] PickerIds = { "##pick_profile", "##pick_nav", "##pick_loot", "##pick_meta" }; + private static readonly string[] SelectorIds = { "##sel_profile", "##sel_nav", "##sel_loot", "##sel_meta", "##sel_buff" }; + private static readonly string[] PickerIds = { "##pick_profile", "##pick_nav", "##pick_loot", "##pick_meta", "##pick_buff" }; private static readonly string[] NoneItems = { "None" }; + /// + /// One file picker row. is RynthPluginSelectProfile's list (0 nav, + /// 1 loot, 2 meta, 3 settings profile, 4 buff profile). adds the + /// Loot Editor button, the RynthAi Spells window button. + /// private void Selector(int slot, string label, string text, string[] items, int selected, int kind, - float x, float y, float w, RynthAiSnapshot? lootEdit) + float x, float y, float w, RynthAiSnapshot? lootEdit, bool spellsButton = false) { var dl = ImGuiNET.ImGui.GetWindowDrawList(); ImFontPtr f10 = ImGuiFonts.Get(UiFont.Dash10), f9 = ImGuiFonts.Get(UiFont.Dash9); dl.AddText(f10, f10.FontSize, new Vector2(x, y + (16 - f10.FontSize) * 0.5f), Mute, label); float editW = 0; + if (spellsButton) + { + editW = 18; + var ep = new Vector2(x + w - editW, y); + if (IconButton("##buff_spells", ep, new Vector2(editW, 16), PhosphorIcons.Sparkle, UiFont.Dash11, SelectorBg, Mute, 0, 2)) + RynthAiCommands.ApplyRemoteCommand("spells", "toggle"); + ImGuiNET.ImGui.SetItemTooltip("RynthAi Spells: browse the spell list and build buff profiles."); + editW += 3; + } if (lootEdit != null) { editW = 18; @@ -433,7 +449,8 @@ internal sealed partial class RynthAiFace : IImGuiPanel RynthAiDashboardState.SetFilesOpen(true); ImGuiNET.ImGui.SetItemTooltip("Profile: " + (view?.ProfileText ?? "Default") + "\nNav: " + (view?.NavText ?? "None") + "\nLoot: " + (view?.LootText ?? "None") + "\nMeta: " + (view?.MetaText ?? "None") + - "\n\nClick to show the Profile, Nav, Loot and Meta pickers."); + "\nBuffs: " + (view?.BuffText ?? "Built-in") + + "\n\nClick to show the Profile, Nav, Loot, Meta and Buffs pickers."); } // What the bot is doing, always in view (every mode, minimized too): between the toggles and FR. diff --git a/src/RynthCore.Engine/UI/Data/RynthAiData.cs b/src/RynthCore.Engine/UI/Data/RynthAiData.cs index 4f02cb4..59f93a1 100644 --- a/src/RynthCore.Engine/UI/Data/RynthAiData.cs +++ b/src/RynthCore.Engine/UI/Data/RynthAiData.cs @@ -41,6 +41,11 @@ internal sealed class RynthAiSnapshot [JsonPropertyName("selectedLootIdx")] public int SelectedLootIdx { get; set; } [JsonPropertyName("selectedMetaIdx")] public int SelectedMetaIdx { get; set; } [JsonPropertyName("selectedProfileIdx")] public int SelectedProfileIdx { get; set; } + // Buff profiles (RynthAi 0.5.31+): "Built-in" first, then BuffProfiles\*.json. Older plugins + // send none, and the Buffs picker then shows "Built-in" with nothing to pick. + [JsonPropertyName("buffProfiles")] public string[] BuffProfiles { get; set; } = Array.Empty(); + [JsonPropertyName("currentBuffName")] public string CurrentBuffName { get; set; } = string.Empty; + [JsonPropertyName("selectedBuffIdx")] public int SelectedBuffIdx { get; set; } [JsonPropertyName("combatEnabled")] public bool CombatEnabled { get; set; } [JsonPropertyName("buffingEnabled")] public bool BuffingEnabled { get; set; } [JsonPropertyName("navigationEnabled")] public bool NavigationEnabled { get; set; } @@ -85,6 +90,8 @@ internal sealed class RynthAiView public required string NavText { get; init; } public required string LootText { get; init; } public required string MetaText { get; init; } + /// Buff profile buffing uses ("Built-in" without one). + public required string BuffText { get; init; } public required string TargetHeadline { get; init; } public required int TargetSegmentsLit { get; init; } public required bool ShowTargetSubBars { get; init; } @@ -164,6 +171,7 @@ internal sealed unsafe class RynthAiSource : UiSource NavText = Truncate(s.CurrentNavName, 16), LootText = Truncate(s.CurrentLootName, 16), MetaText = Truncate(s.CurrentMetaName, 16), + BuffText = Truncate(string.IsNullOrWhiteSpace(s.CurrentBuffName) ? "Built-in" : s.CurrentBuffName, 16), TargetHeadline = Truncate(label, 32), TargetSegmentsLit = lit, ShowTargetSubBars = showSub, diff --git a/src/RynthCore.Engine/UI/Data/SettingsData.cs b/src/RynthCore.Engine/UI/Data/SettingsData.cs index f26df4b..99f0f6f 100644 --- a/src/RynthCore.Engine/UI/Data/SettingsData.cs +++ b/src/RynthCore.Engine/UI/Data/SettingsData.cs @@ -755,6 +755,8 @@ internal static class SettingsSchema new("Buffing", Concat( Bool("Enable Buffing", s => s.EnableBuffing, (s, v) => s.EnableBuffing = v), + Button("Buff Profiles", "Spells...", () => RynthAiCommands.ApplyRemoteCommand("spells", "show"), + "Open the RynthAi Spells window: browse the spell list by school, level and target,\nand build the buff profile buffing uses (pick it under Loaded Files > Buffs).\nAlso: /ra spells, /ra buffprofile |none."), Bool("Rebuff When Idle", s => s.RebuffWhenIdle, (s, v) => s.RebuffWhenIdle = v), Int("Rebuff With (seconds left)", s => s.RebuffSecondsRemaining, (s, v) => s.RebuffSecondsRemaining = v, 30, 1800, 30, "Recast a self buff when its remaining duration drops below this value.\nDefault 300 (5 minutes). Lower values rebuff more eagerly."),