def __init__(self, ctx=None):
     super(WebViewTransparent, self).__init__(ctx)
     self._browserParams = makeBrowserParams(bgAlpha=0.67)
     self._browserParams.update((ctx or {}).get('browserParams', {}))
     self.__blur = None
     self.__hiddenLayers = (ctx or {}).get('hiddenLayers', ())
     return
 def __init__(self, ctx=None):
     super(IngameShopBase, self).__init__(ctx)
     self.__browser = None
     self.__hasFocus = False
     self.__browserId = 0
     self._url = ctx.get('url') if ctx else None
     self._browserParams = (ctx or {}).get('browserParams',
                                           makeBrowserParams())
     return
Exemple #3
0
 def __init__(self, ctx=None):
     super(WebView, self).__init__(ctx)
     self.__browser = None
     self.__hasFocus = False
     self.__browserId = 0
     self.__loadBrowserCbID = None
     self.__ctx = ctx
     self._url = ctx.get('url') if ctx else None
     self._forcedSkipEscape = ctx.get('forcedSkipEscape', False) if ctx else False
     self._browserParams = (ctx or {}).get('browserParams', makeBrowserParams())
     self.__callbackOnLoad = ctx.get('callbackOnLoad', None) if ctx else None
     return
def showBuyVehicleOverlay(params=None):
    url = ingameshop_helpers.getVehicleUrl()
    if url:
        url = yield URLMarcos().parse(url, params=params)
        g_eventBus.handleEvent(
            events.LoadViewEvent(VIEW_ALIAS.OVERLAY_WEB_STORE,
                                 ctx={
                                     'url':
                                     url,
                                     'browserParams':
                                     makeBrowserParams(WAITING.BUYITEM, True)
                                 }), EVENT_BUS_SCOPE.LOBBY)
Exemple #5
0
def _showOverlayWebStoreDefault(url, params=None):
    if url:
        url = yield URLMacros().parse(url, params=params)
        g_eventBus.handleEvent(
            events.LoadViewEvent(
                SFViewLoadParams(VIEW_ALIAS.OVERLAY_WEB_STORE),
                ctx={
                    'url':
                    url,
                    'browserParams':
                    makeBrowserParams(R.strings.waiting.updating(), True, True,
                                      0.5)
                }), EVENT_BUS_SCOPE.LOBBY)
Exemple #6
0
def showRentVehicleOverlay(params=None):
    url = helpers.getVehicleUrl()
    if url:
        url = yield URLMacros().parse(url, params=params)
        g_eventBus.handleEvent(
            events.LoadViewEvent(
                SFViewLoadParams(VIEW_ALIAS.OVERLAY_WEB_STORE),
                ctx={
                    'url':
                    url,
                    'browserParams':
                    makeBrowserParams(R.strings.waiting.updating(), True, True,
                                      0.5)
                }), EVENT_BUS_SCOPE.LOBBY)
Exemple #7
0
 def __init__(self, ctx=None):
     super(WebViewTransparent, self).__init__(ctx)
     self._browserParams = (ctx or {}).get('browserParams', makeBrowserParams(bgAlpha=0.67))
     self.__blur = None
     return
Exemple #8
0
def getClientControlledCloseCtx():
    return {
        'browserParams': makeBrowserParams(isCloseBtnVisible=True),
        'forcedSkipEscape': True
    }