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

Add an ImageDecorator widget #588

Open
mrDIMAS opened this issue Jan 17, 2024 · 0 comments
Open

Add an ImageDecorator widget #588

mrDIMAS opened this issue Jan 17, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers user-interface

Comments

@mrDIMAS
Copy link
Member

mrDIMAS commented Jan 17, 2024

fyrox-ui has a Decorator widget, that switches its brushes when it is hovered, clicked, selected, idle. This works for simple cases, but in many games you have a custom graphics for different cases. This is where ImageDecorator could be helpful - it should have four states as well as Decorator widget, but instead of switching brushes, it should show/hide children widgets, that represents different states. For example you can have an ImageDecorator that have four Image widgets as child nodes, where each image represents hovered, clicked, selected and idle states respectively.

@mrDIMAS mrDIMAS added enhancement New feature or request good first issue Good for newcomers user-interface labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers user-interface
Projects
None yet
Development

No branches or pull requests

1 participant