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

Make use of observer system for input changes #102

Closed
alexparlett opened this issue Sep 3, 2024 · 1 comment
Closed

Make use of observer system for input changes #102

alexparlett opened this issue Sep 3, 2024 · 1 comment

Comments

@alexparlett
Copy link

With the introduction of triggers and observers, instead of having to create a Changed<X> system which may or may not have the value changed and could be other reasons (i.e. is_open on dropdown), use bevy's commands.trigger_targets to allow observing on the root entity to allow specific reactions to inputs changing.

alexparlett pushed a commit to alexparlett/sickle_ui that referenced this issue Sep 3, 2024
* Add events for inputs
* Publish triggers on changes
alexparlett pushed a commit to alexparlett/sickle_ui that referenced this issue Sep 3, 2024
alexparlett pushed a commit to alexparlett/sickle_ui that referenced this issue Sep 3, 2024
* Add observe to ui_builder
* Fix linting
eidloi pushed a commit that referenced this issue Sep 3, 2024
* Add events for inputs
* Publish triggers on changes
eidloi pushed a commit that referenced this issue Sep 3, 2024
eidloi pushed a commit that referenced this issue Sep 3, 2024
* Add observe to ui_builder
* Fix linting
@eidloi
Copy link
Contributor

eidloi commented Sep 3, 2024

Thanks!

@eidloi eidloi closed this as completed Sep 3, 2024
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

No branches or pull requests

2 participants