diff --git a/examples/usage/control_flow/selection_menu.rs b/examples/usage/control_flow/selection_menu.rs index 1450158ddc..b31dbaec33 100644 --- a/examples/usage/control_flow/selection_menu.rs +++ b/examples/usage/control_flow/selection_menu.rs @@ -86,7 +86,7 @@ fn main() { // Update Ui background's alpha .add_systems(OnEnter(GameState::SelectionMenu), darker_ui_background) .add_systems(OnExit(GameState::SelectionMenu), lighten_ui_background) - .add_systems(Update, (update_ui_backgroud, update_image_node_alpha)); + .add_systems(Update, (update_ui_background, update_image_node_alpha)); // For visuals app.add_systems(Startup, setup_world); @@ -174,7 +174,7 @@ enum ItemCategory { Cheese, } -/// Ui backgroud marker +/// Ui background marker #[derive(Debug, Component)] #[require(BackgroundColor = BackgroundColor(Color::BLACK.with_alpha(0.)))] pub struct UiBackground; @@ -240,7 +240,7 @@ mod single { use crate::{GameState, Inventory, ItemId, PresentingItem, QuickSlotUi, SelectionMenu}; - /// Side lenght of nodes containing images + /// Side length of nodes containing images const NODE_SIDES: f32 = 64. * 2.; /// Gap between items on the scrollable list const SCROLL_ITEM_GAP: f32 = 4.; @@ -687,7 +687,7 @@ type UpdateAlphaQuery<'w, 's, T> = Query< >; /// Updates the alpha of a [`BackgroundColor`] -fn update_ui_backgroud( +fn update_ui_background( mut commands: Commands, mut updating_ui_backgrounds: UpdateAlphaQuery, time: Res