diff --git a/crates/bevy_lunex/src/systems.rs b/crates/bevy_lunex/src/systems.rs index 9478130..dd58c45 100644 --- a/crates/bevy_lunex/src/systems.rs +++ b/crates/bevy_lunex/src/systems.rs @@ -33,9 +33,10 @@ pub fn compute_ui( /// * Generic `(M)` - Master data schema struct defining what can be stored in [`UiTree`] /// * Generic `(N)` - Node data schema struct defining what can be stored in [`UiNode`] /// * Generic `(T)` - Marker component grouping entities into one widget type -pub fn debug_draw_gizmo( +/// * Generic `(G)` - `GizmoConfigGroup` that will be used to draw the outlines +pub fn debug_draw_gizmo( mut query: Query<(&UiTree, &GlobalTransform)>, - mut gizmos: Gizmos + mut gizmos: Gizmos ) { for (tree, transform) in &mut query { let list = tree.crawl(); @@ -629,16 +630,16 @@ impl Plugin for UiGenericPlugin { ///# } /// ``` #[derive(Debug, Default, Clone)] -pub struct UiDebugPlugin (PhantomData, PhantomData); -impl UiDebugPlugin { +pub struct UiDebugPlugin (PhantomData, PhantomData, PhantomData); +impl UiDebugPlugin { pub fn new() -> Self { - UiDebugPlugin::(PhantomData, PhantomData) + UiDebugPlugin::(PhantomData, PhantomData, PhantomData) } } -impl Plugin for UiDebugPlugin { +impl Plugin for UiDebugPlugin { fn build(&self, app: &mut App) { app - .add_systems(Update, debug_draw_gizmo::) + .add_systems(Update, debug_draw_gizmo::) .add_systems(Update, debug_print_tree::.after(UiSystems::Compute)); } }