Exemple #1
0
 def goToNextVehicle(self, vehCD):
     Event = events.LoadEvent
     exitEvent = Event(Event.LOAD_TECHTREE,
                       ctx={'nation': SelectedNation.getName()})
     loadEvent = Event(Event.LOAD_RESEARCH,
                       ctx={
                           'rootCD': vehCD,
                           'exit': exitEvent
                       })
     self.fireEvent(loadEvent, scope=EVENT_BUS_SCOPE.LOBBY)
Exemple #2
0
 def __center_onIsLongDisconnected(self, isLongDisconnected):
     if not isLongDisconnected:
         self.__requestVehiclesFromShop()
     self.as_refreshNationTreeDataS(SelectedNation.getName())
Exemple #3
0
 def __handleReloadData(self, event):
     if event.key is Keys.KEY_R:
         g_techTreeDP.load(isReload=True)
         self.as_refreshNationTreeDataS(SelectedNation.getName())
Exemple #4
0
 def __stopDataCollect(self):
     self.as_setAvailableNationsS(g_techTreeDP.getAvailableNations())
     self.as_setSelectedNationS(SelectedNation.getName())
Exemple #5
0
 def __shop_onResync(self):
     self.__requestVehiclesFromShop()
     self.as_refreshNationTreeDataS(SelectedNation.getName())
Exemple #6
0
 def goToNextVehicle(self, vehCD):
     Event = events.LoadEvent
     exitEvent = Event(Event.LOAD_TECHTREE, ctx={'nation': SelectedNation.getName()})
     loadEvent = Event(Event.LOAD_RESEARCH, ctx={'rootCD': vehCD,
      'exit': exitEvent})
     self.fireEvent(loadEvent, scope=EVENT_BUS_SCOPE.LOBBY)
Exemple #7
0
 def invalidateVehLocks(self, locks):
     if self._data.invalidateLocks(locks):
         self.as_refreshNationTreeDataS(SelectedNation.getName())
Exemple #8
0
 def __center_onIsLongDisconnected(self, isLongDisconnected):
     if not isLongDisconnected:
         self.__requestVehiclesFromShop()
     self.as_refreshNationTreeDataS(SelectedNation.getName())
Exemple #9
0
 def __handleReloadData(self, event):
     if event.key is Keys.KEY_R:
         g_techTreeDP.load(isReload=True)
         self.as_refreshNationTreeDataS(SelectedNation.getName())
Exemple #10
0
 def __shop_onResync(self):
     self.__requestVehiclesFromShop()
     self.as_refreshNationTreeDataS(SelectedNation.getName())
Exemple #11
0
 def __stopDataCollect(self):
     self.as_setAvailableNationsS(g_techTreeDP.getAvailableNations())
     self.as_setSelectedNationS(SelectedNation.getName())
Exemple #12
0
 def invalidateVehLocks(self, locks):
     if self._data.invalidateLocks(locks):
         self.as_refreshNationTreeDataS(SelectedNation.getName())
Exemple #13
0
 def requestNationTreeData(self):
     if USE_XML_DUMPING and IS_DEVELOPMENT:
         self.as_useXMLDumpingS()
     self.as_setAvailableNationsS(g_techTreeDP.getAvailableNations())
     self.as_setSelectedNationS(SelectedNation.getName())
     return True
Exemple #14
0
 def redraw(self):
     self.as_refreshNationTreeDataS(SelectedNation.getName())