Example #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.')
Example #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)
Example #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.')
Example #4
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)