take turning on/off sfx into account

This commit is contained in:
Cary Sandvig 2001-05-03 22:35:39 +00:00
parent 3047c95b26
commit adfff753dd
1 changed files with 8 additions and 2 deletions

View File

@ -40,13 +40,19 @@ def getDefaultRolloverSound():
global sndRollover
if sndRollover == None:
sndRollover = base.loadSfx("phase_3/audio/sfx/GUI_rollover.mp3")
return sndRollover
if base.wantSfx:
return sndRollover
else:
return None
def getDefaultClickSound():
global sndClick
if sndClick == None:
sndClick = base.loadSfx("phase_3/audio/sfx/GUI_create_toon_fwd.mp3")
return sndClick
if base.wantSfx:
return sndClick
else:
return None
def getNewRolloverFunctor(sound = None):
val = None