afonsolage / bevy_ecss

Bevy crate which uses a subset of CSS to update Bevy ECS components
Apache License 2.0
98 stars 11 forks source link

Html Counterpart #43

Closed TheDudeFromCI closed 8 months ago

TheDudeFromCI commented 8 months ago

This crate has been amazing to work with and really helps to decouple the design and style of the user interface from the implementation code. Especially with features such as hot-reloading assets, it greatly helps to streamline the design process.

Though, as simple many elements are forced to remain code-side, at least for the time being, it does limit the full potential of this crate, in my opinion. Having to stop and reload the game window every time I want to add a new Div or modify classes of an element does slow things down. Having an HTML-like counterpart to this that would aid in initializing the entity tree would be amazing when compared with this crate.

I believe that between a combination of the two, creation of complex user interfaces would be extremely intuitive and fast.

afonsolage commented 8 months ago

Hello, thanks for your feedback! Having to deal with bevy_ui components (the HTML counterpart in Bevy) is out-of-scope of this crate, sorry. Adding or removing bevy_ui components is a much more complex work and won't match any CSS properties or CSS syntax.