Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # В любом файле.
- init python:
- persistent.last_check = _preferences.get_volume("sfx")
- def play_sound_check():
- if persistent.last_check != _preferences.get_volume("sfx"):
- persistent.last_check = _preferences.get_volume("sfx")
- renpy.sound.play("sound_check.mp3", "sound")
- # В screens.rpy найти строчку:
- # bar value Preference("sound volume")
- # И дописать:
- bar value Preference("sound volume") changed play_sound_check()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement