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


Python Flash.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self):
     Flash.__init__(self, SWF_FILE_NAME, self.__FLASH_CLASS, self.__FLASH_ARGS, self.__FLASH_PATH)
     self.component.wg_inputKeyMode = 2
     self.component.drawWithRestrictedViewPort = False
     self.movie.backgroundAlpha = 0
     self.__parentUI = weakref.proxy(g_appLoader.getDefBattleApp())
     self.__parentUIcomp = self.__parentUI.component
     self.__ownUI = None
     return
开发者ID:ushmal,项目名称:wot,代码行数:11,代码来源:mod_reload.py

示例2: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self):
     Flash.__init__(self, self.__SWF_FILE_NAME, self.__FLASH_CLASS, [self.__FLASH_MC_NAME])
     self.component.wg_inputKeyMode = 2
     self.component.position.z = DEPTH_OF_Aim
     self.movie.backgroundAlpha = 0.0
     self.component.focus = False
     self.component.moveFocus = False
     self.component.heightMode = 'PIXEL'
     self.component.widthMode = 'PIXEL'
开发者ID:krzcho,项目名称:WOTDecompiled,代码行数:11,代码来源:aims.py

示例3: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, isColored, width, height):
     swf = 'keyboard.swf' if isColored else 'keyboardMono.swf'
     Flash.__init__(self, swf)
     EventSystemEntity.__init__(self)
     self.movie.wg_outputToLogitechLcd = True
     self.addListener(events.ShowViewEvent.SHOW_LOGIN, self.__showLogoScreen, EVENT_BUS_SCOPE.GLOBAL)
     self.addListener(events.ShowViewEvent.SHOW_LOBBY, self.__showStatsScreen, EVENT_BUS_SCOPE.GLOBAL)
     self.addListener(events.LoadEvent.LOAD_BATTLE_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(events.LoadEvent.LOAD_TUTORIAL_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY)
开发者ID:19colt87,项目名称:WOTDecompiled,代码行数:11,代码来源:logitechmonitor.py

示例4: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, component = None):
     Flash.__init__(self, 'gameLoading.swf', path=SCALEFORM_SWF_PATH_V3)
     self._displayRoot = self.getMember('root.main')
     if self._displayRoot is not None:
         self._displayRoot.resync()
         self._displayRoot.setLocale(getClientOverride())
         self._displayRoot.setVersion(getFullClientVersion())
         (width, height,) = GUI.screenResolution()
         self._displayRoot.updateStage(width, height)
开发者ID:Infernux,项目名称:Projects,代码行数:11,代码来源:gameloading.py

示例5: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, isColored, width, height):
     swf = 'keyboard.swf' if isColored else 'keyboardMono.swf'
     Flash.__init__(self, swf)
     EventSystemEntity.__init__(self)
     self.movie.wg_outputToLogitechLcd = True
     self.addListener(VIEW_ALIAS.LOGIN, self.__showLogoScreen, EVENT_BUS_SCOPE.GLOBAL)
     self.addListener(VIEW_ALIAS.LOBBY, self.__showStatsScreen, EVENT_BUS_SCOPE.GLOBAL)
     self.addListener(VIEW_ALIAS.BATTLE_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY)
     self.addListener(VIEW_ALIAS.TUTORIAL_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY)
     connectionManager.onDisconnected += self.__onDisconnect
开发者ID:webiumsk,项目名称:WOT-0.9.12,代码行数:12,代码来源:logitechmonitor.py

示例6: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self):
     Flash.__init__(self, MTVconfig['spotIndicatorSWF'], self.__FLASH_CLASS, [self.__FLASH_MC_NAME])
     self.component.wg_inputKeyMode = 2
     self.component.position.z = DEPTH_OF_Aim
     self.movie.backgroundAlpha = 0.0
     self.component.focus = False
     self.component.moveFocus = False
     self.component.heightMode = 'PIXEL'
     self.component.widthMode = 'PIXEL'
     self.flashSize = self.__FLASH_SIZE
开发者ID:wotmods,项目名称:MinimapTankview,代码行数:12,代码来源:minimap_tankview_extended.py

示例7: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, component = None):
     Flash.__init__(self, 'gameLoading.swf', path=SCALEFORM_SWF_PATH_V3)
     self._displayRoot = self.getMember('root.main')
     if self._displayRoot is not None:
         self._displayRoot.resync()
         self._displayRoot.setLocale(getClientOverride())
         self._displayRoot.setVersion(getFullClientVersion())
         if constants.IS_KOREA:
             self._displayRoot.setInfo(MENU.LOADING_GAMEINFO)
         g_guiResetters.add(self.onUpdateStage)
         self.onUpdateStage()
开发者ID:kblw,项目名称:wot_client,代码行数:13,代码来源:gameloading.py

示例8: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, hitsCount):
     names = tuple(map(lambda i: _DAMAGE_INDICATOR_MC_NAME.format(i), xrange(hitsCount)))
     Flash.__init__(self, _DAMAGE_INDICATOR_SWF, _DAMAGE_INDICATOR_COMPONENT, (names,))
     self.component.wg_inputKeyMode = 2
     self.component.position.z = DEPTH_OF_Aim
     self.movie.backgroundAlpha = 0.0
     self.component.focus = False
     self.component.moveFocus = False
     self.component.heightMode = 'PIXEL'
     self.component.widthMode = 'PIXEL'
     self.active(True)
开发者ID:webiumsk,项目名称:WOT-0.9.12,代码行数:13,代码来源:indicators.py

