2025-05-21 15:56:23 +02:00
|
|
|
//! Seperate out debugging uis/plugins in it's own module for cleanliness.
|
|
|
|
use bevy::prelude::*;
|
|
|
|
use bevy_inspector_egui::{
|
|
|
|
bevy_egui::EguiPlugin,
|
|
|
|
quick::{StateInspectorPlugin, WorldInspectorPlugin},
|
|
|
|
};
|
|
|
|
|
2025-05-23 19:20:57 +02:00
|
|
|
use crate::{AppState, menus};
|
2025-05-21 15:56:23 +02:00
|
|
|
|
|
|
|
pub fn plugin(app: &mut App) {
|
|
|
|
app.add_plugins(EguiPlugin {
|
|
|
|
enable_multipass_for_primary_context: true,
|
|
|
|
})
|
|
|
|
.add_plugins((
|
|
|
|
WorldInspectorPlugin::new(),
|
|
|
|
StateInspectorPlugin::<AppState>::new(),
|
2025-05-23 19:20:57 +02:00
|
|
|
StateInspectorPlugin::<menus::CurrentMenu>::new(),
|
2025-05-21 15:56:23 +02:00
|
|
|
));
|
|
|
|
}
|