本文整理汇总了Python中CvScreenUtilsInterface.getScreenUtils方法的典型用法代码示例。如果您正苦于以下问题:Python CvScreenUtilsInterface.getScreenUtils方法的具体用法?Python CvScreenUtilsInterface.getScreenUtils怎么用?Python CvScreenUtilsInterface.getScreenUtils使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CvScreenUtilsInterface
的用法示例。
在下文中一共展示了CvScreenUtilsInterface.getScreenUtils方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: mouseOverPlot
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def mouseOverPlot (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().mouseOverPlot(argsList)):
return
if (WORLDBUILDER_SCREEN == argsList[0]):
worldBuilderScreen.mouseOverPlot(argsList)
示例2: minimapClicked
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def minimapClicked (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().minimapClicked(argsList)):
return
if (MILITARY_ADVISOR == argsList[0]):
militaryAdvisor.minimapClicked()
return
示例3: onClose
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def onClose (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().onClose(argsList)):
return
if (HandleCloseMap.has_key(argsList[0])):
screen = HandleCloseMap.get(argsList[0])
screen.onClose()
示例4: update
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def update (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().update(argsList)):
return
if (HandleInputMap.has_key(argsList[0])):
screen = HandleInputMap.get(argsList[0])
screen.update(argsList[1])
示例5: rightMouseDown
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def rightMouseDown (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().rightMouseDown(argsList)):
return
if ( argsList[0] == WORLDBUILDER_SCREEN ):
worldBuilderScreen.rightMouseDown(argsList)
return 1
return 0
示例6: movieDone
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def movieDone(argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().movieDone(argsList)):
return
if (argsList[0] == INTRO_MOVIE_SCREEN):
introMovie.hideScreen()
if (argsList[0] == VICTORY_MOVIE_SCREEN):
victoryMovie.hideScreen()
示例7: minimapClicked
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def minimapClicked (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().minimapClicked(argsList)):
return
if (MILITARY_ADVISOR == argsList[0]):
militaryAdvisor.minimapClicked()
elif (IMMIGRATION_SCREEN == argsList[0]):
immigrationScreen.minimapClicked()
return
示例8: forceScreenRedraw
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def forceScreenRedraw (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().forceScreenRedraw(argsList)):
return
# Main Interface Screen
if ( argsList[0] == MAIN_INTERFACE ):
mainInterface.redraw()
elif ( argsList[0] == TECH_CHOOSER ):
techChooser.updateTechRecords(true)
示例9: forceScreenRedraw
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def forceScreenRedraw (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().forceScreenRedraw(argsList)):
return
# Main Interface Screen
if ( argsList[0] == MAIN_INTERFACE ):
mainInterface.redraw()
elif ( argsList[0] == WORLDBUILDER_SCREEN ):
worldBuilderScreen.redraw()
elif ( argsList[0] == WORLDBUILDER_DIPLOMACY_SCREEN ):
worldBuilderDiplomacyScreen.redraw()
示例10: forceScreenRedraw
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def forceScreenRedraw (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().forceScreenRedraw(argsList)):
return
# Main Interface Screen
if ( argsList[0] == MAIN_INTERFACE ):
mainInterface.redraw()
elif ( argsList[0] == WORLDBUILDER_SCREEN ):
worldBuilderScreen.redraw()
elif ( argsList[0] == WORLDBUILDER_DIPLOMACY_SCREEN ):
worldBuilderDiplomacyScreen.redraw()
elif ( argsList[0] == TECH_CHOOSER ):
techChooser.updateTechRecords(true)
示例11: handleInput
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def handleInput (argsList):
' handle input is called when a screen is up '
inputClass = PyScreenInput.ScreenInput(argsList)
# allows overides for mods
ret = CvScreenUtilsInterface.getScreenUtils().handleInput( (inputClass.getPythonFile(),inputClass) )
# get the screen that is active from the HandleInputMap Dictionary
screen = HandleInputMap.get( inputClass.getPythonFile() )
# call handle input on that screen
if ( screen and not ret):
return screen.handleInput(inputClass)
return 0
示例12: forceScreenUpdate
# 需要导入模块: import CvScreenUtilsInterface [as 别名]
# 或者: from CvScreenUtilsInterface import getScreenUtils [as 别名]
def forceScreenUpdate (argsList):
# allows overides for mods
if (CvScreenUtilsInterface.getScreenUtils().forceScreenUpdate(argsList)):
return
# Tech chooser update (forced from net message)
if ( argsList[0] == TECH_CHOOSER ):
techChooser.updateTechRecords(false)
# Main interface Screen
elif ( argsList[0] == MAIN_INTERFACE ):
mainInterface.updateScreen()
# world builder Screen
elif ( argsList[0] == WORLDBUILDER_SCREEN ):
worldBuilderScreen.updateScreen()