mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
add temporary sfx toggle
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
fps_counter = false
|
fps_counter = false
|
||||||
judge_offset = 0
|
judge_offset = 0
|
||||||
autoplay = false
|
autoplay = false
|
||||||
|
sfx = true
|
||||||
|
|
||||||
[paths]
|
[paths]
|
||||||
tja_path = 'Songs'
|
tja_path = 'Songs'
|
||||||
|
|||||||
@@ -472,6 +472,7 @@ class Player:
|
|||||||
self.draw_drum_hit_list.append(DrumHitEffect(hit_type, config["side"]))
|
self.draw_drum_hit_list.append(DrumHitEffect(hit_type, config["side"]))
|
||||||
|
|
||||||
sound = game_screen.sound_don if hit_type == "DON" else game_screen.sound_kat
|
sound = game_screen.sound_don if hit_type == "DON" else game_screen.sound_kat
|
||||||
|
if get_config()["general"]["sfx"]:
|
||||||
audio.play_sound(sound)
|
audio.play_sound(sound)
|
||||||
|
|
||||||
self.check_note(game_screen, config["note_type"])
|
self.check_note(game_screen, config["note_type"])
|
||||||
|
|||||||
Reference in New Issue
Block a user