Unique toon identifier in avatar panel

This commit is contained in:
John 2015-06-02 17:06:55 +03:00 committed by Loudrob
parent 7bad238cbe
commit b72a755617
2 changed files with 6 additions and 5 deletions

View file

@ -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()

View file

@ -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'