Rename machine UI spawners
This commit is contained in:
@@ -24,11 +24,7 @@ fn main() {
|
|||||||
.register_type::<resources::UiTheme>()
|
.register_type::<resources::UiTheme>()
|
||||||
.add_systems(
|
.add_systems(
|
||||||
Startup,
|
Startup,
|
||||||
(
|
(setup, assets::load_assets, RotatingMachine::spawn_ui),
|
||||||
setup,
|
|
||||||
assets::load_assets,
|
|
||||||
RotatingMachine::spawn_rotator_machine_ui,
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
.add_observer(widgets::CloseButton::hover_start)
|
.add_observer(widgets::CloseButton::hover_start)
|
||||||
.add_observer(widgets::CloseButton::hover_stop)
|
.add_observer(widgets::CloseButton::hover_stop)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ use crate::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
impl CuttingMachine {
|
impl CuttingMachine {
|
||||||
pub fn spawn_cutter_machine_ui(mut commands: Commands) {
|
pub fn spawn_ui(mut commands: Commands) {
|
||||||
commands
|
commands
|
||||||
.spawn((machine_ui_base("Cutting Machine"),))
|
.spawn((machine_ui_base("Cutting Machine"),))
|
||||||
.with_children(|commands| {
|
.with_children(|commands| {
|
||||||
@@ -48,7 +48,7 @@ impl CuttingMachine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl RotatingMachine {
|
impl RotatingMachine {
|
||||||
pub fn spawn_rotator_machine_ui(mut commands: Commands) {
|
pub fn spawn_ui(mut commands: Commands) {
|
||||||
commands
|
commands
|
||||||
.spawn((machine_ui_base("Rotating Machine"),))
|
.spawn((machine_ui_base("Rotating Machine"),))
|
||||||
.with_children(|commands| {
|
.with_children(|commands| {
|
||||||
|
|||||||
Reference in New Issue
Block a user