本文整理汇总了Python中gui.Scaleform.windows.UIInterface.populateUI方法的典型用法代码示例。如果您正苦于以下问题:Python UIInterface.populateUI方法的具体用法?Python UIInterface.populateUI怎么用?Python UIInterface.populateUI使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gui.Scaleform.windows.UIInterface
的用法示例。
在下文中一共展示了UIInterface.populateUI方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: populateUI
# 需要导入模块: from gui.Scaleform.windows import UIInterface [as 别名]
# 或者: from gui.Scaleform.windows.UIInterface import populateUI [as 别名]
def populateUI(self, proxy):
UIInterface.populateUI(self, proxy)
self.GUICtrl = self.uiHolder.getMember('_level0.radialMenu')
self.GUICtrl.script = self
for state in self.ALL_SHORTCUTS:
self.GUICtrl.setState(state)
list = self.__getDataForFlash(state)
self.GUICtrl.buildData(list)
示例2: populateUI
# 需要导入模块: from gui.Scaleform.windows import UIInterface [as 别名]
# 或者: from gui.Scaleform.windows.UIInterface import populateUI [as 别名]
def populateUI(self, proxy):
UIInterface.populateUI(self, proxy)
sm = self.uiHolder.movie.soundManager
sm.script = self
try:
self.sounds.load()
except Exception:
LOG_ERROR('There is error while loading sounds xml data')
LOG_CURRENT_EXCEPTION()
示例3: populateUI
# 需要导入模块: from gui.Scaleform.windows import UIInterface [as 别名]
# 或者: from gui.Scaleform.windows.UIInterface import populateUI [as 别名]
def populateUI(self, proxy):
UIInterface.populateUI(self, proxy)
self.GUICtrl = self.uiHolder.getMember('_level0.radialMenu')
self.GUICtrl.script = self
for state in self.ALL_SHORTCUTS:
self.GUICtrl.setState(state)
list = self.__getDataForFlash(state)
self.GUICtrl.buildData(list)
g_eventBus.addListener(GameEvent.RADIAL_MENU_CMD, self.__handleRadialMenuCmd, scope=EVENT_BUS_SCOPE.BATTLE)
示例4: populateUI
# 需要导入模块: from gui.Scaleform.windows import UIInterface [as 别名]
# 或者: from gui.Scaleform.windows.UIInterface import populateUI [as 别名]
def populateUI(self, proxy):
UIInterface.populateUI(self, proxy)
self.GUICtrl = self.uiHolder.getMember('_level0.radialMenu')
self.GUICtrl.script = self
for state in self.ALL_SHORTCUTS:
self.GUICtrl.setState(state)
list = self.__getDataForFlash(state)
self.GUICtrl.buildData(list)
g_eventBus.addListener(GameEvent.RADIAL_MENU_CMD, self.__handleRadialMenuCmd, scope=EVENT_BUS_SCOPE.BATTLE)
ctrl = g_sessionProvider.dynamic.respawn
if ctrl is not None:
ctrl.onRespawnVisibilityChanged += self.__onRespawnVisibilityChanged
return
示例5: populateUI
# 需要导入模块: from gui.Scaleform.windows import UIInterface [as 别名]
# 或者: from gui.Scaleform.windows.UIInterface import populateUI [as 别名]
def populateUI(self, proxy):
UIInterface.populateUI(self, proxy)
self.flashObject = self.uiHolder.getMember('_level0.debugPanel')
self.flashObject.script = self
示例6: populateUI
# 需要导入模块: from gui.Scaleform.windows import UIInterface [as 别名]
# 或者: from gui.Scaleform.windows.UIInterface import populateUI [as 别名]
def populateUI(self, proxy):
UIInterface.populateUI(self, proxy)
self.uiHolder.addExternalCallbacks({'%s.RequestLength' % self.__prefix: self.onRequestLength,
'%s.RequestItemAt' % self.__prefix: self.onRequestItemAt,
'%s.RequestItemRange' % self.__prefix: self.onRequestItemRange})