Skip to content

New menu-related widgets#24784

Open
viridia wants to merge 2 commits into
bevyengine:mainfrom
viridia:feathers_menu_lazy
Open

New menu-related widgets#24784
viridia wants to merge 2 commits into
bevyengine:mainfrom
viridia:feathers_menu_lazy

Conversation

@viridia

@viridia viridia commented Jun 27, 2026

Copy link
Copy Markdown
Contributor
  • FeathersLazyMenu
  • FeathersMenuToolButton

See release notes for description

viridia added 2 commits June 27, 2026 15:28
* FeathersLazyMenu
* FeathersMenuToolButton
align_items: AlignItems::Stretch,
}
FeathersMenu
on(on_lazy_menu_event)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit: on(on_xxxx doesn't read nice but i know it makes sense from a function naming convention

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, although the convention predates the on() helper and I've been too lazy to change it. Grammatically, you'd think that the preposition "on" would apply to an event, not a handler for the event.

///
/// This is spawnable by inheriting it as a "scene component" with optional [`FeathersMenuButtonProps`].
#[derive(SceneComponent, Default, Clone)]
#[scene(FeathersMenuButtonProps)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for my understanding but why are props derived as a scene?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not what is happening. It's saying that the props for FeathersMenuToolButton is FeathersMenuButtonProps.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh interesting - perhaps i need to read up on #[scene] because i would've thought it was ultimately creating a scene, which seemed strange to do for properties

@Zeophlite Zeophlite added A-UI Graphical user interfaces, styles, layouts, and widgets D-Straightforward Simple bug fixes and API improvements, docs, test and examples labels Jun 28, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in UI Jun 28, 2026
@Zeophlite Zeophlite added the S-Needs-Review Needs reviewer attention (from anyone!) to move forward label Jun 28, 2026
@Zeophlite

Copy link
Copy Markdown
Contributor

One improvement that I think is blocked by bsn spawn events is to show some immediate feedback while the menu is loading

@viridia

viridia commented Jun 28, 2026

Copy link
Copy Markdown
Contributor Author

One improvement that I think is blocked by bsn spawn events is to show some immediate feedback while the menu is loading

Yes, cart and I have discussed this, in particular the idea of having some automated way to preload the assets referenced in the dropdown. However, that's a future research project.

@kfc35 kfc35 added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

4 participants