diff --git a/src/features/hud/mod.rs b/src/features/hud/mod.rs index a753243..c780242 100644 --- a/src/features/hud/mod.rs +++ b/src/features/hud/mod.rs @@ -83,7 +83,14 @@ fn buttons( mut savegame_messages: MessageWriter, mut next_state: ResMut>, mut timer_settings: ResMut, + keys: Res>, ) { + let shift_multiplier = if keys.any_pressed([KeyCode::ShiftLeft, KeyCode::ShiftRight]) { + 10 + } else { + 1 + }; + for (interaction, button_type) in &mut interaction_query { match *interaction { Interaction::Pressed => match button_type { @@ -99,10 +106,10 @@ fn buttons( } ButtonType::SettingsTimerChange { input, amount } => match input { SettingsTimerInput::Minutes(timer_type) => { - timer_settings.change(timer_type, 60 * amount) + timer_settings.change(timer_type, 60 * amount * shift_multiplier) } SettingsTimerInput::Seconds(timer_type) => { - timer_settings.change(timer_type, *amount) + timer_settings.change(timer_type, *amount * shift_multiplier) } }, },