def undecorate(self):
     if (self.__checkHoodValidity()
             or self.__checkStreetValidity()) and hasattr(
                 base.cr.playGame.hood,
                 'sky') and base.cr.playGame.hood.sky:
         postShow = Sequence(
             Parallel(
                 LerpColorScaleInterval(base.cr.playGame.hood.sky, 1.5,
                                        Vec4(1, 1, 1, 1)),
                 LerpColorScaleInterval(base.cr.playGame.hood.loader.geom,
                                        2.5, Vec4(1, 1, 1, 1))),
             Func(self.__stopSpookySky))
         postShow.start()
     distributedEstate = base.cr.doFind('DistributedEstate')
     if distributedEstate:
         distributedEstate.unloadWitch()
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     if len(holidayIds) > 0:
         self.decorate()
         return
     storageFile = base.cr.playGame.hood.storageDNAFile
     if storageFile:
         loadDNAFile(self.dnaStore, storageFile, CSDefault)
     self.swapIval = self.getSwapVisibleIval()
     if self.swapIval:
         self.swapIval.start()
Example #2
0
    def undecorate(self):

        # Fixes transition related crashes
        if (self.__checkHoodValidity() or self.__checkStreetValidity()) and hasattr(base.cr.playGame.hood, "sky") \
        and base.cr.playGame.hood.sky:
            postShow = Sequence(
                Parallel(
                    LerpColorScaleInterval(base.cr.playGame.hood.sky, 1.5,
                                           Vec4(1, 1, 1, 1)),
                    LerpColorScaleInterval(base.cr.playGame.hood.loader.geom,
                                           2.5, Vec4(1, 1, 1, 1)),
                ),
                Func(self.__stopSpookySky),
            )
            postShow.start()

        # Replace the witch wiht the plane
        distributedEstate = base.cr.doFind("DistributedEstate")

        if distributedEstate:
            distributedEstate.unloadWitch()

        # if there are any other decoration holidays running
        holidayIds = base.cr.newsManager.getDecorationHolidayId()
        if len(holidayIds) > 0:
            self.decorate()
            return

        # Reload the regular storage file
        storageFile = base.cr.playGame.hood.storageDNAFile
        if storageFile:
            loadDNAFile(self.dnaStore, storageFile, CSDefault)
        self.swapIval = self.getSwapVisibleIval()
        if self.swapIval:
            self.swapIval.start()
Example #3
0
 def updateHoodDNAStore(self):
     # Load the specified storage files for this hood to overwrite
     # DNA storage with seasonal specific files
     hood = base.cr.playGame.hood
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     for holiday in holidayIds:
         for storageFile in hood.holidayStorageDNADict.get(holiday, []):
             loadDNAFile(self.dnaStore, storageFile, CSDefault)
 def undecorate(self):
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     if len(holidayIds) > 0:
         self.decorate()
         return
     storageFile = base.cr.playGame.hood.storageDNAFile
     if storageFile:
         loadDNAFile(self.dnaStore, storageFile, CSDefault)
     self.swapIval = self.getSwapVisibleIval()
     if self.swapIval:
         self.swapIval.start()
 def undecorate(self):
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     if len(holidayIds) > 0:
         self.decorate()
         return
     storageFile = base.cr.playGame.hood.storageDNAFile
     if storageFile:
         loadDNAFile(self.dnaStore, storageFile, CSDefault)
     self.swapIval = self.getSwapVisibleIval()
     if self.swapIval:
         self.swapIval.start()
Example #6
0
 def undecorate(self):
     if base.config.GetBool('want-crashedLeaderBoard-Smoke', 1):
         self.stopSmokeEffect()
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     if len(holidayIds) > 0:
         self.decorate()
         return
     storageFile = base.cr.playGame.hood.storageDNAFile
     if storageFile:
         loadDNAFile(self.dnaStore, storageFile, CSDefault)
     self.swapIval = self.getSwapVisibleIval()
     if self.swapIval:
         self.swapIval.start()
 def undecorate(self):
     if base.config.GetBool('want-crashedLeaderBoard-Smoke', 1):
         self.stopSmokeEffect()
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     if len(holidayIds) > 0:
         self.decorate()
         return
     storageFile = base.cr.playGame.hood.storageDNAFile
     if storageFile:
         loadDNAFile(self.dnaStore, storageFile, CSDefault)
     self.swapIval = self.getSwapVisibleIval()
     if self.swapIval:
         self.swapIval.start()
Example #8
0
 def undecorate(self):
     # if there are any other decoration holidays running
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     if len(holidayIds) > 0:
         self.decorate()
         return
     # Reload the regular storage file
     storageFile = base.cr.playGame.hood.storageDNAFile
     if storageFile:
         loadDNAFile(self.dnaStore, storageFile, CSDefault)
     self.swapIval = self.getSwapVisibleIval()
     if self.swapIval:
         self.swapIval.start()
 def undecorate(self):
     if (self.__checkHoodValidity() or self.__checkStreetValidity()) and hasattr(base.cr.playGame.hood, 'sky') and base.cr.playGame.hood.sky:
         postShow = Sequence(Parallel(LerpColorScaleInterval(base.cr.playGame.hood.sky, 1.5, Vec4(1, 1, 1, 1)), LerpColorScaleInterval(base.cr.playGame.hood.loader.geom, 2.5, Vec4(1, 1, 1, 1))), Func(self.__stopSpookySky))
         postShow.start()
     distributedEstate = base.cr.doFind('DistributedEstate')
     if distributedEstate:
         distributedEstate.unloadWitch()
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     if len(holidayIds) > 0:
         self.decorate()
         return
     storageFile = base.cr.playGame.hood.storageDNAFile
     if storageFile:
         loadDNAFile(self.dnaStore, storageFile, CSDefault)
     self.swapIval = self.getSwapVisibleIval()
     if self.swapIval:
         self.swapIval.start()
 def updateHoodDNAStore(self):
     hood = base.cr.playGame.hood
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     for holiday in holidayIds:
         for storageFile in hood.holidayStorageDNADict.get(holiday, []):
             loadDNAFile(self.dnaStore, storageFile, CSDefault)
 def updateHoodDNAStore(self):
     hood = base.cr.playGame.hood
     holidayIds = base.cr.newsManager.getDecorationHolidayId()
     for holiday in holidayIds:
         for storageFile in hood.holidayStorageDNADict.get(holiday, []):
             loadDNAFile(self.dnaStore, storageFile, CSDefault)