FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.49k stars 339 forks source link

Add an `ImageDecorator` widget #588

Open mrDIMAS opened 5 months ago

mrDIMAS commented 5 months ago

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.

takahiro6730 commented 2 weeks ago

Can I contribute here? I am fascinated by the idea of ​​Fyrox. I have experience handling files in Rust. Contributor at https://github.com/igumnoff/shiva.

mrDIMAS commented 2 weeks ago

Sure, any help is appreciated.