From b72a755617a6065fcedb25e7e4c247262ea32127 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 2 Jun 2015 17:06:55 +0300 Subject: [PATCH] Unique toon identifier in avatar panel --- toontown/toon/ToonAvatarDetailPanel.py | 6 ++++-- toontown/toonbase/TTLocalizerEnglish.py | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/toontown/toon/ToonAvatarDetailPanel.py b/toontown/toon/ToonAvatarDetailPanel.py index 5a649921..e41cc7b7 100755 --- a/toontown/toon/ToonAvatarDetailPanel.py +++ b/toontown/toon/ToonAvatarDetailPanel.py @@ -157,12 +157,14 @@ class ToonAvatarDetailPanel(DirectFrame): online = 1 if base.cr.isFriend(self.avId): online = base.cr.isFriendOnline(self.avId) + identifier = int(str(self.avId)[1:]) + if online: shardName = base.cr.getShardName(av.defaultShard) hoodName = base.cr.hoodMgr.getFullnameFromId(av.lastHood) - text = TTLocalizer.AvatarDetailPanelOnline % {'district': shardName, 'location': hoodName} + text = TTLocalizer.AvatarDetailPanelOnline % {'district': shardName, 'location': hoodName, 'identifier': identifier} else: - text = TTLocalizer.AvatarDetailPanelOffline + text = TTLocalizer.AvatarDetailPanelOffline % {'identifier': identifier} self.dataText['text'] = text self.__updateTrackInfo() self.__updateTrophyInfo() diff --git a/toontown/toonbase/TTLocalizerEnglish.py b/toontown/toonbase/TTLocalizerEnglish.py index 96d7aea0..e4c567ed 100755 --- a/toontown/toonbase/TTLocalizerEnglish.py +++ b/toontown/toonbase/TTLocalizerEnglish.py @@ -1920,9 +1920,8 @@ AvatarDetailPanelCancel = lCancel AvatarDetailPanelClose = lClose AvatarDetailPanelLookup = 'Looking up details for %s.' AvatarDetailPanelFailedLookup = 'Unable to get details for %s.' -AvatarDetailPanelRealLife = 'Offline' -AvatarDetailPanelOnline = 'District: %(district)s\nLocation: %(location)s' -AvatarDetailPanelOffline = 'District: offline\nLocation: offline' +AvatarDetailPanelOnline = 'District: %(district)s\nLocation: %(location)s\nIdentifier: %(identifier)s' +AvatarDetailPanelOffline = 'District: offline\nLocation: offline\nIdentifier: %(identifier)s' OfflineLocation = 'Offline' AvatarPanelFriends = 'Friends' AvatarPanelWhisper = 'Whisper'