street: Disable downloading street sign by default

This commit is contained in:
Little Cat 2023-01-10 21:29:50 -04:00
parent 97cc920a9f
commit 39b1d67097
No known key found for this signature in database
GPG key ID: 96455BD9C4399BE8
2 changed files with 9 additions and 4 deletions

View file

@ -72,7 +72,9 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
self.catalogManager = None self.catalogManager = None
self.welcomeValleyManager = None self.welcomeValleyManager = None
self.newsManager = None self.newsManager = None
self.streetSign = None self.wantStreetSign = ConfigVariableBool('want-street-sign', 0).value
if self.wantStreetSign:
self.streetSign = None
self.distributedDistrict = None self.distributedDistrict = None
self.partyManager = None self.partyManager = None
self.inGameNewsMgr = None self.inGameNewsMgr = None
@ -84,7 +86,8 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
self.deliveryManager = self.generateGlobalObject(OtpDoGlobals.OTP_DO_ID_TOONTOWN_DELIVERY_MANAGER, 'DistributedDeliveryManager') self.deliveryManager = self.generateGlobalObject(OtpDoGlobals.OTP_DO_ID_TOONTOWN_DELIVERY_MANAGER, 'DistributedDeliveryManager')
if ConfigVariableBool('want-code-redemption', 1).value: if ConfigVariableBool('want-code-redemption', 1).value:
self.codeRedemptionManager = self.generateGlobalObject(OtpDoGlobals.OTP_DO_ID_TOONTOWN_CODE_REDEMPTION_MANAGER, 'TTCodeRedemptionMgr') self.codeRedemptionManager = self.generateGlobalObject(OtpDoGlobals.OTP_DO_ID_TOONTOWN_CODE_REDEMPTION_MANAGER, 'TTCodeRedemptionMgr')
self.streetSign = None if self.wantStreetSign:
self.streetSign = None
self.furnitureManager = None self.furnitureManager = None
self.objectManager = None self.objectManager = None
self.magicWordManager = None self.magicWordManager = None
@ -458,7 +461,8 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository):
base.localAvatar.defaultZone, base.localAvatar.defaultZone,
-1]) -1])
self._userLoggingOut = False self._userLoggingOut = False
if not self.streetSign:
if self.wantStreetSign and not self.streetSign:
self.streetSign = StreetSign.StreetSign() self.streetSign = StreetSign.StreetSign()
return return

View file

@ -132,7 +132,8 @@ class Street(BattlePlace.BattlePlace):
self.enterZone(requestStatus['zoneId']) self.enterZone(requestStatus['zoneId'])
self.tunnelOriginList = base.cr.hoodMgr.addLinkTunnelHooks(self, self.loader.nodeList, self.zoneId) self.tunnelOriginList = base.cr.hoodMgr.addLinkTunnelHooks(self, self.loader.nodeList, self.zoneId)
self.fsm.request(requestStatus['how'], [requestStatus]) self.fsm.request(requestStatus['how'], [requestStatus])
self.replaceStreetSignTextures() if base.cr.wantStreetSign:
self.replaceStreetSignTextures()
return return
def exit(self, visibilityFlag = 1): def exit(self, visibilityFlag = 1):