{"repo":"dekirisu/mevy","free":true,"listed":false,"github":"https://github.com/dekirisu/mevy","clone":"git clone https://github.com/dekirisu/mevy.git","description":"Magical Bevy Macros: Simplified bevy_ui & bevy_ecs Syntax!","language":"Rust","stars":128,"topics":["bevy","bevy-engine","bevy-ui","proc-macro"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"[!IMPORTANT] This crate is meant to provide macros only - no additional bevy plugins, resources, components or systems Setup Multiple bevy versions are supported and managed by features: Then just use all of it: Simpler Hierarchy Spawning Spawn children just by stating [] - the 'names' are just variables containing their Entity - those variables can be used anywhere in the macro - even 'before' - read more or see this example. Modify entities in a 'quick and dirty' way: - read more or see this example. CSS-like notation for bevy ui Using ui!((..)) (inner round braces) will return a tuple of mentioned components only. - read about available fields , custom fields & notation in this readme - see this example. Code Replacement Macro Using the code!{} macro simplifies constructing: - Color by writing #rgb / #rgba / #rrggbb / #rrggbbaa - Val by writing 0px / 0% / 0vw / 0vh / 0vmin / 0vmax / @ (auto) - UiRect by writing [ 0px] / [ 0px 0px] / [ 0px 0px 0px] / [ 0px 0px 0px 0px] (css-like) So you can do fun things like: Design Crates are separated into: - crate/ /syntax : token handling, meant to be reusable - crate/ : actual macros, based on that 'syntax' [!NOTE] Only relevant if you dig deeper into this crate: The versions of those are not hard linked, since the macros can keep (or gain) features, even if the the syntax api has changed. So if one of those is 0.2.x and the other 0.5.x at some point, don't worry.","default_branch":null,"files":null,"tree":[],"storefront":"/r/dekirisu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dekirisu/mevy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}