I am having problems changing/disabling the default sounds on a DirectSlider. Attempting to do so by setting rolloverSound and clickSound results in the following error:
KeyError: 'Unknown options "clickSound, rolloverSound" for DirectSlider'
Can anyone help me with this?
from direct.gui.DirectGui import DirectSlider
slider = DirectSlider()
slider.thumb[ 'clickSound' ] = None # or your sound
slider.thumb[ 'rolloverSound' ] = None # or your sound
It works! Thank you so much!
You should also be able to do this in the constructor:
slider = DirectSlider(thumb_clickSound = None, thumb_rolloverSound = None)
That works too. Thank you for your replies!