diff --git a/src/hud.rs b/src/hud.rs index c809b82..7db1114 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -1,7 +1,6 @@ use crate::{settings, actor, audio, nature}; use bevy::prelude::*; use bevy::diagnostic::{DiagnosticsStore, FrameTimeDiagnosticsPlugin}; -//use bevy::core_pipeline::bloom::{BloomCompositeMode, BloomSettings}; use std::collections::VecDeque; use std::time::SystemTime; @@ -445,7 +444,6 @@ fn handle_input( keyboard_input: Res>, mut settings: ResMut, mut q_hud: Query<&mut Visibility, With>, - //mut q_bloomsettings: Query<&mut BloomSettings>, q_choices: Query<&ChoiceAvailable>, mut evwriter_sendmsg: EventWriter, mut evwriter_sfx: EventWriter, @@ -453,14 +451,12 @@ fn handle_input( mut ambient_light: ResMut, ) { if keyboard_input.just_pressed(settings.key_togglehud) { - //if let Ok(mut bloomsettings) = q_bloomsettings.get_single_mut() { if settings.hud_active { for mut hudelement_visibility in q_hud.iter_mut() { *hudelement_visibility = Visibility::Hidden; } settings.hud_active = false; ambient_light.brightness = AMBIENT_LIGHT; - //bloomsettings.composite_mode = BloomCompositeMode::EnergyConserving; } else { for mut hudelement_visibility in q_hud.iter_mut() { @@ -468,8 +464,6 @@ fn handle_input( } settings.hud_active = true; ambient_light.brightness = AMBIENT_LIGHT_AR; - //bloomsettings.composite_mode = BloomCompositeMode::EnergyConserving; - //bloomsettings.composite_mode = BloomCompositeMode::Additive; } evwriter_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch)); evwriter_togglemusic.send(audio::ToggleMusicEvent());