当前位置: 首页>>代码示例>>Python>>正文


Python CvScreenUtilsInterface.getScreenUtils方法代码示例

本文整理汇总了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)
开发者ID:DarkLunaPhantom,项目名称:civ4ffplus,代码行数:9,代码来源:CvScreensInterface.py

示例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
开发者ID:DarkLunaPhantom,项目名称:civ4ffplus,代码行数:10,代码来源:CvScreensInterface.py

示例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()
开发者ID:DarkLunaPhantom,项目名称:civ4ffplus,代码行数:10,代码来源:CvScreensInterface.py

示例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])
开发者ID:DarkLunaPhantom,项目名称:civ4ffplus,代码行数:10,代码来源:CvScreensInterface.py

示例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
开发者ID:DarkLunaPhantom,项目名称:civ4ffplus,代码行数:11,代码来源:CvScreensInterface.py

示例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()
开发者ID:DarkLunaPhantom,项目名称:civ4ffplus,代码行数:12,代码来源:CvScreensInterface.py

示例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
开发者ID:Nightinggale,项目名称:Medieval_Tech,代码行数:12,代码来源:CvScreensInterface.py

示例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)
开发者ID:DarkLunaPhantom,项目名称:Civ4-K-Mod,代码行数:12,代码来源:CvScreensInterface.py

示例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()
开发者ID:Nightinggale,项目名称:Medieval_Tech,代码行数:14,代码来源:CvScreensInterface.py

示例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)
开发者ID:DarkLunaPhantom,项目名称:civ4ffplus,代码行数:16,代码来源:CvScreensInterface.py

示例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
开发者ID:DarkLunaPhantom,项目名称:civ4ffplus,代码行数:16,代码来源:CvScreensInterface.py

示例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()
开发者ID:DarkLunaPhantom,项目名称:Civ4-K-Mod,代码行数:16,代码来源:CvScreensInterface.py


注:本文中的CvScreenUtilsInterface.getScreenUtils方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。