def _populate(self):
     g_playerEvents.onDisconnected += self._onDisconnected
     nationsOrder, promoNationsOrder = self.__getNationsOrder(CURRENT_REALM)
     voList = self._getVONationsList(nationsOrder)
     voPromoList = self._getVONationsList(promoNationsOrder, True)
     selectedItem = NATIONS_MAP[g_bootcamp.nation]
     index = nationsOrder.index(
         selectedItem) if selectedItem in nationsOrder else 0
     self.as_selectNationS(index, voList, voPromoList)
     g_bootcamp.previewNation(g_bootcamp.nation)
     self.soundManager.playSound(BOOTCAMP_SOUND.NEW_UI_ELEMENT_SOUND)
     super(BCNationsWindow, self)._populate()
Ejemplo n.º 2
0
 def _populate(self):
     g_playerEvents.onDisconnected += self._onDisconnected
     if IS_CHINA:
         nationsOrder = ['ussr', 'usa', 'germany']
     else:
         nationsOrder = ['ussr', 'germany', 'usa']
     voList = [self._getVO(nationId) for nationId in nationsOrder]
     selectedItem = NATIONS_MAP[g_bootcamp.nation]
     index = nationsOrder.index(
         selectedItem) if selectedItem in nationsOrder else 0
     self.as_selectNationS(index, voList)
     g_bootcamp.previewNation(g_bootcamp.nation)
     super(BCNationsWindow, self)._populate()
Ejemplo n.º 3
0
 def _onLoaded(self, *args, **kwargs):
     super(BootcampCurtainView, self)._onLoaded(*args, **kwargs)
     invVehs = self._itemsCache.items.getVehicles(REQ_CRITERIA.INVENTORY)
     if not invVehs:
         g_bootcamp.previewNation(g_bootcamp.nation)
 def onNationShow(self, nationId):
     g_bootcamp.previewNation(NATIONS_INDICES[nationId])