DreamWeave: website links in the bar icon's dropdown #4
7 changed files with 9 additions and 9 deletions
DreamWeave: Class Abilities first in the web links
The bar dropdown, the card buttons on older engines and the /rserver usage line now list Class Abilities, then Market, then Suit Builder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
commit
a82d0f93c8
|
|
@ -21,9 +21,9 @@ internal static class DreamWeaveWeb
|
||||||
|
|
||||||
public static readonly WebDestination[] Destinations =
|
public static readonly WebDestination[] Destinations =
|
||||||
{
|
{
|
||||||
|
new("abilities", "Class Abilities", "/play/abilities", "Raise and lower this character's class abilities live."),
|
||||||
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", "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>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// The DreamWeave card's website buttons (Market, Suit Builder, Class Abilities). Render thread, inside
|
// The DreamWeave card's website buttons (Class Abilities, Market, Suit Builder). 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
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
// 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 Class Abilities
|
// (Plugins/Shared/ServerPack/ServerPackPlugin.cs): the card's Class Abilities, Market and Suit Builder
|
||||||
// buttons and "/rserver market | suit | abilities", which open the website logged in as this account.
|
// buttons and "/rserver abilities | market | suit", 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.
|
||||||
//
|
//
|
||||||
|
|
@ -309,7 +309,7 @@ public sealed partial class ServerPackPlugin
|
||||||
{
|
{
|
||||||
string status;
|
string status;
|
||||||
lock (_web.Gate) status = _web.Status;
|
lock (_web.Gate) status = _web.Status;
|
||||||
line("Web tools (/rserver market | suit | abilities): " + (status.Length > 0 ? status : "none opened this login."));
|
line("Web tools (/rserver abilities | market | suit): " + (status.Length > 0 ? status : "none opened this login."));
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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 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>
|
<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. Class Abilities, Market and Suit Builder 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
|
||||||
|
|
|
||||||
|
|
@ -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 Class Abilities open logged in from the bar icon's menu, or this card on older RynthCore (/rserver market | suit | abilities).",
|
"Class Abilities, Market and Suit Builder open logged in from the bar icon's menu, or this card on older RynthCore (/rserver abilities | market | suit).",
|
||||||
},
|
},
|
||||||
Commands = new[]
|
Commands = new[]
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@ internal static class DreamWeaveWebTests
|
||||||
List<ServerBarMenuItem> items = DreamWeaveWeb.BarMenu();
|
List<ServerBarMenuItem> items = DreamWeaveWeb.BarMenu();
|
||||||
string[][] want =
|
string[][] want =
|
||||||
{
|
{
|
||||||
|
new[] { "abilities", "Class Abilities", ((char)0xE6A2).ToString(), "/rserver abilities" },
|
||||||
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", "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++)
|
||||||
|
|
|
||||||
|
|
@ -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 Class Abilities, logged in as this account.", "DreamWeave's own line");
|
Check.Eq(dw[2], "/rserver abilities | market | suit - open the website's Class Abilities, Market or Suit Builder, 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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue