Fix: pass the machine ID through, not PLACEHOLDER
Oops. Yay for rushed work.
This commit is contained in:
@@ -52,7 +52,7 @@ impl SpawnUi for RotatingMachine {
|
|||||||
fn spawn_ui(mut commands: Commands, theme: Res<UiTheme>, machine_id: Entity) {
|
fn spawn_ui(mut commands: Commands, theme: Res<UiTheme>, machine_id: Entity) {
|
||||||
let base_entity = machine_ui_base(&mut commands, "Rotating Machine", &theme);
|
let base_entity = machine_ui_base(&mut commands, "Rotating Machine", &theme);
|
||||||
commands.entity(base_entity).with_children(|commands| {
|
commands.entity(base_entity).with_children(|commands| {
|
||||||
commands.spawn(FuelGauge::bundle(Entity::PLACEHOLDER));
|
commands.spawn(FuelGauge::bundle(machine_id));
|
||||||
|
|
||||||
// Center panel (placeholder for input-output rotation)
|
// Center panel (placeholder for input-output rotation)
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
@@ -87,7 +87,7 @@ impl SpawnUi for FlippingMachine {
|
|||||||
fn spawn_ui(mut commands: Commands, theme: Res<UiTheme>, machine_id: Entity) {
|
fn spawn_ui(mut commands: Commands, theme: Res<UiTheme>, machine_id: Entity) {
|
||||||
let base_entity = machine_ui_base(&mut commands, "Flipping Machine", &theme);
|
let base_entity = machine_ui_base(&mut commands, "Flipping Machine", &theme);
|
||||||
commands.entity(base_entity).with_children(|commands| {
|
commands.entity(base_entity).with_children(|commands| {
|
||||||
commands.spawn(FuelGauge::bundle(Entity::PLACEHOLDER));
|
commands.spawn(FuelGauge::bundle(machine_id));
|
||||||
|
|
||||||
// Center panel (placeholder)
|
// Center panel (placeholder)
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
@@ -122,7 +122,7 @@ impl SpawnUi for TransposingMachine {
|
|||||||
fn spawn_ui(mut commands: Commands, theme: Res<UiTheme>, machine_id: Entity) {
|
fn spawn_ui(mut commands: Commands, theme: Res<UiTheme>, machine_id: Entity) {
|
||||||
let base_entity = machine_ui_base(&mut commands, "Transposing Machine", &theme);
|
let base_entity = machine_ui_base(&mut commands, "Transposing Machine", &theme);
|
||||||
commands.entity(base_entity).with_children(|commands| {
|
commands.entity(base_entity).with_children(|commands| {
|
||||||
commands.spawn(FuelGauge::bundle(Entity::PLACEHOLDER));
|
commands.spawn(FuelGauge::bundle(machine_id));
|
||||||
|
|
||||||
// Center panel (placeholder)
|
// Center panel (placeholder)
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
|
|||||||
Reference in New Issue
Block a user