mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
45 lines
1.6 KiB
Python
45 lines
1.6 KiB
Python
|
from pandac.PandaModules import Vec4
|
||
|
|
||
|
from toontown.safezone.DDSafeZoneLoader import DDSafeZoneLoader
|
||
|
from toontown.town.DDTownLoader import DDTownLoader
|
||
|
from toontown.toonbase import ToontownGlobals
|
||
|
from toontown.hood.ToonHood import ToonHood
|
||
|
|
||
|
|
||
|
class DDHood(ToonHood):
|
||
|
notify = directNotify.newCategory('DDHood')
|
||
|
|
||
|
ID = ToontownGlobals.DonaldsDock
|
||
|
TOWNLOADER_CLASS = DDTownLoader
|
||
|
SAFEZONELOADER_CLASS = DDSafeZoneLoader
|
||
|
STORAGE_DNA = 'phase_6/dna/storage_DD.pdna'
|
||
|
SKY_FILE = 'phase_3.5/models/props/BR_sky'
|
||
|
SPOOKY_SKY_FILE = 'phase_3.5/models/props/BR_sky'
|
||
|
TITLE_COLOR = (0.8, 0.6, 0.5, 1.0)
|
||
|
|
||
|
HOLIDAY_DNA = {
|
||
|
ToontownGlobals.WINTER_DECORATIONS: ['phase_6/dna/winter_storage_DD.pdna'],
|
||
|
ToontownGlobals.WACKY_WINTER_DECORATIONS: ['phase_6/dna/winter_storage_DD.pdna'],
|
||
|
ToontownGlobals.HALLOWEEN_PROPS: ['phase_6/dna/halloween_props_storage_DD.pdna'],
|
||
|
ToontownGlobals.SPOOKY_PROPS: ['phase_6/dna/halloween_props_storage_DD.pdna']}
|
||
|
|
||
|
def __init__(self, parentFSM, doneEvent, dnaStore, hoodId):
|
||
|
ToonHood.__init__(self, parentFSM, doneEvent, dnaStore, hoodId)
|
||
|
|
||
|
# Load content pack ambience settings:
|
||
|
ambience = contentPacksMgr.getAmbience('donalds-dock')
|
||
|
|
||
|
color = ambience.get('underwater-color')
|
||
|
if color is not None:
|
||
|
try:
|
||
|
self.underwaterColor = Vec4(color['r'], color['g'], color['b'], color['a'])
|
||
|
except Exception, e:
|
||
|
raise ContentPackError(e)
|
||
|
elif self.underwaterColor is None:
|
||
|
self.underwaterColor = Vec4(0, 0, 0.6, 1)
|
||
|
|
||
|
def load(self):
|
||
|
ToonHood.load(self)
|
||
|
|
||
|
self.fog = Fog('DDFog')
|