nicopap / cuicui_layout

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

Chirp `use` statement #73

Open nicopap opened 1 year ago

nicopap commented 1 year ago

Currently nothing prevents someone from loading a chirp file within another chirp files.

But to make it more ergonomic, we should add a direct way of doing it.

use scene_file

Then, scene_file can be called like a template with zero arguments: scene_file!(). In addition, it should be possible to use templates defined in other files with a use scene_file/specific_template, then calling specific_template!(…).

Would load in-line scene_file.chirp.

Ideally we'd check that:

This is blocked on bevy 0.12 asset v2