mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Unique toon identifier in avatar panel
This commit is contained in:
parent
7bad238cbe
commit
b72a755617
2 changed files with 6 additions and 5 deletions
|
@ -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()
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue