本文整理汇总了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
示例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'
示例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)
示例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)
示例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
示例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
示例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()
示例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)
示例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)
示例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 = {}
示例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
示例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')
示例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)
示例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
示例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})