コード例 #1
0
 def start(self):
     self.__flashObject = self.__ui.getMember('_level0.consumablesPanel')
     if self.__flashObject:
         self.__flashObject.resync()
         self.__flashObject.script = self
         self.__plugins.init()
         self.__plugins.start()
         props = _FalloutSlotViewProps(useStandardLayout=not hasRage())
         self.__flashObject.setProperties(isEventBattle(), props._asdict())
         self.__addListeners()
     else:
         LOG_ERROR('Display object is not found in the swf file.')
コード例 #2
0
 def __init__(self, parentUI):
     self.__ui = parentUI
     self.__flashObject = None
     self.__cds = [None] * PANEL_MAX_LENGTH
     self.__mask = 0
     self.__keys = {}
     self.__currentOrderIdx = -1
     self.__plugins = PluginsCollection(self)
     plugins = {}
     if hasRage():
         plugins['rageBar'] = _RageBarPlugin
     self.__plugins.addPlugins(plugins)
コード例 #3
0
 def start(self):
     self.__flashObject = self.__ui.getMember('_level0.consumablesPanel')
     if self.__flashObject:
         self.__flashObject.resync()
         self.__flashObject.script = self
         self.__plugins.init()
         self.__plugins.start()
         props = _FalloutSlotViewProps(useStandardLayout=not hasRage())
         self.__flashObject.setProperties(isEventBattle(), props._asdict())
         self.__addListeners()
     else:
         LOG_ERROR('Display object is not found in the swf file.')
コード例 #4
0
ファイル: consumablespanel.py プロジェクト: kblw/wot_client
 def __init__(self, parentUI):
     self.__ui = parentUI
     self.__flashObject = None
     self.__cds = [None] * PANEL_MAX_LENGTH
     self.__mask = 0
     self.__keys = {}
     self.__currentOrderIdx = -1
     self.__plugins = PluginsCollection(self)
     plugins = {}
     if hasRage():
         plugins['rageBar'] = _RageBarPlugin
     self.__plugins.addPlugins(plugins)