diff --git a/src/game/mod.rs b/src/game/mod.rs index f497d57..8687bf2 100644 --- a/src/game/mod.rs +++ b/src/game/mod.rs @@ -43,7 +43,7 @@ pub mod consumables { impl Default for Fuel { fn default() -> Self { - Self(5) + Self(5) } } #[derive(Event)] diff --git a/src/main.rs b/src/main.rs index 22b4433..cb97048 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, }; diff --git a/src/widgets/fuel_gauge.rs b/src/widgets/fuel_gauge.rs index ef73c8b..7d8839f 100644 --- a/src/widgets/fuel_gauge.rs +++ b/src/widgets/fuel_gauge.rs @@ -63,7 +63,7 @@ impl FuelGauge { let Some(mut label) = world.get_mut::(ctx.entity) else { panic!() }; - + label.0 = format!("Fuel: {}", fuel); } }