Exemplo n.º 1
0
 def _requestImageID(self, imgType):
     g_rareAchievesCache.request([self._rareID])
     memImgID = None
     iconData = g_rareAchievesCache.getImageData(imgType, self._rareID)
     if iconData and imghdr.what(None, iconData) is not None:
         memImgID = str(uuid.uuid4())
         BigWorld.wg_addTempScaleformTexture(memImgID, iconData)
     return memImgID
Exemplo n.º 2
0
 def _requestImageID(self, imgType):
     g_rareAchievesCache.request([self._rareID])
     memImgID = None
     iconData = g_rareAchievesCache.getImageData(imgType, self._rareID)
     if iconData and imghdr.what(None, iconData) is not None:
         memImgID = str(uuid.uuid4())
         BigWorld.wg_addTempScaleformTexture(memImgID, iconData)
     return memImgID
Exemplo n.º 3
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))
Exemplo n.º 4
0
 def requestImageID(self):
     import imghdr, uuid
     g_rareAchievesCache.request([self.rareID])
     iconId = None
     iconData = g_rareAchievesCache.getImageData(self.rareID)
     if iconData and imghdr.what(None, iconData) is not None:
         iconId = str(uuid.uuid4())
         BigWorld.wg_addTempScaleformTexture(iconId, iconData)
     return iconId
Exemplo n.º 5
0
 def requestImageID(self):
     import imghdr, uuid
     g_rareAchievesCache.request([self.rareID])
     iconId = None
     iconData = g_rareAchievesCache.getImageData(self.rareID)
     if iconData and imghdr.what(None, iconData) is not None:
         iconId = str(uuid.uuid4())
         BigWorld.wg_addTempScaleformTexture(iconId, iconData)
     return iconId
Exemplo n.º 6
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))