DreamWeave: abilities link opens the live class ability page

The third bar-menu item (and card button on older engines) now opens
/play/abilities, the live class ability panel, labelled Class Abilities.
/rserver abilities keeps its verb.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel Wallace 2026-11-08 10:55:36 -08:00
commit 6570ff1bc1
8 changed files with 10 additions and 8 deletions

View file

@ -23,7 +23,7 @@ internal static class DreamWeaveWeb
{ {
new("market", "Market", "/market", "The player market, logged in as this account."), new("market", "Market", "/market", "The player market, logged in as this account."),
new("suit", "Suit Builder", "/tools/suit", "Plan a suit from this account's characters."), new("suit", "Suit Builder", "/tools/suit", "Plan a suit from this account's characters."),
new("abilities", "Ability Planner", "/tools/abilities", "Plan a class ability build."), new("abilities", "Class Abilities", "/play/abilities", "Raise and lower this character's class abilities live."),
}; };
/// <summary>The first engine API that draws a plugin window's bar-icon dropdown from the manifest's barMenu.</summary> /// <summary>The first engine API that draws a plugin window's bar-icon dropdown from the manifest's barMenu.</summary>

View file

@ -1,4 +1,4 @@
// The DreamWeave card's website buttons (Market, Suit Builder, Ability Planner). Render thread, inside // The DreamWeave card's website buttons (Market, Suit Builder, Class Abilities). Render thread, inside
// the card hook only: this file draws and nothing else. It calls no host function, sends nothing and // the card hook only: this file draws and nothing else. It calls no host function, sends nothing and
// opens nothing; a click is handed to the caller, which queues the work for the tick (RunOnTick). // opens nothing; a click is handed to the caller, which queues the work for the tick (RunOnTick).
// It never switches the ImGui context (RenderEmbedded and OnRender own it), and it draws no // It never switches the ImGui context (RenderEmbedded and OnRender own it), and it draws no

View file

@ -1,5 +1,5 @@
// DreamWeaveWebTools.cs - RynthDreamWeave's website tools, through the shared server plugin's hooks // DreamWeaveWebTools.cs - RynthDreamWeave's website tools, through the shared server plugin's hooks
// (Plugins/Shared/ServerPack/ServerPackPlugin.cs): the card's Market, Suit Builder and Ability Planner // (Plugins/Shared/ServerPack/ServerPackPlugin.cs): the card's Market, Suit Builder and Class Abilities
// buttons and "/rserver market | suit | abilities", which open the website logged in as this account. // buttons and "/rserver market | suit | abilities", which open the website logged in as this account.
// The hooks it shares with the bank and the Skills panel are implemented once, in DreamWeavePlugin.cs and // The hooks it shares with the bank and the Skills panel are implemented once, in DreamWeavePlugin.cs and
// DreamWeaveSkills.cs, and call the Web* methods here first. // DreamWeaveSkills.cs, and call the Web* methods here first.

View file

@ -10,7 +10,7 @@
<RynthPluginServerName>DreamWeave</RynthPluginServerName> <RynthPluginServerName>DreamWeave</RynthPluginServerName>
<RynthPluginServerHosts>play.acdreamweave.com</RynthPluginServerHosts> <RynthPluginServerHosts>play.acdreamweave.com</RynthPluginServerHosts>
<RynthPluginServerWorldNames>DreamWeave|Dream Weave</RynthPluginServerWorldNames> <RynthPluginServerWorldNames>DreamWeave|Dream Weave</RynthPluginServerWorldNames>
<RynthPluginDescription>DreamWeave only: the server card (rules, server features, player commands, links, account setup) in its own window on the RynthCore bar, the retail Character panel whose XP for next level keeps reading past level 275, and the bank check every minute that gives Lum/hr its luminance. Market, Suit Builder and Ability Planner open the website logged in as this account: as links in the bar icon's dropdown, or as buttons on the card on older RynthCore.</RynthPluginDescription> <RynthPluginDescription>DreamWeave only: the server card (rules, server features, player commands, links, account setup) in its own window on the RynthCore bar, the retail Character panel whose XP for next level keeps reading past level 275, and the bank check every minute that gives Lum/hr its luminance. Market, Suit Builder and Class Abilities open the website logged in as this account: as links in the bar icon's dropdown, or as buttons on the card on older RynthCore.</RynthPluginDescription>
<!-- Declared 90, not the 66 default: a release build raises anything under 88 to the SDK's API, so the plugin would load on no current engine. <!-- Declared 90, not the 66 default: a release build raises anything under 88 to the SDK's API, so the plugin would load on no current engine.
90 is the highest API among the SDK members called outside an isolated NoInlining method: RynthAcPanel (a static field's type), 90 is the highest API among the SDK members called outside an isolated NoInlining method: RynthAcPanel (a static field's type),
IsAcPanelOpen, AcPanel, PanelScale, PanelDragWithLastItem, GetIconTexture and HasFramelessWindows (v90). Anything newer must stay IsAcPanelOpen, AcPanel, PanelScale, PanelDragWithLastItem, GetIconTexture and HasFramelessWindows (v90). Anything newer must stay

View file

