From aa4551e8b12117ce7a2dff56e48cd166067c6c09 Mon Sep 17 00:00:00 2001 From: Daniel Wallace Date: Sun, 8 Nov 2026 13:31:47 -0800 Subject: [PATCH] DreamWeave: the bar menu is plugin API v95 The engine's barMenu manifest key landed as plugin API v95 (was v94 on up/bar-menu; renumbered after the web panel's v94). BarMenuEngineApi and the comments follow; the test still pins the const to the engine's own PluginContractVersion.BarMenu. Co-Authored-By: Claude Opus 5.5 --- .../DreamWeave/DreamWeaveWeb.cs | 2 +- Plugins/Shared/ServerPack/ServerPackModel.cs | 2 +- Plugins/Shared/ServerPack/ServerPackPlugin.cs | 2 +- Tools/RynthServerPack.Tests/DreamWeaveWebTests.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/RynthCore.Plugin.RynthDreamWeave/DreamWeave/DreamWeaveWeb.cs b/Plugins/RynthCore.Plugin.RynthDreamWeave/DreamWeave/DreamWeaveWeb.cs index b7b746a..aa5c566 100644 --- a/Plugins/RynthCore.Plugin.RynthDreamWeave/DreamWeave/DreamWeaveWeb.cs +++ b/Plugins/RynthCore.Plugin.RynthDreamWeave/DreamWeave/DreamWeaveWeb.cs @@ -27,7 +27,7 @@ internal static class DreamWeaveWeb }; /// The first engine API that draws a plugin window's bar-icon dropdown from the manifest's barMenu. - internal const uint BarMenuEngineApi = 94; + internal const uint BarMenuEngineApi = 95; /// Whether an engine of this API version draws the bar menu (so the card's buttons are redundant). internal static bool EngineDrawsBarMenu(uint engineVersion) => engineVersion >= BarMenuEngineApi; diff --git a/Plugins/Shared/ServerPack/ServerPackModel.cs b/Plugins/Shared/ServerPack/ServerPackModel.cs index 016e24e..a863365 100644 --- a/Plugins/Shared/ServerPack/ServerPackModel.cs +++ b/Plugins/Shared/ServerPack/ServerPackModel.cs @@ -188,7 +188,7 @@ internal sealed class ServerPackModel sb.Append(",\"icon\":").Append(Q(WindowIcon)); sb.Append(",\"width\":").Append(tabs ? ServerPackPages.Width : 460).Append(",\"height\":").Append(ServerPackPages.Height); sb.Append(",\"minWidth\":320,\"minHeight\":200,\"bar\":true,\"server\":").Append(Q(info.Id)); - // The bar icon's hover dropdown (RynthCore API 94); an older engine ignores the key. + // The bar icon's hover dropdown (RynthCore API 95); an older engine ignores the key. if (barMenu != null && barMenu.Count > 0) { sb.Append(",\"barMenu\":["); diff --git a/Plugins/Shared/ServerPack/ServerPackPlugin.cs b/Plugins/Shared/ServerPack/ServerPackPlugin.cs index 16a00ee..61bcfe1 100644 --- a/Plugins/Shared/ServerPack/ServerPackPlugin.cs +++ b/Plugins/Shared/ServerPack/ServerPackPlugin.cs @@ -161,7 +161,7 @@ public sealed partial class ServerPackPlugin : RynthPluginBase /// Every frame while logged in (render thread, AC's main thread; the engine's ImGui context current). partial void ServerRender(); /// - /// Items for a hover dropdown on the server window's bar icon (RynthCore API 94; an older engine + /// Items for a hover dropdown on the server window's bar icon (RynthCore API 95; an older engine /// ignores it). Called once, from the constructor (no Host yet). /// partial void ServerBarMenu(List items); diff --git a/Tools/RynthServerPack.Tests/DreamWeaveWebTests.cs b/Tools/RynthServerPack.Tests/DreamWeaveWebTests.cs index f79e7af..66203c0 100644 --- a/Tools/RynthServerPack.Tests/DreamWeaveWebTests.cs +++ b/Tools/RynthServerPack.Tests/DreamWeaveWebTests.cs @@ -35,7 +35,7 @@ internal static class DreamWeaveWebTests r.Add("dreamweave web: the source scan's helpers read code, not comments or strings", ScanHelpers); r.Add("dreamweave web: the plugin's shared hooks hand off to the web tools first", HooksHandOff); r.Add("dreamweave web: the bar icon's menu lists the destinations, in the engine's own terms", BarMenuItems); - r.Add("dreamweave web: the engine draws the bar menu from API 94", EngineDrawsMenu); + r.Add("dreamweave web: the engine draws the bar menu from API 95", EngineDrawsMenu); r.Add("dreamweave web: the card hides its buttons only when the engine's version says it draws the menu", CardHidesButtonsOnNewEngines); }