コード例 #1
0
 def _populate(self):
     super(CompanyListView, self)._populate()
     self.addListener(events.CoolDownEvent.PREBATTLE, self.__handleSetPrebattleCoolDown, scope=EVENT_BUS_SCOPE.LOBBY)
     self.__listDP = companies_dps.CompaniesDataProvider()
     self.__listDP.setFlashObject(self.as_getSearchDPS())
     self.startPrbListening()
     self.as_setDefaultFilterS('', False, 0)
     self.__requestCompaniesList()
コード例 #2
0
 def _populate(self):
     super(CompaniesWindow, self)._populate()
     self.addListener(events.CoolDownEvent.PREBATTLE,
                      self.__handleSetPrebattleCoolDown,
                      scope=EVENT_BUS_SCOPE.LOBBY)
     self.__listDP = companies_dps.CompaniesDataProvider()
     self.__listDP.setFlashObject(self.as_getCompaniesListDPS())
     self.as_disableCreateButtonS(False)
     self.startGlobalListening()
     self.__rosterRequester.start(self.__onRosterReceived)
     self.as_setDefaultFilterS('', False, 0)
     self.__getCompaniesList()
コード例 #3
0
 def _populate(self):
     super(CompaniesWindow, self)._populate()
     self.addListener(events.CoolDownEvent.PREBATTLE, self.__handleSetPrebattleCoolDown, scope=EVENT_BUS_SCOPE.LOBBY)
     self.__listDP = companies_dps.CompaniesDataProvider()
     self.__listDP.setFlashObject(self.as_getCompaniesListDPS())
     self.as_disableCreateButtonS(self.prbDispatcher.hasModalEntity())
     self.startGlobalListening()
     self.__listRequester.start(self.__onCompaniesListReceived)
     self.__rosterRequester.start(self.__onRosterReceived)
     self.as_setDefaultFilterS('', False, 0)
     if not isRequestInCoolDown(REQUEST_TYPE.PREBATTLES_LIST):
         self.__listRequester.request(context.RequestCompaniesCtx(False, 0, ''))
     else:
         self.as_setRefreshCoolDownS(DEFAULT_PREBATTLE_COOLDOWN)