Пример #1
0
 def onDossierReceived(databaseID, _):
     clanID, clanInfo = self.itemsCache.items.getClanInfo(databaseID)
     if clanID != 0:
         clanInfo = ClanInfo(*clanInfo)
         shared_events.showClanProfileWindow(clanID, clanInfo.getClanAbbrev())
     else:
         DialogsInterface.showI18nInfoDialog('clan_data_not_available', lambda result: None)
Пример #2
0
 def openClanStatistic(self):
     if self.lobbyContext.getServerSettings().clanProfile.isEnabled():
         clanID, clanInfo = self.itemsCache.items.getClanInfo(self._userID)
         if clanID != 0:
             clanInfo = ClanInfo(*clanInfo)
             shared_events.showClanProfileWindow(clanID,
                                                 clanInfo.getClanAbbrev())
Пример #3
0
 def onDossierReceived(databaseID, _):
     clanID, clanInfo = g_itemsCache.items.getClanInfo(databaseID)
     if clanID != 0:
         clanInfo = ClanInfo(*clanInfo)
         shared_events.showClanProfileWindow(clanID, clanInfo.getClanAbbrev())
     else:
         from gui import DialogsInterface
         key = 'clan data is not available'
         DialogsInterface.showI18nInfoDialog(key, lambda result: None, I18nInfoDialogMeta(key, messageCtx={'userName': key}))
Пример #4
0
 def onDossierReceived(databaseID, _):
     clanID, clanInfo = g_itemsCache.items.getClanInfo(databaseID)
     if clanID != 0:
         clanInfo = ClanInfo(*clanInfo)
         shared_events.showClanProfileWindow(clanID, clanInfo.getClanAbbrev())
     else:
         from gui import DialogsInterface
         key = 'clan data is not available'
         DialogsInterface.showI18nInfoDialog(key, lambda result: None, I18nInfoDialogMeta(key, messageCtx={'userName': key}))
 def openClanStatistic(self):
     if g_lobbyContext.getServerSettings().clanProfile.isEnabled():
         clanID, clanInfo = g_itemsCache.items.getClanInfo(self._userID)
         if clanID != 0:
             clanInfo = ClanInfo(*clanInfo)
             shared_events.showClanProfileWindow(clanID, clanInfo.getClanAbbrev())
     elif self.__isFortClanProfileAvailable():
         self.fireEvent(events.LoadViewEvent(FORTIFICATION_ALIASES.FORT_CLAN_STATISTICS_WINDOW_ALIAS), EVENT_BUS_SCOPE.LOBBY)
     else:
         LOG_ERROR('Fort Clan Profile Statistics is Unavailable for current user profile')
Пример #6
0
 def openClanStatistic(self):
     if g_lobbyContext.getServerSettings().clanProfile.isEnabled():
         clanID, clanInfo = g_itemsCache.items.getClanInfo(self._userID)
         if clanID != 0:
             clanInfo = ClanInfo(*clanInfo)
             shared_events.showClanProfileWindow(clanID,
                                                 clanInfo.getClanAbbrev())
     elif self.__isFortClanProfileAvailable():
         self.fireEvent(
             events.LoadViewEvent(
                 FORTIFICATION_ALIASES.FORT_CLAN_STATISTICS_WINDOW_ALIAS),
             EVENT_BUS_SCOPE.LOBBY)
     else:
         LOG_ERROR(
             'Fort Clan Profile Statistics is Unavailable for current user profile'
         )