From f1ce30bde5f3556ca452d5b9e2f0f580910a34f8 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 26 Aug 2025 09:52:16 -0500 Subject: [PATCH] Rename machine UI spawners --- src/main.rs | 6 +----- src/widgets/machines.rs | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index eca60be..cbb3b5d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,11 +24,7 @@ fn main() { .register_type::() .add_systems( Startup, - ( - setup, - assets::load_assets, - RotatingMachine::spawn_rotator_machine_ui, - ), + (setup, assets::load_assets, RotatingMachine::spawn_ui), ) .add_observer(widgets::CloseButton::hover_start) .add_observer(widgets::CloseButton::hover_stop) diff --git a/src/widgets/machines.rs b/src/widgets/machines.rs index 0ac6cb5..013c7c5 100644 --- a/src/widgets/machines.rs +++ b/src/widgets/machines.rs @@ -6,7 +6,7 @@ use crate::{ }; impl CuttingMachine { - pub fn spawn_cutter_machine_ui(mut commands: Commands) { + pub fn spawn_ui(mut commands: Commands) { commands .spawn((machine_ui_base("Cutting Machine"),)) .with_children(|commands| { @@ -48,7 +48,7 @@ impl CuttingMachine { } impl RotatingMachine { - pub fn spawn_rotator_machine_ui(mut commands: Commands) { + pub fn spawn_ui(mut commands: Commands) { commands .spawn((machine_ui_base("Rotating Machine"),)) .with_children(|commands| {