Quiet some lints, remove some dev logging
This commit is contained in:
@@ -35,7 +35,6 @@ pub fn spawn_main_menu(mut commands: Commands) {
|
||||
let mut quit_button = cmds.spawn(button_bundle("Quit Game"));
|
||||
quit_button.observe(
|
||||
|_trigger: On<Pointer<Click>>, mut messages: MessageWriter<AppExit>| {
|
||||
info!("The quit button was pressed.");
|
||||
// Quit the game if the quit button was pressed.
|
||||
messages.write(AppExit::Success);
|
||||
},
|
||||
@@ -77,7 +76,7 @@ pub fn button_hover_start(
|
||||
trigger: On<Pointer<Over>>,
|
||||
mut button_colors: Query<(&mut BackgroundColor, &mut BorderColor), With<Button>>,
|
||||
) {
|
||||
if let Ok((mut bg, mut border)) = button_colors.get_mut(trigger.entity) {
|
||||
if let Ok((mut bg, mut _border)) = button_colors.get_mut(trigger.entity) {
|
||||
bg.0 = BTN_BG_SELECTED;
|
||||
}
|
||||
}
|
||||
@@ -86,7 +85,7 @@ pub fn button_hover_stop(
|
||||
trigger: On<Pointer<Out>>,
|
||||
mut button_colors: Query<(&mut BackgroundColor, &mut BorderColor), With<Button>>,
|
||||
) {
|
||||
if let Ok((mut bg, mut border)) = button_colors.get_mut(trigger.entity) {
|
||||
if let Ok((mut bg, mut _border)) = button_colors.get_mut(trigger.entity) {
|
||||
bg.0 = BTN_BG_COLOR;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user