XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
sound https://www.bbs.xwidget.com/viewtopic.php?f=8&t=4467 |
Page 1 of 1 |
Author: | italo11 [ May 2nd, 2014, 2:13 am ] |
Post subject: | sound |
how to add sound when you hover the mouse |
Author: | digigamer [ May 2nd, 2014, 3:05 am ] |
Post subject: | Re: sound |
Clarification needed: Hover what, Anywhere on the widget? or just a specific area on the widget. The !PlaySound command does that quite easily: !PlaySound=file.wav Note, !PlaySound only supports files in PCM, and other uncompressed Wave files. (Support for WavPak, may be) So, if you want to play sound in any other format, you need to convert them to Wave files. Another suggestion, keep the sounds within a second! users won't appreciate long files for UI input gestures like mouse hovers (Just stated a line from our UX team... ![]() |
Author: | Jimking [ May 2nd, 2014, 3:20 am ] |
Post subject: | Re: sound |
Just add an empty "image"/component (place it where you want to have the mouse movement) and use the "On Mouse Enter" function and use the DG's script. Add a .wav file in your widget's folder and the script will recognize the sound. As DG said select a short sound and not to high quality to avoid cpu consumption during the playback.. |
Author: | italo11 [ May 2nd, 2014, 4:18 am ] |
Post subject: | Re: sound |
OK thank you |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |