Example #1
0
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))
Example #2
0
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))
Example #3
0
 def description(self):
     return g_rareAchievesCache.getDescription(self.rareID)
 def getUserDescription(self):
     return g_rareAchievesCache.getDescription(self._rareID)
Example #5
0
 def getUserDescription(self):
     return g_rareAchievesCache.getDescription(self._rareID)
Example #6
0
 def description(self):
     return g_rareAchievesCache.getDescription(self.rareID)