Rename machine UI spawners
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user