Browse Source

make functions to get the default rollover and click sounds

Cary Sandvig 25 years ago
parent
commit
ac1556a1b4
1 changed files with 6 additions and 0 deletions
  1. 6 0
      direct/src/gui/GuiGlobals.py

+ 6 - 0
direct/src/gui/GuiGlobals.py

@@ -34,6 +34,12 @@ def setDefaultDrawOrder(newDrawOrder):
     global drawOrder
     drawOrder = newDrawOrder
 
+def getDefaultRolloverSound():
+    return base.loadSfx("phase_3/audio/sfx/GUI_rollover.mp3")
+
+def getDefaultClickSound():
+    return base.loadSfx("phase_3/audio/sfx/GUI_create_toon_fwd.mp3")
+
 def getNewRolloverFunctor(sound = None):
     val = None
     if sound: