Ejemplo n.º 1
0
    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 as e:
                raise ContentPackError(e)
        elif self.underwaterColor is None:
            self.underwaterColor = Vec4(0, 0, 0.6, 1)
Ejemplo n.º 2
0
    def load(self):
        ToonHood.load(self)

        self.fog = Fog('DDFog')
Ejemplo n.º 3
0
 def __init__(self, parentFSM, doneEvent, dnaStore, hoodId):
     ToonHood.__init__(self, parentFSM, doneEvent, dnaStore, hoodId)
Ejemplo n.º 4
0
 def load(self):
     ToonHood.load(self)
     self.fog = Fog('DLFog')
Ejemplo n.º 5
0
    def exit(self):
        base.camLens.setNearFar(ToontownGlobals.DefaultCameraNear, ToontownGlobals.DefaultCameraFar)
        base.localAvatar.chatMgr.chatInputSpeedChat.removeGolfMenu()

        ToonHood.exit(self)
Ejemplo n.º 6
0
    def enter(self, requestStatus):
        ToonHood.enter(self, requestStatus)

        base.localAvatar.chatMgr.chatInputSpeedChat.addGolfMenu()
        base.camLens.setNearFar(ToontownGlobals.SpeedwayCameraNear, ToontownGlobals.SpeedwayCameraFar)
Ejemplo n.º 7
0
    def load(self):
        ToonHood.load(self)

        self.fog = Fog("BRFog")
Ejemplo n.º 8
0
 def exit(self):
     base.camLens.setNearFar(ToontownGlobals.DefaultCameraNear,
                             ToontownGlobals.DefaultCameraFar)
     base.localAvatar.chatMgr.chatInputSpeedChat.removeGolfMenu()
     ToonHood.exit(self)
Ejemplo n.º 9
0
 def enter(self, requestStatus):
     ToonHood.enter(self, requestStatus)
     base.localAvatar.chatMgr.chatInputSpeedChat.addGolfMenu()
     base.camLens.setNearFar(ToontownGlobals.SpeedwayCameraNear,
                             ToontownGlobals.SpeedwayCameraFar)
Ejemplo n.º 10
0
    def exit(self):
        base.camLens.setNearFar(ToontownGlobals.DefaultCameraNear, ToontownGlobals.DefaultCameraFar)

        ToonHood.exit(self)
Ejemplo n.º 11
0
    def enter(self, requestStatus):
        ToonHood.enter(self, requestStatus)

        base.camLens.setNearFar(ToontownGlobals.SpeedwayCameraNear, ToontownGlobals.SpeedwayCameraFar)
Ejemplo n.º 12
0
 def __init__(self, parentFSM, doneEvent, dnaStore, hoodId):
     ToonHood.__init__(self, parentFSM, doneEvent, dnaStore, hoodId)
Ejemplo n.º 13
0
 def __init__(self, parentFSM, doneEvent, dnaStore, hoodId):
     ToonHood.__init__(self, parentFSM, doneEvent, dnaStore, hoodId)
     self.underwaterColor = Vec4(0, 0, 0.6, 1)
Ejemplo n.º 14
0
 def __init__(self, parentFSM, doneEvent, dnaStore, hoodId):
     ToonHood.__init__(self, parentFSM, doneEvent, dnaStore, hoodId)
     self.underwaterColor = Vec4(0.23921568627450980392156862745098,
                                 0.84705882352941176470588235294118, 1, 1)
Ejemplo n.º 15
0
    def unload(self):
        ToonHood.unload(self)

        base.setBackgroundColor(ToontownGlobals.DefaultBackgroundColor)
Ejemplo n.º 16
0
    def load(self):
        ToonHood.load(self)

        self.fog = Fog('DDFog')
        base.setBackgroundColor(Vec4(0.4, 0.588, 1, 1))