当前位置: 首页>>代码示例>>Python>>正文


Python GUI_SETTINGS.isGuiEnabled方法代码示例

本文整理汇总了Python中gui.GUI_SETTINGS.isGuiEnabled方法的典型用法代码示例。如果您正苦于以下问题:Python GUI_SETTINGS.isGuiEnabled方法的具体用法?Python GUI_SETTINGS.isGuiEnabled怎么用?Python GUI_SETTINGS.isGuiEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gui.GUI_SETTINGS的用法示例。


在下文中一共展示了GUI_SETTINGS.isGuiEnabled方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: createAppFactory

# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isGuiEnabled [as 别名]
def createAppFactory():
    if GUI_SETTINGS.isGuiEnabled():
        if GUI_SETTINGS.useAS3Battle:
            factory = AS3_AppFactory()
        else:
            factory = AS3_AS2_AppFactory()
    else:
        factory = NoAppFactory()
    return factory
开发者ID:webiumsk,项目名称:WOT-0.9.14-CT,代码行数:11,代码来源:app_factory.py

示例2: init

# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isGuiEnabled [as 别名]
def init(loadingScreenGUI = None):
    global onShopResyncStarted
    global onAccountShowGUI
    global onScreenShotMade
    global onIGRTypeChanged
    global onAccountBecomeNonPlayer
    global onAvatarBecomePlayer
    global onAccountBecomePlayer
    global onKickedFromServer
    global onShopResync
    g_loginManager.init()
    miniclient.configure_state()
    connectionManager.onKickedFromServer += onKickedFromServer
    g_playerEvents.onAccountShowGUI += onAccountShowGUI
    g_playerEvents.onAccountBecomeNonPlayer += onAccountBecomeNonPlayer
    g_playerEvents.onAccountBecomePlayer += onAccountBecomePlayer
    g_playerEvents.onAvatarBecomePlayer += onAvatarBecomePlayer
    g_playerEvents.onClientUpdated += onClientUpdate
    g_playerEvents.onShopResyncStarted += onShopResyncStarted
    g_playerEvents.onShopResync += onShopResync
    g_playerEvents.onCenterIsLongDisconnected += onCenterIsLongDisconnected
    g_playerEvents.onIGRTypeChanged += onIGRTypeChanged
    if GUI_SETTINGS.isGuiEnabled():
        from gui.Scaleform.app_factory import AS3_AS2_AppFactory as AppFactory
    else:
        from gui.Scaleform.app_factory import NoAppFactory as AppFactory
    g_appLoader.init(AppFactory())
    game_control.g_instance.init()
    from gui.Scaleform import SystemMessagesInterface
    SystemMessages.g_instance = SystemMessagesInterface.SystemMessagesInterface()
    SystemMessages.g_instance.init()
    ParametersCache.g_instance.init()
    if loadingScreenGUI and loadingScreenGUI.script:
        loadingScreenGUI.script.active(False)
    g_prbLoader.init()
    LogitechMonitor.init()
    g_itemsCache.init()
    g_settingsCache.init()
    g_settingsCore.init()
    g_eventsCache.init()
    g_clanCache.init()
    g_clubsCtrl.init()
    g_clanCtrl.init()
    g_vehicleProgressCache.init()
    g_goodiesCache.init()
    BigWorld.wg_setScreenshotNotifyCallback(onScreenShotMade)
    from constants import IS_DEVELOPMENT
    if IS_DEVELOPMENT:
        try:
            from gui.development import init
        except ImportError:
            LOG_ERROR('Development features not found.')
            init = lambda : None

        init()
    guiModsInit()
开发者ID:webiumsk,项目名称:WOT0.10.0,代码行数:58,代码来源:personality.py

示例3: createAim

# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isGuiEnabled [as 别名]
def createAim(type):
    if not GUI_SETTINGS.isGuiEnabled():
        from gui.development.no_gui.battle import Aim
        return Aim()
    if type == 'strategic':
        return StrategicAim((0, 0.0))
    if type == 'arcade':
        return ArcadeAim((0, 0.15), False)
    if type == 'sniper':
        return ArcadeAim((0, 0.0), True)
    if type == 'postmortem':
        return PostMortemAim((0, 0.0))
    LOG_ERROR('Undefined aim type. <%s>' % type)
开发者ID:Infernux,项目名称:Projects,代码行数:15,代码来源:aims.py

示例4: pushMessage

# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isGuiEnabled [as 别名]
 def pushMessage(self, text, type = SM_TYPE.Information, priority = None):
     if GUI_SETTINGS.isGuiEnabled():
         self.proto.serviceChannel.pushClientSysMessage(text, type, priority=priority)
     else:
         LOG_DEBUG('[SYSTEM MESSAGE]', text, type)
开发者ID:webiumsk,项目名称:WOT-0.9.14-CT,代码行数:7,代码来源:systemmessagesinterface.py

示例5: showPostMortem

# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isGuiEnabled [as 别名]
        self.window.fireEvent(LoadViewEvent(eventType), scope=EVENT_BUS_SCOPE.LOBBY)
        return

    def showPostMortem(self):
        LogitechMonitor.onScreenChange('postmortem')
        if self.__battleWindow:
            self.__battleWindow.showPostmortemTips()

    def showBotsMenu(self):
        try:
            from gui.development.ui.BotsMenu import BotsMenu
            BotsMenu(self.__battleWindow).active(True)
        except ImportError:
            from debug_utils import LOG_ERROR
            LOG_ERROR('BotsMenu not found.')

    def __onAppStarted(self, event):
        if BattleReplay.g_replayCtrl.autoStartBattleReplay() or connectionManager.isConnected():
            return
        if not self.__startVideoShown:
            self.__startVideoShown = True
            if self.showStartGameVideo():
                return
        self.showLogin()


if GUI_SETTINGS.isGuiEnabled():
    g_windowsManager = WindowsManager()
else:
    from gui.development.no_gui.WindowsManager import WindowsManager
    g_windowsManager = WindowsManager()
开发者ID:krzcho,项目名称:WOTDecompiled,代码行数:33,代码来源:windowsmanager.py


注:本文中的gui.GUI_SETTINGS.isGuiEnabled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。