Add editor operator lifecycle bridge
CI / Format, lint, test, build (push) Waiting to run

This commit is contained in:
Rbanh committed 2026-06-06 04:07:58 -04:00
1 parent 2054fa2558
commit d77cc6a40e
8 files changed
+447 -8

No files matched your search

+5
View File
@@ -5,6 +5,7 @@ use bevy_egui::egui;
use bevy_inspector_egui::bevy_inspector::hierarchy::SelectedEntities;
use crate::history::EditorHistory;
use crate::operators::ActiveOperator;
use crate::scene_io::SceneIo;
use crate::state::{EditorMode, PlayPaused};
@@ -51,6 +52,10 @@ pub fn status_bar_ui(
.color(TEXT),
);
if let Some(operator_label) = world.resource::<ActiveOperator>().label() {
ui.label(egui::RichText::new(operator_label).color(TEXT));
}
#[cfg(feature = "hot-reload")]
if let Some(hot) = world.get_resource::<crate::hot_reload::HotReloadState>() {
ui.label(egui::RichText::new(hot.label.clone()).color(TEXT));