Compare commits

..

No commits in common. "6704056d3a22099aa3bc3af4a4d75288cc178b3e" and "cdc1dcec369dcd0d689ac07fe511858a2ec69a36" have entirely different histories.

6 changed files with 28 additions and 28 deletions

Binary file not shown.

View file

@ -64,7 +64,6 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[
(SfxType::OneOff, Sfx::GaspRelief, "sounds/gasprelief.ogg"), (SfxType::OneOff, Sfx::GaspRelief, "sounds/gasprelief.ogg"),
(SfxType::OneOff, Sfx::Achieve, "sounds/achieve.ogg"), (SfxType::OneOff, Sfx::Achieve, "sounds/achieve.ogg"),
(SfxType::OneOff, Sfx::Click, "sounds/click.ogg"), (SfxType::OneOff, Sfx::Click, "sounds/click.ogg"),
(SfxType::OneOff, Sfx::Click3, "sounds/click3.ogg"),
(SfxType::OneOff, Sfx::Connect, "sounds/connect.ogg"), (SfxType::OneOff, Sfx::Connect, "sounds/connect.ogg"),
(SfxType::OneOff, Sfx::Crash, "sounds/crash.ogg"), (SfxType::OneOff, Sfx::Crash, "sounds/crash.ogg"),
(SfxType::OneOff, Sfx::Drink, "sounds/drink.ogg"), (SfxType::OneOff, Sfx::Drink, "sounds/drink.ogg"),
@ -90,7 +89,6 @@ pub enum Sfx {
BGMActualJupiterRecording, BGMActualJupiterRecording,
BGMTakeoff, BGMTakeoff,
Click, Click,
Click3,
Connect, Connect,
Crash, Crash,
Drink, Drink,
@ -119,7 +117,6 @@ pub fn str2sfx(sfx_label: &str) -> Sfx {
"exit" => Sfx::ExitVehicle, "exit" => Sfx::ExitVehicle,
"honk" => Sfx::Honk, "honk" => Sfx::Honk,
"click" => Sfx::Click, "click" => Sfx::Click,
"click3" => Sfx::Click3,
"drink" => Sfx::Drink, "drink" => Sfx::Drink,
"woosh" => Sfx::Woosh, "woosh" => Sfx::Woosh,
"zoom" => Sfx::Zoom, "zoom" => Sfx::Zoom,

View file

@ -360,12 +360,13 @@
- chat: Luna - chat: Luna
- "if $$player_suit_health_percent < 100": - "if $$player_suit_health_percent < 100":
- Holy shit! Look at all those scratches and tears on your suit! - Holy shit!
- Look at all those scratches and tears on your suit!
- script: repairsuit - script: repairsuit
- set: grateful - set: grateful
- Let me fix that! - Let me fix that!
- script: refilloxygen 1
- And I topped off your oxygen tank while I'm at it. - And I topped off your oxygen tank while I'm at it.
- script: refilloxygen 1
- goto: mainnode - goto: mainnode
- Oh hey you! Have an oxygen refill! - Oh hey you! Have an oxygen refill!
- script: refilloxygen 1 - script: refilloxygen 1
@ -373,7 +374,7 @@
- label: mainnode - label: mainnode
- if: "$grateful" - if: "$grateful"
Thanks for the help!: Thank you so much!:
- No problem at all! - No problem at all!
- set: grateful 0 - set: grateful 0
- goto: mainnode - goto: mainnode
@ -413,7 +414,8 @@
- goto: EXIT - goto: EXIT
- goto: mainnode - goto: mainnode
- What are you up to?: - What are you up to?:
- Tinkering on various projects and running a workshop. Come by if you need any repairs! - I'm running a workshop. Come by if you need any repairs!
- Tinkering on various projects.
- What kind of projects?: - What kind of projects?:
- A tuned MotorAce spaceship, an impact dampener, and... a secret project. - A tuned MotorAce spaceship, an impact dampener, and... a secret project.
- label: projects - label: projects
@ -466,15 +468,17 @@
- Uh huh. - Uh huh.
- Hey, I gotta do some stuff, see you around. - Hey, I gotta do some stuff, see you around.
- goto: EXIT - goto: EXIT
- Into the future only, of course. - In the future only, of course.
- label: continuemonologue - label: continuemonologue
- I want to get all the way out to the edge of the visible universe. - I want to get all the way out to the edge of the visible universe, to the end of time, and watch the world evaporate into nothingness.
- To the end of time, to watch the world evaporate into nothingness.
- Got the popcorn waiting already. - Got the popcorn waiting already.
- This is the ultimate engineering challenge, but I'm convinced that it is possible. - This is the ultimate engineering challenge, but I'm convinced that it is possible, and I just *have* to do this.
- I just *have* to do this. - And when I work on it, the whole universe turns silent.
- There is just me, my tools, and the metal.
- It's bliss.
- Fascinating.: - Fascinating.:
- Thanks for listening. I appreciate it. - Thanks for listening. I appreciate it.
- Usually nobody cares.
- goto: projects - goto: projects
- Wow, you're edgy.: - Wow, you're edgy.:
- And you're a rounding error. - And you're a rounding error.
@ -482,11 +486,9 @@
- goto: EXIT - goto: EXIT
- Yeah, sorry for the monologue. Anything else? - Yeah, sorry for the monologue. Anything else?
- goto: projects - goto: projects
- There was something else I wanted...: - Good luck with that!:
- Thanks!
- goto: mainnode - goto: mainnode
- Bye.:
- So long, drifter!
- goto: EXIT
- goto: timeout - goto: timeout
- Good luck with that!: - Good luck with that!:
- Thanks! - Thanks!
@ -498,14 +500,15 @@
- if ~$thinking: - if ~$thinking:
- Well, uh... - Well, uh...
- set: thinking - set: thinking
- Don't take it personally, but... - How should I put this? Don't take it personally, but...
- I don't really like people. - I really don't like people.
- Don't get me wrong, I'm happy to help you. - I'm happy to help you, don't get me wrong.
- But... not really because I care about you.
- I enjoy the challenge of fixing, mending, creating. - I enjoy the challenge of fixing, mending, creating.
- People in general, though, ravage and exploit. - Humans in general, though, ravage and exploit.
- It's in their nature, and I can't stand it. - It's in their nature, and I can't stand it.
- I just want to get away from all this insanity... - I just want to get away. From all this insanity, triviality,...
- Just want to tinker without anyone bothering me. - Just want to pursue my projects without anyone standing in my way.
- goto: mainnode - goto: mainnode
- if: "$timetravel" - if: "$timetravel"
Do you think time travel into the past is possible?: Do you think time travel into the past is possible?:
@ -569,7 +572,7 @@
- We have talked before. You told me to die, come back to you with a chef hat, and say that sentence.: - We have talked before. You told me to die, come back to you with a chef hat, and say that sentence.:
- Hah, so the plan worked out! YES! - Hah, so the plan worked out! YES!
- Let me apologize though. I must have been rude before you showed me proof for your story. - Let me apologize though. I must have been rude before you showed me proof for your story.
- There are just so many bullshitters in the world and I don't have the patience anymore. - There are just so many bullshiters in the world and I don't have the patience anymore.
- But I believe you now. - But I believe you now.
- If there is *anything* I can do for you, let me know. This is amazing! - If there is *anything* I can do for you, let me know. This is amazing!
- goto: mainnode - goto: mainnode

View file

@ -218,7 +218,6 @@ pub fn handle_game_event(
} }
} }
GameEvent::SetMenu(turn) => { GameEvent::SetMenu(turn) => {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
settings.menu_active = turn.to_bool(settings.menu_active); settings.menu_active = turn.to_bool(settings.menu_active);
for mut window in &mut q_window { for mut window in &mut q_window {
window.cursor.grab_mode = if settings.menu_active { window.cursor.grab_mode = if settings.menu_active {

View file

@ -1080,6 +1080,7 @@ fn handle_input(
fn handle_target_event( fn handle_target_event(
mut commands: Commands, mut commands: Commands,
settings: Res<Settings>,
mut er_target: EventReader<TargetEvent>, mut er_target: EventReader<TargetEvent>,
mut ew_sfx: EventWriter<audio::PlaySfxEvent>, mut ew_sfx: EventWriter<audio::PlaySfxEvent>,
mut ew_achievement: EventWriter<game::AchievementEvent>, mut ew_achievement: EventWriter<game::AchievementEvent>,
@ -1104,8 +1105,8 @@ fn handle_target_event(
} }
} }
} }
if play_sfx { if play_sfx && !settings.mute_sfx {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click3)); ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
} }
break; // Only accept a single event per frame break; // Only accept a single event per frame
} }

View file

@ -543,7 +543,7 @@ pub fn handle_input(
} else { } else {
menustate.cursor.saturating_sub(1) menustate.cursor.saturating_sub(1)
}; };
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click3)); ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
ew_updatemenu.send(UpdateMenuEvent); ew_updatemenu.send(UpdateMenuEvent);
} }
if keyboard_input.just_pressed(settings.key_back) if keyboard_input.just_pressed(settings.key_back)
@ -555,7 +555,7 @@ pub fn handle_input(
} else { } else {
menustate.cursor.saturating_add(1) menustate.cursor.saturating_add(1)
}; };
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click3)); ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
ew_updatemenu.send(UpdateMenuEvent); ew_updatemenu.send(UpdateMenuEvent);
} }
if keyboard_input.just_pressed(settings.key_interact) if keyboard_input.just_pressed(settings.key_interact)