Procházet zdrojové kódy

enabled, volume for AmbientSound

Darren Ranalli před 22 roky
rodič
revize
b93d54401b
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      direct/src/level/EntityTypes.py

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

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