Compare commits

...

2 commits

6 changed files with 28 additions and 28 deletions

BIN
assets/sounds/click3.ogg Normal file

Binary file not shown.

View file

@ -64,6 +64,7 @@ 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"),
@ -89,6 +90,7 @@ pub enum Sfx {
BGMActualJupiterRecording, BGMActualJupiterRecording,
BGMTakeoff, BGMTakeoff,
Click, Click,
Click3,
Connect, Connect,
Crash, Crash,
Drink, Drink,
@ -117,6 +119,7 @@ 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,13 +360,12 @@
- chat: Luna - chat: Luna
- "if $$player_suit_health_percent < 100": - "if $$player_suit_health_percent < 100":
- Holy shit! - Holy shit! Look at all those scratches and tears on your suit!
- 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!
- And I topped off your oxygen tank while I'm at it.
- script: refilloxygen 1 - script: refilloxygen 1
- And I topped off your oxygen tank while I'm at it.
- goto: mainnode - goto: mainnode
- Oh hey you! Have an oxygen refill! - Oh hey you! Have an oxygen refill!
- script: refilloxygen 1 - script: refilloxygen 1
@ -374,7 +373,7 @@
- label: mainnode - label: mainnode
- if: "$grateful" - if: "$grateful"
Thank you so much!: Thanks for the help!:
- No problem at all! - No problem at all!
- set: grateful 0 - set: grateful 0
- goto: mainnode - goto: mainnode
@ -414,8 +413,7 @@
- goto: EXIT - goto: EXIT
- goto: mainnode - goto: mainnode
- What are you up to?: - What are you up to?:
- I'm running a workshop. Come by if you need any repairs! - Tinkering on various projects and 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
@ -468,17 +466,15 @@
- 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
- In the future only, of course. - Into the future only, of course.
- label: continuemonologue - label: continuemonologue
- 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. - I want to get all the way out to the edge of the visible universe.
- 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, and I just *have* to do this. - This is the ultimate engineering challenge, but I'm convinced that it is possible.
- And when I work on it, the whole universe turns silent. - I just *have* to do this.
- 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.
@ -486,9 +482,11 @@
- goto: EXIT - goto: EXIT
- Yeah, sorry for the monologue. Anything else? - Yeah, sorry for the monologue. Anything else?
- goto: projects - goto: projects
- Good luck with that!: - There was something else I wanted...:
- 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!
@ -500,15 +498,14 @@
- if ~$thinking: - if ~$thinking:
- Well, uh... - Well, uh...
- set: thinking - set: thinking
- How should I put this? Don't take it personally, but... - Don't take it personally, but...
- I really don't like people. - I don't really like people.
- I'm happy to help you, don't get me wrong. - Don't get me wrong, I'm happy to help you.
- But... not really because I care about you.
- I enjoy the challenge of fixing, mending, creating. - I enjoy the challenge of fixing, mending, creating.
- Humans in general, though, ravage and exploit. - People 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, triviality,... - I just want to get away from all this insanity...
- Just want to pursue my projects without anyone standing in my way. - Just want to tinker without anyone bothering me.
- 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?:
@ -572,7 +569,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 bullshiters in the world and I don't have the patience anymore. - There are just so many bullshitters 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,6 +218,7 @@ 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,7 +1080,6 @@ 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>,
@ -1105,8 +1104,8 @@ fn handle_target_event(
} }
} }
} }
if play_sfx && !settings.mute_sfx { if play_sfx {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click)); ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click3));
} }
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::Click)); ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click3));
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::Click)); ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click3));
ew_updatemenu.send(UpdateMenuEvent); ew_updatemenu.send(UpdateMenuEvent);
} }
if keyboard_input.just_pressed(settings.key_interact) if keyboard_input.just_pressed(settings.key_interact)