def disable(self):
     self.ignoreAll()
     dustCloud = DustCloud.DustCloud(fBillboard=0, wantSound=1)
     dustCloud.setBillboardAxis(2.0)
     dustCloud.setScale(0.6)
     dustCloud.createTrack()
     Sequence(Func(dustCloud.reparentTo, render), Func(dustCloud.setPos, self.getPos()), dustCloud.track, Func(dustCloud.detachNode), Func(dustCloud.destroy)).start()
     DistributedFurnitureItem.disable(self)
    def disable(self):
        av = base.cr.doId2do.get(self.avId)

        if av:
            self.resetAvatar(av)

        self.ignoreAll()
        DistributedFurnitureItem.disable(self)
    def disable(self):
        av = base.cr.doId2do.get(self.avId)

        if av:
            self.resetAvatar(av)

        self.ignoreAll()
        DistributedFurnitureItem.disable(self)
Exemple #4
0
 def disable(self):
     self.ignoreAll()
     dustCloud = DustCloud.DustCloud(fBillboard=0, wantSound=1)
     dustCloud.setBillboardAxis(2.0)
     dustCloud.setScale(0.6)
     dustCloud.createTrack()
     Sequence(Func(dustCloud.reparentTo, render),
              Func(dustCloud.setPos, self.getPos()), dustCloud.track,
              Func(dustCloud.detachNode), Func(dustCloud.destroy)).start()
     DistributedFurnitureItem.disable(self)
 def loadModel(self):
     model = DistributedFurnitureItem.loadModel(self)
     cSphere = CollisionSphere(0.0, 0.0, 1.0, 2.25)
     cSphere.setTangible(0)
     colNode = CollisionNode('Crate-%s' % self.doId)
     colNode.addSolid(cSphere)
     cSpherePath = model.attachNewNode(colNode)
     cSpherePath.setCollideMask(ToontownGlobals.WallBitmask)
     self.accept('enterCrate-%s' % self.doId, self.__enterSphere)
     return model
Exemple #6
0
 def loadModel(self):
     model = DistributedFurnitureItem.loadModel(self)
     cSphere = CollisionSphere(0.0, 0.0, 1.0, 2.25)
     cSphere.setTangible(0)
     colNode = CollisionNode('Crate-%s' % self.doId)
     colNode.addSolid(cSphere)
     cSpherePath = model.attachNewNode(colNode)
     cSpherePath.setCollideMask(ToontownGlobals.WallBitmask)
     self.accept('enterCrate-%s' % self.doId, self.__enterSphere)
     return model
Exemple #7
0
    def loadModel(self, animate=1):
        model = DistributedFurnitureItem.loadModel(self)

        if animate:
            pos = CatalogFurnitureItem.TvToPosScale[self.item.furnitureType]
            self.screen = NodePath(CardMaker('tv-screen').generate())

            model.find('**/toonTownBugTV_screen').hide()
            self.screen.reparentTo(model)
            self.screen.setScale(*pos[1])
            self.screen.setPos(*pos[0])
            self.resetScreen()

        cSphere = CollisionSphere(0.0, -1.5, 1.0, 1.575)
        cSphere.setTangible(0)
        colNode = CollisionNode('TV-%s' % self.doId)
        colNode.addSolid(cSphere)
        cSpherePath = model.attachNewNode(colNode)
        cSpherePath.setCollideMask(ToontownGlobals.WallBitmask)
        self.accept('enterTV-%s' % self.doId, self.__enterSphere)
        return model
    def loadModel(self, animate=1):
        model = DistributedFurnitureItem.loadModel(self)

        if animate:
            pos = CatalogFurnitureItem.TvToPosScale[self.item.furnitureType]
            self.screen = NodePath(CardMaker("tv-screen").generate())

            model.find("**/toonTownBugTV_screen").hide()
            self.screen.reparentTo(model)
            self.screen.setScale(*pos[1])
            self.screen.setPos(*pos[0])
            self.resetScreen()

        cSphere = CollisionSphere(0.0, -1.5, 1.0, 1.575)
        cSphere.setTangible(0)
        colNode = CollisionNode("TV-%s" % self.doId)
        colNode.addSolid(cSphere)
        cSpherePath = model.attachNewNode(colNode)
        cSpherePath.setCollideMask(ToontownGlobals.WallBitmask)
        self.accept("enterTV-%s" % self.doId, self.__enterSphere)
        return model
 def __init__(self, cr):
     DistributedFurnitureItem.__init__(self, cr)
     self.dialog = None
     self.accept('exitingStoppedState', self.destroyDialog)
Exemple #10
0
 def disable(self):
     self.ignoreAll()
     self.destroyGui()
     self.destroySound()
     DistributedFurnitureItem.disable(self)
Exemple #11
0
 def __init__(self, cr):
     DistributedFurnitureItem.__init__(self, cr)
     self.dialog = None
     self.screen = None
     self.sound = None
     self.accept('exitingStoppedState', self.destroyGui)
 def __init__(self, cr):
     DistributedFurnitureItem.__init__(self, cr)
     self.dialog = None
     self.exitButton = None
     self.avId = ToontownGlobals.CHAIR_NONE
     self.accept('exitingStoppedState', self.destroyGui)
 def __init__(self, cr):
     DistributedFurnitureItem.__init__(self, cr)
     self.dialog = None
     self.exitButton = None
     self.avId = ToontownGlobals.CHAIR_NONE
     self.accept('exitingStoppedState', self.destroyGui)
 def disable(self):
     self.ignoreAll()
     self.destroyGui()
     self.destroySound()
     DistributedFurnitureItem.disable(self)
 def __init__(self, cr):
     DistributedFurnitureItem.__init__(self, cr)
     self.dialog = None
     self.screen = None
     self.sound = None
     self.accept("exitingStoppedState", self.destroyGui)