def __openHofBrowserView(self, url):
     self._eventsCache.onProfileVisited()
     g_eventBus.handleEvent(events.LoadViewEvent(SFViewLoadParams(VIEW_ALIAS.BROWSER_VIEW), ctx={'url': url,
      'returnAlias': VIEW_ALIAS.LOBBY_PROFILE,
      'allowRightClick': True,
      'webHandlers': createHofWebHandlers(),
      'selectedAlias': VIEW_ALIAS.PROFILE_HOF,
      'disabledKeys': getHofDisabledKeys(),
      'onServerSettingsChange': onServerSettingsChange}), EVENT_BUS_SCOPE.LOBBY)
Beispiel #2
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)
Beispiel #3
0
 def __loadHofUrl(self, url):
     g_eventBus.handleEvent(
         events.LoadViewEvent(VIEW_ALIAS.BROWSER_VIEW,
                              ctx={
                                  'url':
                                  url,
                                  'returnAlias':
                                  VIEW_ALIAS.LOBBY_PROFILE,
                                  'allowRightClick':
                                  True,
                                  'webHandlers':
                                  createHofWebHandlers(),
                                  'selectedAlias':
                                  VIEW_ALIAS.PROFILE_HOF,
                                  'disabledKeys':
                                  getHofDisabledKeys(),
                                  'onServerSettingsChange':
                                  onServerSettingsChange
                              }), EVENT_BUS_SCOPE.LOBBY)