diff --git a/assets/sprites/dashboard_rotation_stabiliser.png b/assets/sprites/dashboard_rotation_stabiliser.png deleted file mode 100644 index cc31004..0000000 Binary files a/assets/sprites/dashboard_rotation_stabiliser.png and /dev/null differ diff --git a/src/camera.rs b/src/camera.rs index d00ac0b..b460ec5 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -409,7 +409,6 @@ pub fn update_fov( pub fn handle_input( keyboard_input: Res>, settings: Res, - mut ew_sfx: EventWriter, mut ew_game: EventWriter, ) { if keyboard_input.just_pressed(settings.key_camera) { @@ -418,10 +417,6 @@ pub fn handle_input( if keyboard_input.just_pressed(settings.key_map) { ew_game.send(GameEvent::SetMap(Toggle)); } - if keyboard_input.just_pressed(settings.key_rotation_stabilizer) { - ew_game.send(GameEvent::SetRotationStabilizer(Toggle)); - ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch)); - } } fn manage_player_actor( diff --git a/src/game.rs b/src/game.rs index 5107247..c31bc5f 100644 --- a/src/game.rs +++ b/src/game.rs @@ -111,7 +111,6 @@ pub enum GameEvent { SetFullscreen(Turn), SetMenu(Turn), SetThirdPerson(Turn), - SetRotationStabilizer(Turn), SetShadows(Turn), UpdateFlashlight, Achievement(String), @@ -291,10 +290,6 @@ pub fn handle_game_event( prefs.third_person = settings.third_person; prefs.save(); } - GameEvent::SetRotationStabilizer(turn) => { - settings.rotation_stabilizer_active = - turn.to_bool(settings.rotation_stabilizer_active); - } GameEvent::SetShadows(turn) => { settings.shadows_sun = turn.to_bool(settings.shadows_sun); for mut light in &mut q_light { diff --git a/src/hud.rs b/src/hud.rs index a430c12..5f65dde 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -37,7 +37,6 @@ pub const REPLY_NUMBERS: [char; 10] = ['➀', '➁', '➂', '➃', '➄', '➅', pub const DASHBOARD_DEF: &[(Dashboard, &str)] = &[ (Dashboard::Flashlight, "highbeams"), (Dashboard::Leak, "leak"), - (Dashboard::RotationStabiliser, "rotation_stabiliser"), (Dashboard::CruiseControl, "cruise_control"), (Dashboard::Battery, "battery"), (Dashboard::Radioactivity, "radioactivity"), @@ -167,7 +166,6 @@ pub struct PointOfInterestMarker(pub Entity); pub enum Dashboard { Leak, Flashlight, - RotationStabiliser, CruiseControl, Radioactivity, Battery, @@ -828,7 +826,6 @@ fn update_dashboard( Dashboard::Flashlight => settings.flashlight_active, Dashboard::Leak => suit.integrity < 0.5, Dashboard::Battery => battery.overloaded_recovering, - Dashboard::RotationStabiliser => !settings.rotation_stabilizer_active, Dashboard::CruiseControl => settings.cruise_control_active, Dashboard::Radioactivity => lifeform.is_radioactively_damaged, }); diff --git a/src/svg/dashboard_rotation_stabiliser.svg b/src/svg/dashboard_rotation_stabiliser.svg deleted file mode 100644 index 87b5266..0000000 --- a/src/svg/dashboard_rotation_stabiliser.svg +++ /dev/null @@ -1,133 +0,0 @@ - - - - diff --git a/src/var.rs b/src/var.rs index 978e0bc..15e8169 100644 --- a/src/var.rs +++ b/src/var.rs @@ -101,7 +101,6 @@ pub struct Settings { pub death_cause: String, pub is_zooming: bool, pub third_person: bool, - pub rotation_stabilizer_active: bool, pub cruise_control_active: bool, pub shadows_sun: bool, pub shadows_pointlights: bool, @@ -133,7 +132,6 @@ pub struct Settings { pub key_flashlight: KeyCode, pub key_cruise_control: KeyCode, pub key_rotate: KeyCode, - pub key_rotation_stabilizer: KeyCode, pub key_mouseup: KeyCode, pub key_mousedown: KeyCode, pub key_mouseleft: KeyCode, @@ -251,7 +249,6 @@ impl Default for Settings { death_cause: "Unknown".to_string(), is_zooming: false, third_person: true, - rotation_stabilizer_active: true, cruise_control_active: false, shadows_sun: true, shadows_pointlights: false, @@ -283,7 +280,6 @@ impl Default for Settings { key_flashlight: KeyCode::KeyF, key_cruise_control: KeyCode::KeyT, key_rotate: KeyCode::KeyR, - key_rotation_stabilizer: KeyCode::KeyY, key_mouseup: KeyCode::KeyI, key_mousedown: KeyCode::KeyK, key_mouseleft: KeyCode::KeyJ, @@ -330,7 +326,6 @@ impl Settings { pub fn reset_player_settings(&mut self) { println!("Resetting player settings!"); let default = Self::default(); - self.rotation_stabilizer_active = default.rotation_stabilizer_active; self.is_zooming = default.is_zooming; self.flashlight_active = default.flashlight_active; self.cruise_control_active = default.cruise_control_active;