View Single Post
  #6  
Unread 03-12-2005, 01:18 PM
Kosmos's Avatar
Kosmos Kosmos is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Lucan DLere
Posts: 581
Default

Quote:
Originally Posted by SOE_Bobble
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
Very, very nice! Thanks for the tip!!
Reply With Quote