Quote:
|
Originally Posted by taco-man
not sure how the buff window works but would it be possible to use the onHide event for the icons to trigger a sound when a buff fades?
|
Yes. You could easily hook into the HideSound property.
I may live to regret not testing this first. However at least I double checked the property names.
Adding one of the sound names to HideSound or ShowSound (or PressSound, ReleaseSound or any of the other *Sound) properties will play a named sound (see the list) in the game only. UIBuilder doesn't know about the sound list.
If you specify a wave file instead (current skin directory or default skin directory or specify a subdirectory and file) the sound will also play in UIBuilder.
PressSound="sounds/button.wav" - will play in UIBuilder and the game
PressSound="skill_up" - will only play in the game
Blame me and not Cat if the sounds aren't working properly.
MrBobble