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

Drive action state from UI #8

Closed
alice-i-cecile opened this issue Dec 26, 2021 · 1 comment
Closed

Drive action state from UI #8

alice-i-cecile opened this issue Dec 26, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@alice-i-cecile
Copy link
Contributor

What problem does this solve?

Drive action state by clicking buttons in the UI.

What solution would you like?

Lay out what an ideal solution would look like, from a user-facing perspective.

How could this be implemented?

Create an example to document directly modifying ActionState based on events sent by UI clicks.

What alternatives have you considered?

Create an UserInput variant that can store arbitrary events, which can be read or processed.

However, this is less than useful: any system that this plugin create cannot have automatic access to the corresponding event: work is required at compile time.

Related work

Once bevyengine/bevy#142 is solved this should be revisited: dynamically adding systems to correspond to new mapped event types may be feasible.

@alice-i-cecile alice-i-cecile added the enhancement New feature or request label Dec 26, 2021
@alice-i-cecile
Copy link
Contributor Author

If we skip the intermediate Event layer we can get a first-class solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant