ServerPack: open pages in the engine's web panel #3
Loading…
Reference in a new issue
No description provided.
Delete branch "AwfulWaffle/RynthServers:serverpack-web-panel-engine"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stack (apply in order): RynthCore #12, RynthCore #13, RynthServers #1, RynthServers #2, RynthServers #3, RynthServers #4. RynthCore first; the RynthServers PRs build against it.
Stacks on dreamweave-web-panel. Third of four. It needs the RynthCore web panel PR (plugin API v94) to do anything; on older engines it changes nothing.
What this adds (ServerPack)
ServerWebOpenuses the engine's in-game web panel when the engine has one (HasWebPanel, v94):When the panel is missing, turned off (
engine.json"WebPanel": false), or cannot start (no WebView2 runtime), it opens the system browser instead. That is one decision, after the panel's answer, so a page never opens in both. A source scan pins this.All panel calls sit in
NoInliningmethods behindHasWebPanel, and they catchMissingMethodExceptionandTypeLoadException. An older SDK copy in PluginShared therefore cannot break the plugin.The last commit only renames v93 to v94 in comments, following the RynthCore renumber.
How it was tested
Tested in game on DreamWeave stage with the web panel engine: pages opened in the panel, logged in.
🤖 Generated with Claude Code
- Calls: one CallPattern for the lock and Draw allow-lists, which also reads "?." member chains and a type-argument list before "(", so Reply?.Fail( and Notify<int>( count as non-launcher calls. - Monitor is banned in WebButtons.cs and DreamWeaveWebTools.cs; the host takes the launcher's lock in exactly 9 places, and each lock body is pinned exactly (no host property read under it either). - ServerChatText: everything before its first lock is pinned exactly (declarations only), so no gate, return or throw can come before the launcher reads the line. - WebLauncher.cs holds no Action, Func or delegate; any scanned file with a raw string literal fails, since the scan does not model them. - Usage: "Market, Suit Builder or Ability Planner". The shared two lines are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.