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

UI shapes #114

Merged
merged 19 commits into from
Sep 14, 2021
Merged

UI shapes #114

merged 19 commits into from
Sep 14, 2021

Conversation

Nilirad
Copy link
Owner

@Nilirad Nilirad commented Sep 14, 2021

NOTICE (2023-06-20)

Unfortunately, Bevy's development took a direction that made it difficult to maintain UI shapes. Therefore, this feature was removed briefly after implementation. If you are interested in bringing this feature back, you're welcome to submit a PR.


Changes and usage notes

  • Added ui example
  • Added build_ui and build_ui_as as GeometryBuilder associated functions
  • Changed render pipeline UUID handles to hexadecimal format
  • Shapes will update on changed Path

Notes:

  • Size won't have effect as I removed from the shader the NodeSize uniform. It would expect elements that would fit properly in a 1x1 pixel/units square to work properly, but bevy_prototype_lyon can't guarantee this condition at the moment.

Comments

  • It's recommended to check out the ui example to learn how to use build_ui and build_ui_as (spoiler: it's similar to the "normal" counterparts). Sorry if it's not minimal but I wanted to create something presentable...

cc: @inodentry, @alice-i-cecile, @rparrett

@Nilirad Nilirad merged commit 79cdb49 into master Sep 14, 2021
@Nilirad Nilirad deleted the ui-shapes branch September 14, 2021 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant