cleanup
This commit is contained in:
parent
23bceebc79
commit
ae2fcf2525
|
@ -477,8 +477,8 @@ fn handle_input(
|
|||
keyboard_input: Res<ButtonInput<KeyCode>>,
|
||||
mut settings: ResMut<settings::Settings>,
|
||||
mut q_hud: Query<&mut Visibility, With<ToggleableHudElement>>,
|
||||
mut evwriter_sfx: EventWriter<audio::PlaySfxEvent>,
|
||||
mut evwriter_togglemusic: EventWriter<audio::ToggleMusicEvent>,
|
||||
mut ew_sfx: EventWriter<audio::PlaySfxEvent>,
|
||||
mut ew_togglemusic: EventWriter<audio::ToggleMusicEvent>,
|
||||
mut ambient_light: ResMut<AmbientLight>,
|
||||
) {
|
||||
if keyboard_input.just_pressed(settings.key_togglehud) {
|
||||
|
@ -496,7 +496,7 @@ fn handle_input(
|
|||
settings.hud_active = true;
|
||||
ambient_light.brightness = AMBIENT_LIGHT_AR;
|
||||
}
|
||||
evwriter_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch));
|
||||
evwriter_togglemusic.send(audio::ToggleMusicEvent());
|
||||
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch));
|
||||
ew_togglemusic.send(audio::ToggleMusicEvent());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue