示例#1
0
from gui.Scaleform.genConsts.GRAPHICS_OPTIMIZATION_ALIASES import GRAPHICS_OPTIMIZATION_ALIASES
from gui.Scaleform.genConsts.HANGAR_ALIASES import HANGAR_ALIASES
from gui.Scaleform.managers.ColorSchemeManager import ColorSchemeManager
from gui.Scaleform.managers.GameInputMgr import GameInputMgr
from gui.Scaleform.managers.GlobalVarsManager import GlobalVarsManager
from gui.Scaleform.managers.PopoverManager import PopoverManager
from gui.Scaleform.managers.SoundManager import SoundManager
from gui.Scaleform.managers.TweenSystem import TweenManager
from gui.Scaleform.managers.UtilsManager import UtilsManager
from gui.Scaleform.managers.voice_chat import LobbyVoiceChatManager
from gui.shared import EVENT_BUS_SCOPE
from gui.app_loader import settings as app_settings
from helpers import dependency, uniprof
from skeletons.gui.game_control import IBootcampController
LOBBY_OPTIMIZATION_CONFIG = {
    VIEW_ALIAS.LOBBY_HEADER: OptimizationSetting(),
    HANGAR_ALIASES.TANK_CAROUSEL: OptimizationSetting(),
    GRAPHICS_OPTIMIZATION_ALIASES.CUSTOMISATION_BOTTOM_PANEL:
    OptimizationSetting()
}


class LobbyEntry(SFApplication):
    bootcampCtrl = dependency.descriptor(IBootcampController)

    def __init__(self, appNS):
        super(LobbyEntry, self).__init__('lobby.swf', appNS)

    @property
    def cursorMgr(self):
        return self.__getCursorFromContainer()
from gui.Scaleform.genConsts.HANGAR_ALIASES import HANGAR_ALIASES
from gui.Scaleform.managers.ColorSchemeManager import ColorSchemeManager
from gui.Scaleform.managers.cursor_mgr import CursorManager
from gui.Scaleform.managers.GameInputMgr import GameInputMgr
from gui.Scaleform.managers.GlobalVarsManager import GlobalVarsManager
from gui.Scaleform.managers.PopoverManager import PopoverManager
from gui.Scaleform.managers.SoundManager import SoundManager
from gui.Scaleform.managers.TweenSystem import TweenManager
from gui.Scaleform.managers.UtilsManager import UtilsManager
from gui.Scaleform.managers.voice_chat import LobbyVoiceChatManager
from gui.impl.gen import R
from gui.shared import EVENT_BUS_SCOPE
from helpers import dependency, uniprof
from skeletons.gui.app_loader import GuiGlobalSpaceID
from skeletons.gui.game_control import IBootcampController
LOBBY_OPTIMIZATION_CONFIG = {VIEW_ALIAS.LOBBY_HEADER: OptimizationSetting(),
 VIEW_ALIAS.LOBBY_TECHTREE: OptimizationSetting(),
 VIEW_ALIAS.LOBBY_RESEARCH: OptimizationSetting(),
 HANGAR_ALIASES.TANK_CAROUSEL: OptimizationSetting(),
 HANGAR_ALIASES.RANKED_TANK_CAROUSEL: OptimizationSetting(),
 HANGAR_ALIASES.BATTLEPASS_TANK_CAROUSEL: OptimizationSetting(),
 HANGAR_ALIASES.ROYALE_TANK_CAROUSEL: OptimizationSetting(),
 GRAPHICS_OPTIMIZATION_ALIASES.CUSTOMISATION_BOTTOM_PANEL: OptimizationSetting()}

class LobbyEntry(AppEntry):
    bootcampCtrl = dependency.descriptor(IBootcampController)

    def __init__(self, appNS, ctrlModeFlags):
        super(LobbyEntry, self).__init__(R.entries.lobby(), appNS, ctrlModeFlags)

    @property
