Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved menu based on egui::Popup #5716

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

Conversation

lucasmerlin
Copy link
Collaborator

@lucasmerlin lucasmerlin commented Feb 13, 2025

Continuation of #5713

This is a rewrite of the egui menus, with the following goals:

  • submenu buttons should work everywhere, in a popup, context menu, area, in some random Ui
  • remove the menu state from Ui
  • should work just like the previous menu
  • proper support for keyboard navigation
  • support PopupCloseBehavior

Copy link

Preview available at https://egui-pr-preview.github.io/pr/5716-lucaspopup-based-menu
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@lucasmerlin lucasmerlin marked this pull request as draft February 13, 2025 20:46
@lucasmerlin lucasmerlin force-pushed the lucas/popup-based-menu branch from e6cf98d to 0109e35 Compare February 18, 2025 15:09
@lucasmerlin lucasmerlin force-pushed the lucas/popup-based-menu branch from 0109e35 to b9c1a1f Compare February 19, 2025 17:21
@lucasmerlin lucasmerlin added feature New feature or request egui labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify menus with tooltips/popups
1 participant