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