(autoformat)
This commit is contained in:
@@ -43,7 +43,7 @@ pub mod consumables {
|
||||
|
||||
impl Default for Fuel {
|
||||
fn default() -> Self {
|
||||
Self(5)
|
||||
Self(5)
|
||||
}
|
||||
}
|
||||
#[derive(Event)]
|
||||
|
||||
@@ -2,9 +2,7 @@ use bevy::{color::palettes::css::*, prelude::*, window::WindowResolution};
|
||||
use bevy_inspector_egui::{bevy_egui::EguiPlugin, quick::WorldInspectorPlugin};
|
||||
|
||||
use crate::{
|
||||
game::{
|
||||
machines::{CuttingMachine, FlippingMachine, RotatingMachine, TransposingMachine},
|
||||
},
|
||||
game::machines::{CuttingMachine, FlippingMachine, RotatingMachine, TransposingMachine},
|
||||
resources::UiTheme,
|
||||
widgets::SpawnUi,
|
||||
};
|
||||
|
||||
@@ -63,7 +63,7 @@ impl FuelGauge {
|
||||
let Some(mut label) = world.get_mut::<Text>(ctx.entity) else {
|
||||
panic!()
|
||||
};
|
||||
|
||||
|
||||
label.0 = format!("Fuel: {}", fuel);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user