Web panel: an in-game WebView2 page for plugins (API v94) #12
Loading…
Reference in a new issue
No description provided.
Delete branch "AwfulWaffle/RynthCore:web-panel"
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.
What this adds
An in-game web panel. A plugin can open one WebView2 page over the game window (on its own STA thread, an unowned popup), so a server's website (a market, a suit builder, a character planner) opens inside the game instead of in a separate browser. DreamWeave uses it for its website tools; the RynthServers PRs for that follow.
Plugin API v94, after upstream's v93 (GetMonsterHealth). The number is provisional: upstream's note says unmerged branches also use 94, and whichever merges second renumbers. CoreCLR engine only; the NativeAOT engine leaves the slots zero and
HasWebPanelis false.GetMonsterHealthFn:WebPanelOpenFn,WebPanelNavigateFn,WebPanelCloseFn,WebPanelGetStateFn. SDK wrappers onRynthCoreHost:HasWebPanel,OpenWebPanel(WebPanelOptions),NavigateWebPanel,CloseWebPanel,GetWebPanelState. No call blocks its caller.*.suffix. Off-list navigations and pop-ups never load in the panel (an http(s) URL goes to the system browser, anything else is dropped)./rc webpanel [status|close], and anengine.jsonkill switch"WebPanel": false.docs/WEB_PANEL.mdis the plugin contract;Changelog/2026-11-07-web-panel.mdhas the detail.RynthCore.PluginSdk.targetsraises a shared-SDK release build'sRynthPluginMinEngineApi(below 88) to the SDK's API, which is now 94. Plugins that must run on older cores should declare 88 or higher explicitly.How it was tested
On this branch (upstream
c68204fplus this stack):tools\WebPanelHarnessruns the host against real WebView2 offline (needs a desktop; not in Run-AllTests).In game: run on DreamWeave stage with the DreamWeave plugin. The market, suit builder and class ability planner opened in the panel, logged in through a one-time launch code.
Rebase note
This was built on
418d80band rebased onto 2026.11.8.1. The only changes from that are the slot order (afterGetMonsterHealthFn) and the renumber from 93 to 94, which is its own commit at the tip.🤖 Generated with Claude Code
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.