From 39b1d67097f04c3c4db4ab7e2d9a6693fd7b38e9 Mon Sep 17 00:00:00 2001 From: Little Cat Date: Tue, 10 Jan 2023 21:29:50 -0400 Subject: [PATCH] street: Disable downloading street sign by default --- toontown/distributed/ToontownClientRepository.py | 10 +++++++--- toontown/town/Street.py | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/toontown/distributed/ToontownClientRepository.py b/toontown/distributed/ToontownClientRepository.py index 8114d1e..dbadca9 100644 --- a/toontown/distributed/ToontownClientRepository.py +++ b/toontown/distributed/ToontownClientRepository.py @@ -72,7 +72,9 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository): self.catalogManager = None self.welcomeValleyManager = 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.partyManager = None self.inGameNewsMgr = None @@ -84,7 +86,8 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository): self.deliveryManager = self.generateGlobalObject(OtpDoGlobals.OTP_DO_ID_TOONTOWN_DELIVERY_MANAGER, 'DistributedDeliveryManager') if ConfigVariableBool('want-code-redemption', 1).value: 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.objectManager = None self.magicWordManager = None @@ -458,7 +461,8 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository): base.localAvatar.defaultZone, -1]) self._userLoggingOut = False - if not self.streetSign: + + if self.wantStreetSign and not self.streetSign: self.streetSign = StreetSign.StreetSign() return diff --git a/toontown/town/Street.py b/toontown/town/Street.py index 0aa6b0a..14788b1 100644 --- a/toontown/town/Street.py +++ b/toontown/town/Street.py @@ -132,7 +132,8 @@ class Street(BattlePlace.BattlePlace): self.enterZone(requestStatus['zoneId']) self.tunnelOriginList = base.cr.hoodMgr.addLinkTunnelHooks(self, self.loader.nodeList, self.zoneId) self.fsm.request(requestStatus['how'], [requestStatus]) - self.replaceStreetSignTextures() + if base.cr.wantStreetSign: + self.replaceStreetSignTextures() return def exit(self, visibilityFlag = 1):