Ejemplo n.º 1
0
 def __populateClanEmblem(self):
     yield lambda callback: callback(True)
     if g_clanCache.isInClan:
         clanEmblemID = yield g_clanCache.getClanEmblemID()
         if clanEmblemID is not None:
             self.as_setClanEmblemS(clanEmblemID)
     return
Ejemplo n.º 2
0
 def updateData(self):
     _checkBattleConsumesIntro(self.fortCtrl.getFort())
     self.__updateCurrentMode()
     self.__updateHeaderMessage()
     self.as_setMainDataS(self.getData())
     self.as_setBattlesDirectionDataS({'directionsBattles': self._getDirectionsBattles()})
     clanIconId = yield g_clanCache.getClanEmblemID()
     if not self.isDisposed():
         self.as_setClanIconIdS(clanIconId)
 def updateData(self):
     _checkBattleConsumesIntro(self.fortCtrl.getFort())
     self.__updateCurrentMode()
     self.__updateHeaderMessage()
     self.as_setMainDataS(self.getData())
     self.as_setBattlesDirectionDataS({'directionsBattles': self._getDirectionsBattles()})
     clanIconId = yield g_clanCache.getClanEmblemID()
     if not self.isDisposed():
         self.as_setClanIconIdS(clanIconId)
Ejemplo n.º 4
0
 def __setClanInfo(self, clanInfo):
     yield lambda callback: callback(True)
     name = BigWorld.player().name
     if clanInfo and len(clanInfo) > 1:
         clanAbbrev = clanInfo[1]
     else:
         clanAbbrev = None
     self.as_nameResponseS(g_lobbyContext.getPlayerFullName(name, clanInfo=clanInfo), name, clanAbbrev, g_itemsCache.items.stats.isTeamKiller, clanInfo is not None)
     clanEmblem = yield g_clanCache.getClanEmblemID()
     if clanEmblem is not None:
         self.as_setClanEmblemS(clanEmblem)
     return
 def _updateClansInfo(self):
     myEmblem = yield g_clanCache.getClanEmblemID()
     enemyClanDBID = self.__item.getClanDBID()
     textureID = 'clanWar%d' % enemyClanDBID
     enemyEmblem = yield g_clanCache.getClanEmblemTextureID(enemyClanDBID, False, textureID)
     if self.isDisposed():
         return
     myClan = {'id': g_clanCache.clanDBID,
      'name': g_clanCache.clanTag,
      'emblem': myEmblem}
     enemyClan = {'id': enemyClanDBID,
      'name': '[%s]' % self.__item.getClanAbbrev(),
      'emblem': enemyEmblem}
     self.as_setupClansS(myClan, enemyClan)
Ejemplo n.º 6
0
 def _updateClansInfo(self):
     myEmblem = yield g_clanCache.getClanEmblemID()
     enemyClanDBID = self.__item.getClanDBID()
     textureID = 'clanWar%d' % enemyClanDBID
     enemyEmblem = yield g_clanCache.getClanEmblemTextureID(enemyClanDBID, False, textureID)
     if self.isDisposed():
         return
     myClan = {'id': g_clanCache.clanDBID,
      'name': g_clanCache.clanTag,
      'emblem': myEmblem}
     enemyClan = {'id': enemyClanDBID,
      'name': '[%s]' % self.__item.getClanAbbrev(),
      'emblem': enemyEmblem}
     self.as_setupClansS(myClan, enemyClan)
Ejemplo n.º 7
0
 def __requestMineClanEmblem(self):
     mineClanEmblem = yield g_clanCache.getClanEmblemID()
     if self._isDAAPIInited():
         self.as_setMineClanIconS(mineClanEmblem)