diff --git a/src/maze/systems/spawn.rs b/src/maze/systems/spawn.rs index 476297f..5849088 100644 --- a/src/maze/systems/spawn.rs +++ b/src/maze/systems/spawn.rs @@ -30,7 +30,7 @@ pub(super) fn spawn_single_hex_tile( MeshMaterial3d(assets.hex_material.clone()), Transform::from_translation(world_pos).with_rotation(rotation), )) - .with_children(|parent| spawn_walls(parent, assets, config, &tile.walls())); + .with_children(|parent| spawn_walls(parent, assets, config, tile.walls())); } fn spawn_walls(parent: &mut ChildBuilder, assets: &MazeAssets, config: &MazeConfig, walls: &Walls) { diff --git a/src/theme/widgets.rs b/src/theme/widgets.rs index 25539ee..bedf42a 100644 --- a/src/theme/widgets.rs +++ b/src/theme/widgets.rs @@ -20,7 +20,7 @@ impl Widgets for T { fn button(&mut self, text: impl Into) -> EntityCommands { let mut entity = self.spawn_ui(( Name::new("Button"), - Button::default(), + Button, ImageNode { color: NODE_BACKGROUND, ..default()