RynthDreamWeave: web links in the bar icon's dropdown; card buttons only on older engines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
4afb8f3ac3
commit
1d7605db23
3 changed files with 97 additions and 0 deletions
|
|
@ -59,10 +59,25 @@ public sealed partial class ServerPackPlugin
|
|||
}
|
||||
}
|
||||
|
||||
partial void ServerBarMenu(List<ServerBarMenuItem> items)
|
||||
{
|
||||
try
|
||||
{
|
||||
items.AddRange(DreamWeaveWeb.BarMenu());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// The constructor has no Host to log to yet; the destinations are constants.
|
||||
}
|
||||
}
|
||||
|
||||
partial void ServerCardActions()
|
||||
{
|
||||
try
|
||||
{
|
||||
// An engine that draws the bar icon's dropdown carries the links; the card keeps its buttons
|
||||
// (and the status line) only for older engines, so no one loses them.
|
||||
if (DreamWeaveWeb.EngineDrawsBarMenu(Host.Version)) return;
|
||||
WebButtons.Draw(_web, Active, _webClick ??= d => RunOnTick(() => StartLaunch(d)));
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Reference in a new issue