Exemplo n.º 1
0
 def showVehiclesRating(self):
     setHofButtonOld(PROFILE_CONSTANTS.HOF_VIEW_RATING_BUTTON)
     self.eventsCache.onProfileVisited()
     g_eventBus.handleEvent(events.LoadViewEvent(SFViewLoadParams(VIEW_ALIAS.BROWSER_VIEW), ctx={'url': getHofRatingUrlForVehicle(self._selectedVehicleIntCD),
      'returnAlias': VIEW_ALIAS.LOBBY_PROFILE,
      'allowRightClick': True,
      'webHandlers': createHofWebHandlers(),
      'itemCD': self._selectedVehicleIntCD,
      'disabledKeys': getHofDisabledKeys(),
      'onServerSettingsChange': onServerSettingsChange}), EVENT_BUS_SCOPE.LOBBY)
 def showVehiclesRating(self):
     setHofButtonOld(PROFILE_CONSTANTS.HOF_VEHICLES_BUTTON)
     self.__openHofBrowserView(getHofVehiclesRatingUrl())
 def showAchievementsRating(self):
     setHofButtonOld(PROFILE_CONSTANTS.HOF_ACHIEVEMENTS_BUTTON)
     self.__openHofBrowserView(getHofAchievementsRatingUrl())