示例#3
0
from gui.Scaleform.managers.GameInputMgr import GameInputMgr
from gui.Scaleform.managers.GlobalVarsManager import GlobalVarsManager
from gui.Scaleform.managers.PopoverManager import PopoverManager
from gui.sounds.SoundManager import SoundManager
from gui.Scaleform.managers.TweenSystem import TweenManager
from gui.Scaleform.managers.UtilsManager import UtilsManager
from gui.Scaleform.managers.fade_manager import FadeManager
from gui.Scaleform.managers.voice_chat import LobbyVoiceChatManager
from gui.impl.gen import R
from gui.shared import EVENT_BUS_SCOPE
from helpers import dependency, uniprof
from skeletons.account_helpers.settings_core import ISettingsCore
from skeletons.gui.app_loader import GuiGlobalSpaceID
from skeletons.gui.game_control import IBootcampController
LOBBY_OPTIMIZATION_CONFIG = {
    VIEW_ALIAS.LOBBY_HEADER: OptimizationSetting(),
    VIEW_ALIAS.LOBBY_TECHTREE: OptimizationSetting(),
    VIEW_ALIAS.LOBBY_RESEARCH: OptimizationSetting(),
    HANGAR_ALIASES.TANK_CAROUSEL: OptimizationSetting(),
    HANGAR_ALIASES.RANKED_TANK_CAROUSEL: OptimizationSetting(),
    HANGAR_ALIASES.BATTLEPASS_TANK_CAROUSEL: OptimizationSetting(),
    HANGAR_ALIASES.ROYALE_TANK_CAROUSEL: OptimizationSetting(),
    HANGAR_ALIASES.MAPBOX_TANK_CAROUSEL: OptimizationSetting(),
    GRAPHICS_OPTIMIZATION_ALIASES.CUSTOMISATION_BOTTOM_PANEL:
    OptimizationSetting()
}
_EXTENDED_RENDER_PIPELINE = 0


class LobbyEntry(AppEntry):
    bootcampCtrl = dependency.descriptor(IBootcampController)
        return

    def addView(self, pyView):
        result = super(TopWindowContainer, self).addView(pyView)
        if result and self.__app is not None:
            self.__app.enterGuiControlMode(pyView.uniqueName)
        return result

    def removeView(self, pyView):
        result = super(TopWindowContainer, self).removeView(pyView)
        if self.__app is not None:
            self.__app.leaveGuiControlMode(pyView.uniqueName)
        return result


BATTLE_OPTIMIZATION_CONFIG = {BATTLE_VIEW_ALIASES.MINIMAP: OptimizationSetting('minimapAlphaEnabled', True),
 BATTLE_VIEW_ALIASES.DAMAGE_PANEL: OptimizationSetting()}

class BattleEntry(AppEntry):

    def __init__(self, appNS, ctrlModeFlags):
        super(BattleEntry, self).__init__(R.entries.battle(), appNS, ctrlModeFlags, daapiBridge=DAAPIRootBridge(initCallback='registerBattleTest'))
        self.__input = None
        return

    @uniprof.regionDecorator(label='gui.battle', scope='enter')
    def afterCreate(self):
        super(BattleEntry, self).afterCreate()
        self.__input = BattleGameInputMgr()
        self.__input.start()
示例#5
0
    def addView(self, pyView):
        result = super(TopWindowContainer, self).addView(pyView)
        if result and self.__app is not None:
            self.__app.enterGuiControlMode(pyView.uniqueName)
        return result

    def removeView(self, pyView):
        result = super(TopWindowContainer, self).removeView(pyView)
        if self.__app is not None:
            self.__app.leaveGuiControlMode(pyView.uniqueName)
        return result


BATTLE_OPTIMIZATION_CONFIG = {
    BATTLE_VIEW_ALIASES.MINIMAP: OptimizationSetting('minimapAlphaEnabled',
                                                     True),
    BATTLE_VIEW_ALIASES.DAMAGE_PANEL: OptimizationSetting()
}


class BattleEntry(SFApplication):
    def __init__(self, appNS):
        super(BattleEntry, self).__init__(
            'battle.swf', appNS,
            DAAPIRootBridge(initCallback='registerBattleTest'))
        self.__input = None
        return

    @property
    def cursorMgr(self):
        return self.__getCursorFromContainer()