Explorar o código

enabled, volume for AmbientSound

Darren Ranalli %!s(int64=22) %!d(string=hai) anos
pai
achega
b93d54401b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      direct/src/level/EntityTypes.py

+ 2 - 0
direct/src/level/EntityTypes.py

@@ -124,6 +124,8 @@ class AmbientSound(Nodepath):
     type = 'ambientSound'
     type = 'ambientSound'
     attribs = (
     attribs = (
         ('soundPath', '', 'bamfilename'),
         ('soundPath', '', 'bamfilename'),
+        ('volume', 1, 'float', {'min':0,'max':1}),
+        ('enabled', 1, 'bool'),
         )
         )
 
 
 class PropSpinner(Entity):
 class PropSpinner(Entity):