Rename machine button spawner, "big red button"

It's the big red button. Don't press it.

Or do.
This commit is contained in:
2025-08-25 19:45:35 -05:00
parent d235d6af5e
commit f2f1674451
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ use bevy::{color::palettes::css::*, prelude::*, ui::Val::*};
use crate::{ use crate::{
game::machines::*, game::machines::*,
widgets::{machine_ui_base, spawn_machine_button}, widgets::{machine_ui_base, spawn_big_red_button},
}; };
impl CuttingMachine { impl CuttingMachine {
@@ -42,7 +42,7 @@ impl CuttingMachine {
BackgroundColor(DARK_GRAY.into()), BackgroundColor(DARK_GRAY.into()),
Pickable::default(), Pickable::default(),
)) ))
.with_children(|cmds| spawn_machine_button(cmds, "CUT")); .with_children(|cmds| spawn_big_red_button(cmds, "CUT"));
}); });
} }
} }
@@ -83,7 +83,7 @@ impl RotatingMachine {
BackgroundColor(DARK_GRAY.into()), BackgroundColor(DARK_GRAY.into()),
Pickable::default(), Pickable::default(),
)) ))
.with_children(|cmds| spawn_machine_button(cmds, "TURN")); .with_children(|cmds| spawn_big_red_button(cmds, "TURN"));
}); });
} }
} }

View File

@@ -57,7 +57,7 @@ fn machine_ui_base(header: impl Into<String>) -> impl Bundle {
} }
// TODO: Hook up action handling (callback? Observer? Some other weird component?) // TODO: Hook up action handling (callback? Observer? Some other weird component?)
fn spawn_machine_button(commands: &mut ChildSpawnerCommands, text: impl Into<String>) { fn spawn_big_red_button(commands: &mut ChildSpawnerCommands, text: impl Into<String>) {
let mut builder = commands.spawn(( let mut builder = commands.spawn((
Button, Button,
Node { Node {