2022-12-16 18:40:57 -06:00
|
|
|
from panda3d.core import *
|
2019-12-30 00:07:56 -06:00
|
|
|
from . import ToonHood
|
2019-11-02 17:27:54 -05:00
|
|
|
from toontown.town import TutorialTownLoader
|
|
|
|
from toontown.toonbase.ToontownGlobals import *
|
2019-12-30 00:07:56 -06:00
|
|
|
from . import SkyUtil
|
2019-11-02 17:27:54 -05:00
|
|
|
|
|
|
|
class TutorialHood(ToonHood.ToonHood):
|
|
|
|
|
|
|
|
def __init__(self, parentFSM, doneEvent, dnaStore, hoodId):
|
|
|
|
ToonHood.ToonHood.__init__(self, parentFSM, doneEvent, dnaStore, hoodId)
|
|
|
|
self.id = Tutorial
|
|
|
|
self.townLoaderClass = TutorialTownLoader.TutorialTownLoader
|
|
|
|
self.safeZoneLoaderClass = None
|
|
|
|
self.storageDNAFile = None
|
|
|
|
self.skyFile = 'phase_3.5/models/props/TT_sky'
|
|
|
|
self.titleColor = (1.0, 0.5, 0.4, 1.0)
|
|
|
|
return
|
|
|
|
|
|
|
|
def load(self):
|
|
|
|
ToonHood.ToonHood.load(self)
|
|
|
|
self.parentFSM.getStateNamed('TutorialHood').addChild(self.fsm)
|
|
|
|
|
|
|
|
def unload(self):
|
|
|
|
self.parentFSM.getStateNamed('TutorialHood').removeChild(self.fsm)
|
|
|
|
ToonHood.ToonHood.unload(self)
|
|
|
|
|
|
|
|
def enter(self, *args):
|
|
|
|
ToonHood.ToonHood.enter(self, *args)
|
|
|
|
|
|
|
|
def exit(self):
|
|
|
|
ToonHood.ToonHood.exit(self)
|
|
|
|
|
|
|
|
def skyTrack(self, task):
|
|
|
|
return SkyUtil.cloudSkyTrack(task)
|
|
|
|
|
|
|
|
def startSky(self):
|
|
|
|
SkyUtil.startCloudSky(self)
|