[solved] Adding SFX for all butons

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Kaen
Regular
Posts: 148
Joined: Tue Oct 16, 2012 10:49 pm
Contact:

[solved] Adding SFX for all butons

#1 Post by Kaen »

Hello!

There is a default option to set sfx for button's hover/active state? This is the code I used before the new GUI:

Code: Select all

style.image_button.hover_sound = "audio/sfx/button hover.mp3"
style.image_button.activate_sound = "audio/sfx/button active.mp3"
I haven't found any information on gui.rpy about sounds or image button style.

Thanks in advance~

@edit
Thanks Kia!
Last edited by Kaen on Thu Dec 22, 2016 7:45 am, edited 1 time in total.

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: Adding SFX for all butons

#2 Post by Kia »

try

Code: Select all

    style default:
        hover_sound "ui/sfx/hover.mp3"
        activate_sound "ui/sfx/select.mp3"4

User avatar
scorlight
Regular
Posts: 67
Joined: Fri Sep 13, 2013 7:02 am
Contact:

Re: [solved] Adding SFX for all butons

#3 Post by scorlight »

OMG!!! THANK YOU SO MUCH!!!!! IT WORKED
Artist for rent, see my art here: http://scorlight.deviantart.com/gallery/

Post Reply

Who is online

Users browsing this forum: No registered users