Bar icon dropdown: barMenu on plugin windows (API v95) #13
Loading…
Reference in a new issue
No description provided.
Delete branch "AwfulWaffle/RynthCore:bar-menu"
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 the web panel PR (pr/web-panel): review/apply that first. The bar menu itself does not use the web panel; the stack is only for the API numbering.
What this adds
A plugin window's bar icon can carry a hover dropdown. The window's entry in the sections manifest gains an optional
"barMenu": up to 6 items{ "id", "tooltip", "icon", "command" }. Hovering the bar icon for 0.15 s drops a column of icon buttons straight below it (above, if there is no room). It stays while the mouse is over the icon or the column, and for 0.30 s after it leaves both. Clicking an item runs its command as a player chat command (the hotkey path). Clicking the bar icon itself still toggles the window.DreamWeave uses it for its website links (Market, Suit Builder, Ability Planner on the DreamWeave icon).
/...chat command (the contribution rule); the icon is one Phosphor glyph, else the tooltip's first letter. A bad item is dropped; items past 6 are ignored.PluginContractVersion.BarMenu), no function table change. Engines before v95 ignore the key, so a plugin can declare it unconditionally and checkHost.Versionto decide whether it still needs its own buttons.igBringWindowToDisplayFront, no focus change), so a focused panel does not cover it.barMenureaches the bar without re-registering the panel (WindowPlan.MenuSignature).ImGui/BarMenuHover.cs) and unit-tested.Changelog/2026-11-07-bar-menu.mdhas the detail.How it was tested
On this branch:
In game, on DreamWeave stage with the DreamWeave plugin: the dropdown opens on hover, stays while moving into it, and lines up under the icon. Each item opens its page, and the icon's click still opens the card.
Rebase note
This was built on
418d80band rebased onto 2026.11.8.1. The changes from that areUnderUibeforeBarMenuinSectionWindowDecl, and the renumber from 94 to 95, 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.