Merge pull request #12 from BlankenshipG/feat/spells-buff-profiles

feat(dashboard): Buffs picker in Loaded Files and Spells window button (2026.10.5.22)
This commit is contained in:
BlankenshipG 2026-10-09 19:22:27 -04:00 • committed by GitHub
commit 3375d948cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 438 additions and 50 deletions

View file

@ -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 <clean RynthSuite worktree>`.
- 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.

View file

@ -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\`.

View file

@ -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).

View file

@ -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.

View file

@ -1 +1 @@
2026.10.5.11
2026.10.5.21

View file

@ -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": ""
}
}

View file

@ -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

View file

@ -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();

View file

@ -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;
@ -25,7 +32,7 @@ namespace RynthCore.Engine.ImGuiBackend.Panels;
internal sealed partial class RynthAiFace
{
/// <summary>Meta state, bot activity and the four file pickers.</summary>
/// <summary>Meta state, bot activity and the five file pickers.</summary>
private sealed class FilesDrawer : DashboardDrawer
{
private readonly RynthAiFace _face;
@ -40,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.");
}
@ -50,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)
{
@ -76,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)
@ -136,4 +146,81 @@ internal sealed partial class RynthAiFace
finally { ImGuiNET.ImGui.EndChild(); }
}
}
/// <summary>RynthAi's Mini Remote, drawn by the plugin into this drawer (the Hub launcher's right-click).</summary>
private sealed class RemoteDrawer : DashboardDrawer
{
/// <summary>The plugin surface name, NUL-terminated for the export.</summary>
private static ReadOnlySpan<byte> 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;
/// <summary>The content size the plugin last asked for (pixels); zero until it has drawn here.</summary>
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(); }
}
}
}

View file

@ -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,13 +76,14 @@ 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;
// 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;
@ -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
@ -249,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)
{
@ -267,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;
@ -281,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" };
/// <summary>
/// One file picker row. <paramref name="kind"/> is RynthPluginSelectProfile's list (0 nav,
/// 1 loot, 2 meta, 3 settings profile, 4 buff profile). <paramref name="lootEdit"/> adds the
/// Loot Editor button, <paramref name="spellsButton"/> the RynthAi Spells window button.
/// </summary>
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;
@ -432,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.
@ -531,11 +549,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));
}

View file

@ -60,6 +60,13 @@ internal sealed class LoadedPlugin
/// <summary>Set after the first RenderOverlay call has been logged (render thread only).</summary>
public bool RenderOverlayLogged { get; set; }
/// <summary>
/// Optional <c>int RynthPluginRenderEmbed(const char* surface, float width, float height,
/// float* wantWidth, float* wantHeight)</c>, Cdecl: the plugin draws a named surface into the
/// engine's current ImGui window (PluginManager.RenderEmbed). Zeroed after it throws.
/// </summary>
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;
}
}

View file

@ -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

View file

@ -513,6 +513,9 @@ internal static class PluginLoader
if (renderOverlayPtr != IntPtr.Zero)
plugin.RenderOverlay = Marshal.GetDelegateForFunctionPointer<PluginRenderDelegate>(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)
{

View file

@ -1242,6 +1242,51 @@ internal static partial class PluginManager
internal static string DescribeOverlayState()
=> $"overlayCalls={_overlayCalls} loginSeen={_loginCompleteObserved} overlayPlugins={_overlayBound}";
/// <summary>RenderEmbed results.</summary>
internal const int EmbedDrawn = 1, EmbedNotReady = 0, EmbedNoPlugin = -1, EmbedFailed = -2;
/// <summary>
/// Lets the plugin named <paramref name="pluginName"/> (display name contains it) draw the
/// surface <paramref name="surfaceUtf8"/> (NUL-terminated) into the current ImGui window,
/// through its optional RynthPluginRenderEmbed export. The caller has begun a child of
/// <paramref name="size"/> in the main ImGui context; the plugin draws only inside it and
/// reports the content size it wants in <paramref name="want"/> (zero when it didn't say).
/// Render thread only. Returns <see cref="EmbedDrawn"/>, <see cref="EmbedNotReady"/> (the
/// plugin isn't ready: before login, no ImGui context), <see cref="EmbedNoPlugin"/> (not
/// loaded, or too old to have the export) or <see cref="EmbedFailed"/> (it threw: the export
/// is switched off for this session; the plugin keeps running).
/// </summary>
internal static unsafe int RenderEmbed(string pluginName, ReadOnlySpan<byte> 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]<byte*, float, float, float*, float*, int>)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)...");

View file

@ -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<string>();
[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; }
/// <summary>Buff profile buffing uses ("Built-in" without one).</summary>
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<RynthAiView>
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,

View file

@ -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 <name>|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."),

View file

@ -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);
}
/// <summary>The Mini Remote drawer (RynthAi's Mini Remote drawn by the plugin) is open beside the dashboard. Any thread.</summary>
public static bool RemoteOpen
{
get { EnsureLoaded(); return _remoteOpen; }
}
public static void SetRemoteOpen(bool open)
{
EnsureLoaded();
_remoteOpen = open;
UiBackgroundWriter.Enqueue("rynthai dashboard state", Save);
}
/// <summary>Reads the file if it hasn't been read yet. Engine init calls this so AC's thread never does.</summary>
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 */ }
}