Widget Candy. .SetSounds()

Widget Candy
Send Snippet To: Save this snippet to Code Collector Pro -- view all roger's snippets
language: Other
license: Other

Code for Snippet:

                
 
 
While you can apply sound effects to widgets individually using a widget's .tapSound, .dragSound, .releaseSound and .changeSound properties, you can use SetSounds() to globally set (or disable) sound effects for all widgets at once. Using this command will override the individual settings of any existing widgets and set the default values for the widgets you create at a later time.
 
Note: If you create any widgets after calling SetSound and specify individual sound properties for a widget, the individual widget settings are used then.
 
SetSounds (tapSound, releaseSound, changeSound, selectSound)
 
tapSoundID, releaseSoundID, changeSoundID ,selectSoundID	
 
Sound ID to use (as defined in your theme's .lua settings file). To disable a sound, pass nil.
comments powered by Disqus

Info

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 5
Date Added: 2018-01-10 14:08:38
Last Modified: 2018-01-10 09:54:13

Web Analytics