def getRareAchievementMedalData(dossier, medalId):
    import imghdr, uuid
    type = str(medalId)
    iconId = None
    iconData = g_rareAchievesCache.getImageData(medalId)
    if iconData and imghdr.what(None, iconData) is not None:
        iconId = str(uuid.uuid4())
        BigWorld.wg_addTempScaleformTexture(iconId, iconData)
    return __packMedalData(type=type,
                           icon='../maps/icons/achievement/actionUnknown.png',
                           rareIconId=iconId,
                           isTitle=True,
                           isRare=True,
                           descr=g_rareAchievesCache.getDescription(medalId))
def getRareAchievementMedalData(dossier, medalId):
    import imghdr, uuid
    type = str(medalId)
    iconId = None
    iconData = g_rareAchievesCache.getImageData(medalId)
    if iconData and imghdr.what(None, iconData) is not None:
        iconId = str(uuid.uuid4())
        BigWorld.wg_addTempScaleformTexture(iconId, iconData)
    return __packMedalData(type=type, icon='../maps/icons/achievement/actionUnknown.png', rareIconId=iconId, isTitle=True, isRare=True, descr=g_rareAchievesCache.getDescription(medalId))
 def description(self):
     return g_rareAchievesCache.getDescription(self.rareID)
 def getUserDescription(self):
     return g_rareAchievesCache.getDescription(self._rareID)
 def getUserDescription(self):
     return g_rareAchievesCache.getDescription(self._rareID)
Exemple #6
0
 def description(self):
     return g_rareAchievesCache.getDescription(self.rareID)