Poodletooth-iLand/toontown/coghq/DistributedCogHQExteriorDoor.py

26 lines
965 B
Python
Raw Normal View History

2015-05-27 08:07:12 -05:00
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from toontown.toonbase import ToontownGlobals
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import ClassicFSM
import DistributedCogHQDoor
from toontown.hood import ZoneUtil
from BossLobbyGui import BossLobbyGui
class DistributedCogHQExteriorDoor(DistributedCogHQDoor.DistributedCogHQDoor):
def __init__(self, cr):
DistributedCogHQDoor.DistributedCogHQDoor.__init__(self, cr)
2015-05-27 14:47:33 -05:00
self.lobbyGui = None
2015-05-27 08:07:12 -05:00
def selectLobby(self, avId):
2015-05-29 15:59:26 -05:00
print("********\nCreating Lobby GUI...\n********")
2015-05-27 08:07:12 -05:00
self.lobbyGui = BossLobbyGui(self.sendConfirmation, avId)
2015-05-30 06:16:23 -05:00
self.lobbyGui.loadFrame(0)
2015-05-27 08:07:12 -05:00
def sendConfirmation(self, avId, status):
self.lobbyGui.destroy()
2015-05-27 14:47:33 -05:00
self.lobbyGui = None
2015-05-29 15:59:26 -05:00
print("********\nGUI Complete.\nSending Confirmation...\n********")
2015-05-27 08:07:12 -05:00
self.sendUpdate('confirmEntrance', [avId, status])