Merge pull request #14 from LittleToonCat/astronSupport-builtins
Make Astron Support option a built-in variable
This commit is contained in:
commit
7195618d93
9 changed files with 35 additions and 32 deletions
|
@ -22,6 +22,7 @@ class AIBase:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.config = getConfigShowbase()
|
self.config = getConfigShowbase()
|
||||||
__builtins__['__dev__'] = self.config.GetBool('want-dev', 0)
|
__builtins__['__dev__'] = self.config.GetBool('want-dev', 0)
|
||||||
|
__builtins__['astronSupport'] = self.config.GetBool('astron-support', True)
|
||||||
logStackDump = (self.config.GetBool('log-stack-dump', (not __dev__)) or self.config.GetBool('ai-log-stack-dump', (not __dev__)))
|
logStackDump = (self.config.GetBool('log-stack-dump', (not __dev__)) or self.config.GetBool('ai-log-stack-dump', (not __dev__)))
|
||||||
uploadStackDump = self.config.GetBool('upload-stack-dump', 0)
|
uploadStackDump = self.config.GetBool('upload-stack-dump', 0)
|
||||||
if logStackDump or uploadStackDump:
|
if logStackDump or uploadStackDump:
|
||||||
|
|
|
@ -175,8 +175,8 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
self.accountOldAuth = config.GetBool('%s-account-old-auth' % game.name,
|
self.accountOldAuth = config.GetBool('%s-account-old-auth' % game.name,
|
||||||
self.accountOldAuth)
|
self.accountOldAuth)
|
||||||
self.useNewTTDevLogin = base.config.GetBool('use-tt-specific-dev-login', False)
|
self.useNewTTDevLogin = base.config.GetBool('use-tt-specific-dev-login', False)
|
||||||
self.astronSupport = config.GetBool('astron-support', True)
|
astronSupport = config.GetBool('astron-support', True)
|
||||||
if self.astronSupport:
|
if astronSupport:
|
||||||
self.loginInterface = LoginAstronAccount.LoginAstronAccount(self)
|
self.loginInterface = LoginAstronAccount.LoginAstronAccount(self)
|
||||||
self.notify.info('loginInterface: LoginAstronAccount')
|
self.notify.info('loginInterface: LoginAstronAccount')
|
||||||
elif self.useNewTTDevLogin:
|
elif self.useNewTTDevLogin:
|
||||||
|
@ -426,7 +426,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
self.__pendingMessages = {}
|
self.__pendingMessages = {}
|
||||||
self.__doId2pendingInterest = {}
|
self.__doId2pendingInterest = {}
|
||||||
self.centralLogger = self.generateGlobalObject(OtpDoGlobals.OTP_DO_ID_CENTRAL_LOGGER, 'CentralLogger')
|
self.centralLogger = self.generateGlobalObject(OtpDoGlobals.OTP_DO_ID_CENTRAL_LOGGER, 'CentralLogger')
|
||||||
if self.astronSupport:
|
if astronSupport:
|
||||||
self.astronLoginManager = self.generateGlobalObject(OtpDoGlobals.OTP_DO_ID_ASTRON_LOGIN_MANAGER, 'AstronLoginManager')
|
self.astronLoginManager = self.generateGlobalObject(OtpDoGlobals.OTP_DO_ID_ASTRON_LOGIN_MANAGER, 'AstronLoginManager')
|
||||||
|
|
||||||
def startLeakDetector(self):
|
def startLeakDetector(self):
|
||||||
|
@ -524,7 +524,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
return
|
return
|
||||||
|
|
||||||
self.startReaderPollTask()
|
self.startReaderPollTask()
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
self.startHeartbeat()
|
self.startHeartbeat()
|
||||||
newInstall = launcher.getIsNewInstallation()
|
newInstall = launcher.getIsNewInstallation()
|
||||||
newInstall = base.config.GetBool('new-installation', newInstall)
|
newInstall = base.config.GetBool('new-installation', newInstall)
|
||||||
|
@ -946,7 +946,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
|
|
||||||
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
||||||
def enterWaitForAvatarList(self):
|
def enterWaitForAvatarList(self):
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
self.handler = self.handleWaitForAvatarList
|
self.handler = self.handleWaitForAvatarList
|
||||||
self._requestAvatarList()
|
self._requestAvatarList()
|
||||||
|
|
||||||
|
@ -958,7 +958,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
|
|
||||||
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
||||||
def sendGetAvatarsMsg(self):
|
def sendGetAvatarsMsg(self):
|
||||||
if self.astronSupport:
|
if astronSupport:
|
||||||
self.astronLoginManager.sendRequestAvatarList()
|
self.astronLoginManager.sendRequestAvatarList()
|
||||||
else:
|
else:
|
||||||
datagram = PyDatagram()
|
datagram = PyDatagram()
|
||||||
|
@ -1077,7 +1077,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
|
|
||||||
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
||||||
def sendCreateAvatarMsg(self, avDNA, avName, avPosition):
|
def sendCreateAvatarMsg(self, avDNA, avName, avPosition):
|
||||||
if self.astronSupport:
|
if astronSupport:
|
||||||
self.astronLoginManager.sendCreateAvatar(avDNA, avName, avPosition)
|
self.astronLoginManager.sendCreateAvatar(avDNA, avName, avPosition)
|
||||||
else:
|
else:
|
||||||
datagram = PyDatagram()
|
datagram = PyDatagram()
|
||||||
|
@ -1106,14 +1106,14 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
|
|
||||||
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
||||||
def enterWaitForDeleteAvatarResponse(self, potAv):
|
def enterWaitForDeleteAvatarResponse(self, potAv):
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
self.handler = self.handleWaitForDeleteAvatarResponse
|
self.handler = self.handleWaitForDeleteAvatarResponse
|
||||||
self.sendDeleteAvatarMsg(potAv.id)
|
self.sendDeleteAvatarMsg(potAv.id)
|
||||||
self.waitForDatabaseTimeout(requestName='WaitForDeleteAvatarResponse')
|
self.waitForDatabaseTimeout(requestName='WaitForDeleteAvatarResponse')
|
||||||
|
|
||||||
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
||||||
def sendDeleteAvatarMsg(self, avId):
|
def sendDeleteAvatarMsg(self, avId):
|
||||||
if self.astronSupport:
|
if astronSupport:
|
||||||
self.astronLoginManager.sendRequestRemoveAvatar(avId)
|
self.astronLoginManager.sendRequestRemoveAvatar(avId)
|
||||||
else:
|
else:
|
||||||
datagram = PyDatagram()
|
datagram = PyDatagram()
|
||||||
|
@ -1157,7 +1157,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
|
|
||||||
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
||||||
def enterWaitForSetAvatarResponse(self, potAv):
|
def enterWaitForSetAvatarResponse(self, potAv):
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
self.handler = self.handleWaitForSetAvatarResponse
|
self.handler = self.handleWaitForSetAvatarResponse
|
||||||
self.sendSetAvatarMsg(potAv)
|
self.sendSetAvatarMsg(potAv)
|
||||||
self.waitForDatabaseTimeout(requestName='WaitForSetAvatarResponse')
|
self.waitForDatabaseTimeout(requestName='WaitForSetAvatarResponse')
|
||||||
|
@ -1177,7 +1177,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
def sendSetAvatarIdMsg(self, avId):
|
def sendSetAvatarIdMsg(self, avId):
|
||||||
if avId != self.__currentAvId:
|
if avId != self.__currentAvId:
|
||||||
self.__currentAvId = avId
|
self.__currentAvId = avId
|
||||||
if self.astronSupport:
|
if astronSupport:
|
||||||
self.astronLoginManager.sendRequestPlayAvatar(avId)
|
self.astronLoginManager.sendRequestPlayAvatar(avId)
|
||||||
else:
|
else:
|
||||||
datagram = PyDatagram()
|
datagram = PyDatagram()
|
||||||
|
@ -1446,7 +1446,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
@report(types=['args', 'deltaStamp'], dConfigParam='teleport')
|
||||||
def enterWaitOnEnterResponses(self, shardId, hoodId, zoneId, avId):
|
def enterWaitOnEnterResponses(self, shardId, hoodId, zoneId, avId):
|
||||||
self.cleanGameExit = False
|
self.cleanGameExit = False
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
self.handler = self.handleWaitOnEnterResponses
|
self.handler = self.handleWaitOnEnterResponses
|
||||||
self.handlerArgs = {'hoodId': hoodId,
|
self.handlerArgs = {'hoodId': hoodId,
|
||||||
'zoneId': zoneId,
|
'zoneId': zoneId,
|
||||||
|
@ -2078,7 +2078,7 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
di = DatagramIterator(dg, di.getCurrentIndex())
|
di = DatagramIterator(dg, di.getCurrentIndex())
|
||||||
self.deferredGenerates.append((CLIENT_DONE_INTEREST_RESP, (dg, di)))
|
self.deferredGenerates.append((CLIENT_DONE_INTEREST_RESP, (dg, di)))
|
||||||
else:
|
else:
|
||||||
if self.astronSupport:
|
if astronSupport:
|
||||||
# Play back generates, if necessary.
|
# Play back generates, if necessary.
|
||||||
# First, create a new DatagramIterator using
|
# First, create a new DatagramIterator using
|
||||||
# the Datagram from DatagramIterator di, and
|
# the Datagram from DatagramIterator di, and
|
||||||
|
|
|
@ -96,7 +96,7 @@ class BattlePlace(Place.Place):
|
||||||
def doEnterZone(self, newZoneId):
|
def doEnterZone(self, newZoneId):
|
||||||
if newZoneId != self.zoneId:
|
if newZoneId != self.zoneId:
|
||||||
if newZoneId != None:
|
if newZoneId != None:
|
||||||
if base.cr.astronSupport:
|
if astronSupport:
|
||||||
if hasattr(self, 'zoneVisDict'):
|
if hasattr(self, 'zoneVisDict'):
|
||||||
visList = self.zoneVisDict[newZoneId]
|
visList = self.zoneVisDict[newZoneId]
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -178,7 +178,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
del self.okButton
|
del self.okButton
|
||||||
del self.acceptedText
|
del self.acceptedText
|
||||||
del self.acceptedBanner
|
del self.acceptedBanner
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
datagram = PyDatagram()
|
datagram = PyDatagram()
|
||||||
datagram.addUint16(CLIENT_SET_WISHNAME_CLEAR)
|
datagram.addUint16(CLIENT_SET_WISHNAME_CLEAR)
|
||||||
datagram.addUint32(avatarChoice.id)
|
datagram.addUint32(avatarChoice.id)
|
||||||
|
@ -198,7 +198,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
|
|
||||||
def __handleReject(self, avList, index):
|
def __handleReject(self, avList, index):
|
||||||
self.rejectDialog.cleanup()
|
self.rejectDialog.cleanup()
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
datagram = PyDatagram()
|
datagram = PyDatagram()
|
||||||
datagram.addUint16(CLIENT_SET_WISHNAME_CLEAR)
|
datagram.addUint16(CLIENT_SET_WISHNAME_CLEAR)
|
||||||
avid = 0
|
avid = 0
|
||||||
|
@ -208,7 +208,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
|
|
||||||
if avid == 0:
|
if avid == 0:
|
||||||
self.notify.error('Avatar rejected not found in avList. Index is: ' + str(index))
|
self.notify.error('Avatar rejected not found in avList. Index is: ' + str(index))
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
datagram.addUint32(avid)
|
datagram.addUint32(avid)
|
||||||
datagram.addUint8(0)
|
datagram.addUint8(0)
|
||||||
self.send(datagram)
|
self.send(datagram)
|
||||||
|
@ -321,7 +321,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
self.avCreate = MakeAToon.MakeAToon(self.loginFSM, avList, 'makeAToonComplete', index, self.isPaid())
|
self.avCreate = MakeAToon.MakeAToon(self.loginFSM, avList, 'makeAToonComplete', index, self.isPaid())
|
||||||
self.avCreate.load()
|
self.avCreate.load()
|
||||||
self.avCreate.enter()
|
self.avCreate.enter()
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
self.handler = self.handleCreateAvatar
|
self.handler = self.handleCreateAvatar
|
||||||
self.accept('makeAToonComplete', self.__handleMakeAToon, [avList, index])
|
self.accept('makeAToonComplete', self.__handleMakeAToon, [avList, index])
|
||||||
self.accept('nameShopCreateAvatar', self.sendCreateAvatarMsg)
|
self.accept('nameShopCreateAvatar', self.sendCreateAvatarMsg)
|
||||||
|
@ -523,7 +523,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
self.handlerArgs = {'hoodId': hoodId,
|
self.handlerArgs = {'hoodId': hoodId,
|
||||||
'zoneId': zoneId,
|
'zoneId': zoneId,
|
||||||
'avId': avId}
|
'avId': avId}
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
self.handler = self.handleTutorialQuestion
|
self.handler = self.handleTutorialQuestion
|
||||||
self.__requestSkipTutorial(hoodId, zoneId, avId)
|
self.__requestSkipTutorial(hoodId, zoneId, avId)
|
||||||
|
|
||||||
|
@ -551,7 +551,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
return
|
return
|
||||||
|
|
||||||
def enterTutorialQuestion(self, hoodId, zoneId, avId):
|
def enterTutorialQuestion(self, hoodId, zoneId, avId):
|
||||||
if not self.astronSupport:
|
if not astronSupport:
|
||||||
self.handler = self.handleTutorialQuestion
|
self.handler = self.handleTutorialQuestion
|
||||||
self.__requestTutorial(hoodId, zoneId, avId)
|
self.__requestTutorial(hoodId, zoneId, avId)
|
||||||
|
|
||||||
|
@ -870,7 +870,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
self.friendsListError = 0
|
self.friendsListError = 0
|
||||||
|
|
||||||
def sendGetFriendsListRequest(self):
|
def sendGetFriendsListRequest(self):
|
||||||
if self.astronSupport:
|
if astronSupport:
|
||||||
print('sendGetFriendsListRequest TODO')
|
print('sendGetFriendsListRequest TODO')
|
||||||
else:
|
else:
|
||||||
self.friendsMapPending = 1
|
self.friendsMapPending = 1
|
||||||
|
@ -1097,7 +1097,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def sendQuietZoneRequest(self):
|
def sendQuietZoneRequest(self):
|
||||||
if self.astronSupport:
|
if astronSupport:
|
||||||
self.sendSetZoneMsg(OTPGlobals.QuietZone, [])
|
self.sendSetZoneMsg(OTPGlobals.QuietZone, [])
|
||||||
else:
|
else:
|
||||||
self.sendSetZoneMsg(OTPGlobals.QuietZone)
|
self.sendSetZoneMsg(OTPGlobals.QuietZone)
|
||||||
|
|
|
@ -865,7 +865,7 @@ class NameShop(StateData.StateData):
|
||||||
|
|
||||||
def checkNamePattern(self):
|
def checkNamePattern(self):
|
||||||
self.notify.debug('checkNamePattern')
|
self.notify.debug('checkNamePattern')
|
||||||
if base.cr.astronSupport:
|
if astronSupport:
|
||||||
base.cr.astronLoginManager.sendSetNamePattern(self.avId,
|
base.cr.astronLoginManager.sendSetNamePattern(self.avId,
|
||||||
self.nameIndices[0], self.nameFlags[0],
|
self.nameIndices[0], self.nameFlags[0],
|
||||||
self.nameIndices[1], self.nameFlags[1],
|
self.nameIndices[1], self.nameFlags[1],
|
||||||
|
@ -953,14 +953,14 @@ class NameShop(StateData.StateData):
|
||||||
self.notify.debug('checkNameTyped')
|
self.notify.debug('checkNameTyped')
|
||||||
if self._submitTypeANameAsPickAName():
|
if self._submitTypeANameAsPickAName():
|
||||||
return
|
return
|
||||||
if not base.cr.astronSupport:
|
if not astronSupport:
|
||||||
datagram = PyDatagram()
|
datagram = PyDatagram()
|
||||||
datagram.addUint16(CLIENT_SET_WISHNAME)
|
datagram.addUint16(CLIENT_SET_WISHNAME)
|
||||||
if justCheck:
|
if justCheck:
|
||||||
avId = 0
|
avId = 0
|
||||||
else:
|
else:
|
||||||
avId = self.avId
|
avId = self.avId
|
||||||
if not base.cr.astronSupport:
|
if not astronSupport:
|
||||||
datagram.addUint32(avId)
|
datagram.addUint32(avId)
|
||||||
datagram.addString(self.nameEntry.get())
|
datagram.addString(self.nameEntry.get())
|
||||||
messenger.send('nameShopPost', [datagram])
|
messenger.send('nameShopPost', [datagram])
|
||||||
|
@ -1082,7 +1082,7 @@ class NameShop(StateData.StateData):
|
||||||
self.requestingSkipTutorial = False
|
self.requestingSkipTutorial = False
|
||||||
if not self.avExists or self.avExists and self.avId == 'deleteMe':
|
if not self.avExists or self.avExists and self.avId == 'deleteMe':
|
||||||
messenger.send('nameShopCreateAvatar', [style, '', self.index])
|
messenger.send('nameShopCreateAvatar', [style, '', self.index])
|
||||||
if base.cr.astronSupport:
|
if astronSupport:
|
||||||
self.accept('nameShopCreateAvatarDone', self.handleCreateAvatarResponseMsg)
|
self.accept('nameShopCreateAvatarDone', self.handleCreateAvatarResponseMsg)
|
||||||
else:
|
else:
|
||||||
self.checkNameTyped()
|
self.checkNameTyped()
|
||||||
|
|
|
@ -82,6 +82,7 @@ version = OnscreenText(serverVersion, pos=(-1.3, -0.975), scale=0.06, fg=Vec4(0,
|
||||||
loader.beginBulkLoad('init', TTLocalizer.LoaderLabel, 138, 0, TTLocalizer.TIP_NONE)
|
loader.beginBulkLoad('init', TTLocalizer.LoaderLabel, 138, 0, TTLocalizer.TIP_NONE)
|
||||||
from .ToonBaseGlobal import *
|
from .ToonBaseGlobal import *
|
||||||
from direct.showbase.MessengerGlobal import *
|
from direct.showbase.MessengerGlobal import *
|
||||||
|
builtins.astronSupport = base.config.GetBool('astron-support', True)
|
||||||
from toontown.distributed import ToontownClientRepository
|
from toontown.distributed import ToontownClientRepository
|
||||||
cr = ToontownClientRepository.ToontownClientRepository(serverVersion, launcher)
|
cr = ToontownClientRepository.ToontownClientRepository(serverVersion, launcher)
|
||||||
cr.music = music
|
cr.music = music
|
||||||
|
|
|
@ -355,7 +355,7 @@ class Street(BattlePlace.BattlePlace):
|
||||||
if newZoneId != None:
|
if newZoneId != None:
|
||||||
self.loader.zoneDict[newZoneId].setColor(0, 0, 1, 1, 100)
|
self.loader.zoneDict[newZoneId].setColor(0, 0, 1, 1, 100)
|
||||||
if newZoneId != None:
|
if newZoneId != None:
|
||||||
if not base.cr.astronSupport:
|
if not astronSupport:
|
||||||
base.cr.sendSetZoneMsg(newZoneId)
|
base.cr.sendSetZoneMsg(newZoneId)
|
||||||
else:
|
else:
|
||||||
visZones = [self.loader.node2zone[x] for x in self.loader.nodeDict[newZoneId]]
|
visZones = [self.loader.node2zone[x] for x in self.loader.nodeDict[newZoneId]]
|
||||||
|
|
|
@ -73,7 +73,7 @@ class TownLoader(StateData.StateData):
|
||||||
del self.hood
|
del self.hood
|
||||||
del self.nodeDict
|
del self.nodeDict
|
||||||
del self.zoneDict
|
del self.zoneDict
|
||||||
if base.cr.astronSupport:
|
if astronSupport:
|
||||||
del self.node2zone
|
del self.node2zone
|
||||||
del self.fadeInDict
|
del self.fadeInDict
|
||||||
del self.fadeOutDict
|
del self.fadeOutDict
|
||||||
|
@ -229,7 +229,7 @@ class TownLoader(StateData.StateData):
|
||||||
def makeDictionaries(self, dnaStore):
|
def makeDictionaries(self, dnaStore):
|
||||||
self.nodeDict = {}
|
self.nodeDict = {}
|
||||||
self.zoneDict = {}
|
self.zoneDict = {}
|
||||||
if base.cr.astronSupport:
|
if astronSupport:
|
||||||
self.node2zone = {}
|
self.node2zone = {}
|
||||||
self.nodeList = []
|
self.nodeList = []
|
||||||
self.fadeInDict = {}
|
self.fadeInDict = {}
|
||||||
|
@ -254,7 +254,7 @@ class TownLoader(StateData.StateData):
|
||||||
self.nodeDict[zoneId] = []
|
self.nodeDict[zoneId] = []
|
||||||
self.nodeList.append(groupNode)
|
self.nodeList.append(groupNode)
|
||||||
self.zoneDict[zoneId] = groupNode
|
self.zoneDict[zoneId] = groupNode
|
||||||
if base.cr.astronSupport:
|
if astronSupport:
|
||||||
self.node2zone[groupNode] = zoneId
|
self.node2zone[groupNode] = zoneId
|
||||||
fadeDuration = 0.5
|
fadeDuration = 0.5
|
||||||
self.fadeOutDict[groupNode] = Sequence(Func(groupNode.setTransparency, 1), LerpColorScaleInterval(groupNode, fadeDuration, a0, startColorScale=a1), Func(groupNode.clearColorScale), Func(groupNode.clearTransparency), Func(groupNode.stash), name='fadeZone-' + str(zoneId), autoPause=1)
|
self.fadeOutDict[groupNode] = Sequence(Func(groupNode.setTransparency, 1), LerpColorScaleInterval(groupNode, fadeDuration, a0, startColorScale=a1), Func(groupNode.clearColorScale), Func(groupNode.clearTransparency), Func(groupNode.stash), name='fadeZone-' + str(zoneId), autoPause=1)
|
||||||
|
|
|
@ -42,5 +42,6 @@ class ToontownUDRepository(ToontownInternalRepository):
|
||||||
globalClockRealTimeUponLogin=globalClock.getRealTime())
|
globalClockRealTimeUponLogin=globalClock.getRealTime())
|
||||||
|
|
||||||
def createGlobals(self):
|
def createGlobals(self):
|
||||||
# Create our Astron login manager...
|
if astronSupport:
|
||||||
self.astronLoginManager = self.generateGlobalObject(OTP_DO_ID_ASTRON_LOGIN_MANAGER, 'AstronLoginManager')
|
# Create our Astron login manager...
|
||||||
|
self.astronLoginManager = self.generateGlobalObject(OTP_DO_ID_ASTRON_LOGIN_MANAGER, 'AstronLoginManager')
|
||||||
|
|
Loading…
Reference in a new issue