oldschool-toontown/toontown/hood/TutorialHood.py

38 lines
1.1 KiB
Python
Raw Permalink Normal View History

from panda3d.core import *
from . import ToonHood
2019-11-02 17:27:54 -05:00
from toontown.town import TutorialTownLoader
from toontown.toonbase.ToontownGlobals import *
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)