mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
AmbientSound plays on creation, can move it in the editor
This commit is contained in:
parent
d7d74c0d22
commit
1b04e361d6
@ -4,8 +4,10 @@ import BasicEntities
|
|||||||
class AmbientSound(BasicEntities.NodePathEntity):
|
class AmbientSound(BasicEntities.NodePathEntity):
|
||||||
def __init__(self, level, entId):
|
def __init__(self, level, entId):
|
||||||
BasicEntities.NodePathEntity.__init__(self, level, entId)
|
BasicEntities.NodePathEntity.__init__(self, level, entId)
|
||||||
|
self.initSound()
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
|
self.destroySound()
|
||||||
BasicEntities.NodePathEntity.destroy(self)
|
BasicEntities.NodePathEntity.destroy(self)
|
||||||
|
|
||||||
def initSound(self):
|
def initSound(self):
|
||||||
|
@ -119,7 +119,7 @@ class VisibilityExtender(Entity):
|
|||||||
('newZones', [], 'visZoneList'),
|
('newZones', [], 'visZoneList'),
|
||||||
)
|
)
|
||||||
|
|
||||||
class AmbientSound(Entity):
|
class AmbientSound(Nodepath):
|
||||||
type = 'ambientSound'
|
type = 'ambientSound'
|
||||||
attribs = (
|
attribs = (
|
||||||
('soundPath', '', 'bamfilename'),
|
('soundPath', '', 'bamfilename'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user