Rename machine UI spawners

This commit is contained in:
2025-08-26 09:52:16 -05:00
parent c833572f69
commit f1ce30bde5
2 changed files with 3 additions and 7 deletions

View File

@@ -24,11 +24,7 @@ fn main() {
.register_type::<resources::UiTheme>()
.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)

View File

@@ -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| {