@ -35,7 +35,7 @@ internal static class ServerData
"Experience bonuses: gear, augmentations, alt-character catch-up and offline (/bonus).", "Experience bonuses: gear, augmentations, alt-character catch-up and offline (/bonus).",
"Fast tick opt-in: faster spell release, fast-chug and melee stick-to-target (/fasttick).", "Fast tick opt-in: faster spell release, fast-chug and melee stick-to-target (/fasttick).",
"Web character sheet you can publish (/charsheet).", "Web character sheet you can publish (/charsheet).",
"Market, Suit Builder and Ability Planner open logged in from the bar icon's menu, or this card on older RynthCore (/rserver market | suit | abilities).", "Market, Suit Builder and Class Abilities open logged in from the bar icon's menu, or this card on older RynthCore (/rserver market | suit | abilities).",
}, },
Commands = new[] Commands = new[]
{ {

View file

@ -46,7 +46,7 @@ internal static class DreamWeaveWebTests
{ {
new[] { "market", "Market", ((char)0xE470).ToString(), "/rserver market" }, new[] { "market", "Market", ((char)0xE470).ToString(), "/rserver market" },
new[] { "suit", "Suit Builder", ((char)0xE40A).ToString(), "/rserver suit" }, new[] { "suit", "Suit Builder", ((char)0xE40A).ToString(), "/rserver suit" },
new[] { "abilities", "Ability Planner", ((char)0xE6A2).ToString(), "/rserver abilities" }, new[] { "abilities", "Class Abilities", ((char)0xE6A2).ToString(), "/rserver abilities" },
}; };
Check.Eq(items.Count, want.Length, "one item per destination"); Check.Eq(items.Count, want.Length, "one item per destination");
for (int i = 0; i < want.Length && i < items.Count; i++) for (int i = 0; i < want.Length && i < items.Count; i++)
@ -581,6 +581,8 @@ internal static class DreamWeaveWebTests
Check.Eq(url, DreamWeaveWeb.SiteBase + "/launch?code=" + Code + "&to=%2Ftools%2Fsuit", "exact suit url"); Check.Eq(url, DreamWeaveWeb.SiteBase + "/launch?code=" + Code + "&to=%2Ftools%2Fsuit", "exact suit url");
Check.True(url.EndsWith("%2Ftools%2Fsuit", StringComparison.Ordinal), "ends with the escaped path"); Check.True(url.EndsWith("%2Ftools%2Fsuit", StringComparison.Ordinal), "ends with the escaped path");
Check.Eq(url.Split("&to=").Length - 1, 1, "exactly one &to="); Check.Eq(url.Split("&to=").Length - 1, 1, "exactly one &to=");
Check.Eq(DreamWeaveWeb.LaunchUrl(Code, DreamWeaveWeb.ById("abilities")!),
DreamWeaveWeb.SiteBase + "/launch?code=" + Code + "&to=%2Fplay%2Fabilities", "abilities opens the live class ability page");
foreach (WebDestination d in DreamWeaveWeb.Destinations) foreach (WebDestination d in DreamWeaveWeb.Destinations)
{ {

View file

@ -74,7 +74,7 @@ internal static class ServerPackCommandsTests
// DreamWeave's verbs follow the shared two. // DreamWeave's verbs follow the shared two.
string[] dw = ServerPackCommands.Usage("DreamWeave", new List<string> { RynthCore.Plugin.RynthDreamWeave.DreamWeaveWeb.UsageLine() }); string[] dw = ServerPackCommands.Usage("DreamWeave", new List<string> { RynthCore.Plugin.RynthDreamWeave.DreamWeaveWeb.UsageLine() });
Check.Eq(dw.Length, 3, "DreamWeave: three usage lines"); Check.Eq(dw.Length, 3, "DreamWeave: three usage lines");
Check.Eq(dw[2], "/rserver market | suit | abilities - open the website's Market, Suit Builder or Ability Planner, logged in as this account.", "DreamWeave's own line"); Check.Eq(dw[2], "/rserver market | suit | abilities - open the website's Market, Suit Builder or Class Abilities, logged in as this account.", "DreamWeave's own line");
Check.True(dw[0] == ServerPackCommands.Usage("DreamWeave")[0] && dw[1] == ServerPackCommands.Usage("DreamWeave")[1], "the shared two come first, unchanged"); Check.True(dw[0] == ServerPackCommands.Usage("DreamWeave")[0] && dw[1] == ServerPackCommands.Usage("DreamWeave")[1], "the shared two come first, unchanged");
} }

View file

@ -226,7 +226,7 @@ internal static class ServerPackModelTests
{ {
new ServerBarMenuItem("market", "Market", ((char)0xE470).ToString(), "/rserver market"), new ServerBarMenuItem("market", "Market", ((char)0xE470).ToString(), "/rserver market"),
new ServerBarMenuItem("suit", "Suit Builder", ((char)0xE40A).ToString(), "/rserver suit"), new ServerBarMenuItem("suit", "Suit Builder", ((char)0xE40A).ToString(), "/rserver suit"),
new ServerBarMenuItem("abilities", "Ability Planner", ((char)0xE6A2).ToString(), "/rserver abilities"), new ServerBarMenuItem("abilities", "Class Abilities", ((char)0xE6A2).ToString(), "/rserver abilities"),
}; };
private static void NoBarMenuKey() private static void NoBarMenuKey()