示例#1
0
def _enable_sandbox_platform_pointcuts(config):
    from .lobby.header.fight_button_ import DisableFightButtonPointcut, DisableTrainingFightButtonPointcut
    from .lobby.header.fight_button_ import DisableBattlesForHiddenVehicles
    from .lobby.header.battle_type_selector.pointcuts import CommandBattle
    from .lobby.header.account_popover import MyClanInvitesBtnUnavailable, ClanBtnsUnavailable
    from .lobby.profile.pointcuts import MakeClanBtnUnavailable, MakeClubProfileButtonUnavailable
    from .lobby.tank_carousel import configure_pointcuts as _configure_carousel_pointcuts
    from .lobby.hangar.pointcuts import DisableTankServiceButtons, MaintenanceButtonFlickering, DeviceButtonsFlickering, TankModelHangarVisibility, TankHangarStatus, EnableCrew
    from .lobby.profile.pointcuts import MakeClanBtnUnavailable
    DisableFightButtonPointcut(config)
    DisableTrainingFightButtonPointcut(config)
    DisableBattlesForHiddenVehicles(config)
    CommandBattle()
    MakeClanBtnUnavailable()
    ClanBtnsUnavailable()
    MyClanInvitesBtnUnavailable()
    MakeClubProfileButtonUnavailable()
    _shop.OnShopItemWrapPointcut(config)
    DisableTankServiceButtons(config)
    MaintenanceButtonFlickering(config)
    DeviceButtonsFlickering(config)
    TankModelHangarVisibility(config)
    TankHangarStatus(config)
    _configure_carousel_pointcuts(config)
    _preview.ChangeVehicleIsPreviewAllowed(config)
    EnableCrew(config)
示例#2
0
def configure_state():
    content_type = ResMgr.activeContentType()
    if content_type == CONTENT_TYPE.SANDBOX:
        config = _get_config(content_type)
        _shop.OnShopItemWrapPointcut(config)
        _continue_download.OnHyperlinkClickPointcut()
        _continue_download.OnSquadHyperlinkClickPointcut()
        _continue_download.PrepareLibrariesListPointcut()
        _continue_download.OnBrowserHyperlinkClickPointcut()
        _continue_download.OnFailLoadingFramePointcut()
        _contacts.CreateSquadPointcut()
        _configure_lobby_pointcuts(config)
        _configure_login_pointcuts()
        _notifications_configure_pointcuts()
        _configure_fort_pointcuts()
        _configure_tech_tree_pointcuts(config)
        _configure_invitation_pointcuts()
        _configure_personal_quests_pointcuts()
        _dynamic_squads.ParametrizeInitPointcut()
        _dynamic_squads.DisableGameSettingPointcut()
        _dynamic_squads.InviteReceivedMessagePointcut()
        _promo_controller.ShowPromoBrowserPointcut()
        _fallout_controller.InitFalloutPointcut()
        _event.InitEventPointcut()
        _preview.ChangeVehicleIsPreviewAllowed(config)
示例#3
0
def _enable_all_pointcuts(config):
    _shop.OnShopItemWrapPointcut(config)
    _continue_download.OnHyperlinkClickPointcut()
    _continue_download.OnSquadHyperlinkClickPointcut()
    _continue_download.PrepareLibrariesListPointcut()
    _continue_download.OnBrowserHyperlinkClickPointcut()
    _continue_download.OnFailLoadingFramePointcut()
    _contacts.CreateSquadPointcut()
    _configure_lobby_pointcuts(config)
    _configure_login_pointcuts()
    _notifications_configure_pointcuts()
    _configure_tech_tree_pointcuts(config)
    _configure_invitation_pointcuts()
    _configure_personal_quests_pointcuts()
    _dynamic_squads.ParametrizeInitPointcut()
    _dynamic_squads.DisableGameSettingPointcut()
    _dynamic_squads.InviteReceivedMessagePointcut()
    _promo_controller.ShowPromoBrowserPointcut()
    _fallout_controller.InitFalloutPointcut()
    _ranked_battles_controller.InitRankedPointcut()
    _event.InitEventPointcut()
    _preview.ChangeVehicleIsPreviewAllowed(config)
    _configure_vehicle_compare_pointcuts()