Beispiel #1
0
    @property
    def layer(self):
        return self.__layer() if callable(self.__layer) else self.__layer

    @property
    def scope(self):
        return self.__scope() if callable(self.__scope) else self.__scope

    @property
    def group(self):
        return self.__group() if callable(self.__group) else self.__group

    def toImmutableSettings(self):
        return GroupedViewSettings(*self._replace(clazz=self.clazz,
                                                  url=self.url,
                                                  layer=self.layer,
                                                  scope=self.scope,
                                                  group=self.group))


ConditionalViewSettings.__new__.__defaults__ = (None, None, None, 0, None,
                                                None, False, None, True, True,
                                                False, True, 0)
g_entitiesFactories = EntitiesFactories(
    (DAAPIModuleFactory((WindowLayer.UNDEFINED, )),
     ViewFactory((WindowLayer.MARKER, WindowLayer.VIEW, WindowLayer.SUB_VIEW,
                  WindowLayer.TOP_SUB_VIEW, WindowLayer.CURSOR,
                  WindowLayer.WAITING, WindowLayer.WINDOW,
                  WindowLayer.FULLSCREEN_WINDOW, WindowLayer.TOP_WINDOW,
                  WindowLayer.OVERLAY, WindowLayer.SERVICE_LAYOUT))))
Beispiel #2
0
import gui.Scaleform.framework.ScopeTemplates
from gui.Scaleform.framework.factories import EntitiesFactories, DAAPIModuleFactory, ViewFactory


class COMMON_VIEW_ALIAS(object):
    LOGIN = '******'
    INTRO_VIDEO = 'introVideo'
    LOBBY = 'lobby'
    BATTLE = 'battle'
    CURSOR = 'cursor'
    WAITING = 'waiting'


ViewSettings = namedtuple(
    'ViewSettings',
    ('alias', 'clazz', 'url', 'type', 'event', 'scope', 'cacheable'))
ViewSettings.__new__.__defaults__ = (None, None, None, None, None, None, False)
GroupedViewSettings = namedtuple(
    'GroupedViewSettings',
    ('alias', 'clazz', 'url', 'type', 'group', 'event', 'scope', 'cacheable'))
GroupedViewSettings.__new__.__defaults__ = (None, None, None, None, None, None,
                                            None, False)
g_entitiesFactories = EntitiesFactories(
    (DAAPIModuleFactory((ViewTypes.COMPONENT, )),
     ViewFactory((ViewTypes.DEFAULT, ViewTypes.LOBBY_SUB, ViewTypes.CURSOR,
                  ViewTypes.WAITING, ViewTypes.WINDOW, ViewTypes.BROWSER,
                  ViewTypes.TOP_WINDOW, ViewTypes.SERVICE_LAYOUT))))
# okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\client\gui\scaleform\framework\__init__.pyc
# decompiled 1 files: 1 okay, 0 failed, 0 verify failed
# 2016.08.04 19:51:54 Støední Evropa (letní èas)
Beispiel #3
0
class COMMON_VIEW_ALIAS(object):
    LOGIN = '******'
    INTRO_VIDEO = 'introVideo'
    LOBBY = 'lobby'
    CURSOR = 'cursor'
    WAITING = 'waiting'


ViewSettings = namedtuple('ViewSettings',
                          ('alias', 'clazz', 'url', 'type', 'event', 'scope'))
GroupedViewSettings = namedtuple(
    'GroupedViewSettings',
    ('alias', 'clazz', 'url', 'type', 'group', 'event', 'scope'))
g_entitiesFactories = EntitiesFactories(
    (DAAPIModuleFactory((VIEW_TYPE.COMPONENT, )),
     ViewFactory((VIEW_TYPE.DEFAULT, VIEW_TYPE.LOBBY_SUB, VIEW_TYPE.CURSOR,
                  VIEW_TYPE.WAITING, VIEW_TYPE.WINDOW, VIEW_TYPE.DIALOG,
                  VIEW_TYPE.SERVICE_LAYOUT))))


class AppRef(object):
    __reference = None

    @property
    def app(self):
        return AppRef.__reference

    @property
    def gfx(self):
        return AppRef.__reference.movie