nicopap / cuicui_layout

The dumbest and simplest layouting algorithm for bevy
40 stars 2 forks source link

Chirp `let` statements #81

Closed nicopap closed 1 year ago

nicopap commented 1 year ago

Similarly to #80, we'd like a way to define templates. A quicker-to-implement objective would be "template without argument".

let template = MyEntity(row) {
  Image(ui("image.png") width(100%) color(coral))
}

Similarly to fn, we could use use:

use template
nicopap commented 1 year ago

I'm not interested in let statements. They are equivalent to fn statements with no parameters.