本文整理汇总了Python中gui.Scaleform.daapi.view.lobby.techtree.settings.SelectedNation.getName方法的典型用法代码示例。如果您正苦于以下问题:Python SelectedNation.getName方法的具体用法?Python SelectedNation.getName怎么用?Python SelectedNation.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gui.Scaleform.daapi.view.lobby.techtree.settings.SelectedNation
的用法示例。
在下文中一共展示了SelectedNation.getName方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: requestNationTreeData
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.techtree.settings import SelectedNation [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.techtree.settings.SelectedNation import getName [as 别名]
def requestNationTreeData(self):
"""
Overridden method of the class _Py_ScriptHandler.requestNationTreeData.
"""
if USE_XML_DUMPING and IS_DEVELOPMENT:
self.as_useXMLDumpingS()
self.as_setAvailableNationsS(g_techTreeDP.getAvailableNations())
self.as_setSelectedNationS(SelectedNation.getName())
return True
示例2: invalidateVehLocks
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.techtree.settings import SelectedNation [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.techtree.settings.SelectedNation import getName [as 别名]
def invalidateVehLocks(self, locks):
if self._data.invalidateLocks(locks):
self.as_refreshNationTreeDataS(SelectedNation.getName())
示例3: goToNextVehicle
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.techtree.settings import SelectedNation [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.techtree.settings.SelectedNation import getName [as 别名]
def goToNextVehicle(self, vehCD):
exitEvent = events.LoadViewEvent(VIEW_ALIAS.LOBBY_TECHTREE, ctx={'nation': SelectedNation.getName()})
loadEvent = events.LoadViewEvent(VIEW_ALIAS.LOBBY_RESEARCH, ctx={'rootCD': vehCD,
'exit': exitEvent})
self.fireEvent(loadEvent, scope=EVENT_BUS_SCOPE.LOBBY)
示例4: requestNationTreeData
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.techtree.settings import SelectedNation [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.techtree.settings.SelectedNation import getName [as 别名]
def requestNationTreeData(self):
if USE_XML_DUMPING and IS_DEVELOPMENT:
self.as_useXMLDumpingS()
self.as_setAvailableNationsS(g_techTreeDP.getAvailableNations())
self.as_setSelectedNationS(SelectedNation.getName())
return True
示例5: redraw
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.techtree.settings import SelectedNation [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.techtree.settings.SelectedNation import getName [as 别名]
def redraw(self):
self.as_refreshNationTreeDataS(SelectedNation.getName())
示例6: __handleReloadData
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.techtree.settings import SelectedNation [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.techtree.settings.SelectedNation import getName [as 别名]
def __handleReloadData(self, event):
if event.key is Keys.KEY_R:
g_techTreeDP.load(isReload=True)
self.as_refreshNationTreeDataS(SelectedNation.getName())
示例7: __onUpdateStage
# 需要导入模块: from gui.Scaleform.daapi.view.lobby.techtree.settings import SelectedNation [as 别名]
# 或者: from gui.Scaleform.daapi.view.lobby.techtree.settings.SelectedNation import getName [as 别名]
def __onUpdateStage(self):
g_techTreeDP.setOverride(self._getOverride())
if g_techTreeDP.load():
self.as_refreshNationTreeDataS(SelectedNation.getName())