35 lines
1.4 KiB
Python
35 lines
1.4 KiB
Python
from pandac.PandaModules import *
|
|
import ToonHood
|
|
from toontown.town import BRTownLoader
|
|
from toontown.safezone import BRSafeZoneLoader
|
|
from toontown.toonbase.ToontownGlobals import *
|
|
|
|
class BRHood(ToonHood.ToonHood):
|
|
|
|
def __init__(self, parentFSM, doneEvent, dnaStore, hoodId):
|
|
ToonHood.ToonHood.__init__(self, parentFSM, doneEvent, dnaStore, hoodId)
|
|
self.id = TheBrrrgh
|
|
self.townLoaderClass = BRTownLoader.BRTownLoader
|
|
self.safeZoneLoaderClass = BRSafeZoneLoader.BRSafeZoneLoader
|
|
self.storageDNAFile = 'phase_8/dna/storage_BR.dna'
|
|
self.holidayStorageDNADict = {WINTER_DECORATIONS: ['phase_8/dna/winter_storage_BR.dna'],
|
|
WACKY_WINTER_DECORATIONS: ['phase_8/dna/winter_storage_BR.dna'],
|
|
HALLOWEEN_PROPS: ['phase_8/dna/halloween_props_storage_BR.dna'],
|
|
SPOOKY_PROPS: ['phase_8/dna/halloween_props_storage_BR.dna']}
|
|
self.skyFile = 'phase_3.5/models/props/BR_sky'
|
|
self.spookySkyFile = 'phase_3.5/models/props/BR_sky'
|
|
self.titleColor = (0.3, 0.6, 1.0, 1.0)
|
|
|
|
def load(self):
|
|
ToonHood.ToonHood.load(self)
|
|
self.parentFSM.getStateNamed('BRHood').addChild(self.fsm)
|
|
|
|
def unload(self):
|
|
self.parentFSM.getStateNamed('BRHood').removeChild(self.fsm)
|
|
ToonHood.ToonHood.unload(self)
|
|
|
|
def enter(self, *args):
|
|
ToonHood.ToonHood.enter(self, *args)
|
|
|
|
def exit(self):
|
|
ToonHood.ToonHood.exit(self)
|