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

Added support for applying multiple style sheets to an entity #46

Closed TheDudeFromCI closed 7 months ago

TheDudeFromCI commented 7 months ago

This is a very basic but fully functional implementation for adding multiple style sheets to a single entity. The entity will correctly apply styles from all provided styles in the order that they are specified, such that entries later in the list will override entries earlier in the list.

In addition, the styles will be applied if any of the styles within the list are updated during a hot-reload.

TheDudeFromCI commented 7 months ago

45