示例9: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self):
     Flash.__init__(self, self.__SWF_FILE_NAME, self.__FLASH_CLASS, [self.__FLASH_MC_NAME])
     self.component.wg_inputKeyMode = 2
     self.component.position.z = DEPTH_OF_Aim
     self.movie.backgroundAlpha = 0.0
     self.movie.scaleMode = 'NoScale'
     self.component.focus = False
     self.component.moveFocus = False
     self.component.heightMode = 'PIXEL'
     self.component.widthMode = 'PIXEL'
     self.flashSize = self.__FLASH_SIZE
     self.component.relativeRadius = 0.5
     self.__dObject = getattr(self.movie, self.__FLASH_MC_NAME, None)
开发者ID:wotmods,项目名称:WOTDecompiled,代码行数:15,代码来源:layout.py

示例10: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, parentUI, flash_name):
     Flash.__init__(self, flash_name)
     self.parentUI = parentUI
     self.movie.backgroundAlpha = 0.0
     self.component.wg_inputKeyMode = 2
     self.component.position.z = 0.5
     self.component.focus = False
     self.component.moveFocus = False
     self.component.heightMode = 'PIXEL'
     self.component.widthMode = 'PIXEL'
     self.flashSize = GUI.screenResolution()
     self.text = {}
     self.shadow = {}
     self.background = {}
开发者ID:CBARoughneck,项目名称:spoter-mods,代码行数:16,代码来源:mod_rod_mod.py

示例11: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, config):
     self.config = config
     Flash.__init__(self, config['swf_file_name'], config['flash_class'], [config['flash_mc_name']], config['swf_path'])
     self.component.wg_inputKeyMode = 2
     self.component.position.z = DEPTH_OF_Aim
     self.movie.backgroundAlpha = config['backgroundAlpha']
     self.movie.scaleMode = config['scaleMode']
     self.component.focus = config['focus']
     self.component.moveFocus = config['moveFocus']
     self.component.heightMode = config['heightMode']
     self.component.widthMode = config['widthMode']
     self.flashSize = config['flash_size']
     self.component.relativeRadius = config['relativeRadius']
     self.__dObject = getattr(self.movie, config['flash_mc_name'], None)
     return
开发者ID:IJOL,项目名称:wotmods,代码行数:17,代码来源:DirectionIndicator.py

示例12: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, mode, offset):
     Flash.__init__(self, 'crosshair_panel_{0:>s}.swf'.format(mode), self.__FLASH_CLASS)
     self.component.wg_inputKeyMode = 2
     self.component.position.z = DEPTH_OF_Aim
     self.component.focus = False
     self.component.moveFocus = False
     self.component.heightMode = 'PIXEL'
     self.component.widthMode = 'PIXEL'
     self.movie.backgroundAlpha = 0
     self.flashSize = GUI.screenResolution()
     self._offset = offset
     self._isLoaded = False
     self.mode = mode
     self.__timeInterval = _TimeInterval(Aim._UPDATE_INTERVAL, '_update', weakref.proxy(self))
     self.__isColorBlind = AccountSettings.getSettings('isColorBlind')
开发者ID:19colt87,项目名称:WOTDecompiled,代码行数:17,代码来源:aims.py

示例13: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, config):
     self.config = config
     Flash.__init__(
         self, config["swf_file_name"], config["flash_class"], [config["flash_mc_name"]], config["swf_path"]
     )
     self.component.wg_inputKeyMode = 2
     self.component.position.z = DEPTH_OF_Aim
     self.movie.backgroundAlpha = config["backgroundAlpha"]
     self.movie.scaleMode = config["scaleMode"]
     self.component.focus = config["focus"]
     self.component.moveFocus = config["moveFocus"]
     self.component.heightMode = config["heightMode"]
     self.component.widthMode = config["widthMode"]
     self.flashSize = config["flash_size"]
     self.component.relativeRadius = config["relativeRadius"]
     self.__dObject = getattr(self.movie, config["flash_mc_name"], None)
开发者ID:Arn0ldus,项目名称:wotmods,代码行数:18,代码来源:DirectionIndicator.py

示例14: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, hitsCount):
     names = tuple(map(lambda i: _DAMAGE_INDICATOR_MC_NAME.format(i), xrange(hitsCount)))
     Flash.__init__(self, _DAMAGE_INDICATOR_SWF, _DAMAGE_INDICATOR_COMPONENT, (names,))
     self.component.wg_inputKeyMode = 2
     self.component.position.z = DEPTH_OF_Aim
     self.movie.backgroundAlpha = 0.0
     self.component.focus = False
     self.component.moveFocus = False
     self.component.heightMode = 'PIXEL'
     self.component.widthMode = 'PIXEL'
     ctrl = g_sessionProvider.shared.crosshair
     if ctrl is not None:
         ctrl.onCrosshairOffsetChanged += self.__onCrosshairOffsetChanged
         self.__onCrosshairOffsetChanged(*ctrl.getOffset())
     self.active(True)
     return
开发者ID:aevitas,项目名称:wotsdk,代码行数:18,代码来源:legacyindicators.py

示例15: __init__

# 需要导入模块: from gui.Scaleform.Flash import Flash [as 别名]
# 或者: from gui.Scaleform.Flash.Flash import __init__ [as 别名]
 def __init__(self, swf):
     Flash.__init__(self, swf)
     component = self.component
     component.size = (2, 2)
     self.component = GUI.Window('')
     self.component.addChild(component, 'flash')
     self.component.script = self
     self.component.crossFocus = True
     self.component.dragFocus = True
     self.component.dropFocus = True
     self.component.focus = True
     self.component.moveFocus = True
     self.component.mouseButtonFocus = True
     self.movie.backgroundAlpha = 0.75
     self.movie.wg_inputKeyMode = 2
     self.addFsCallbacks({'WoTLogoff': self.onLogoff})
开发者ID:webiumsk,项目名称:WOT0.10.0,代码行数:18,代码来源:windows.py


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