Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
1.6 kB
4
Indexable
# vLine02PlayerType01 - 1 ou 2 players = 2 senao 1
# vLine02PlayerType02 - 1 ou 2 players = 2 senao 1
def __getData(graphicOnAirItem, momentExecution, workFlowtype):
	print workFlowtype.ToString()
	totalSectors =  next((tag for tag in graphicOnAirItem.Graphic.ViewData if (tag.TagName == "TotalSectors")), None)
	print totalSectors.TagValue
	graphicOnAirItem.PausesLeft = int(totalSectors.TagValue)


def __beforeContinue(graphicOnAirItem, momentExecution):
	print "__beforeContinue"
	totalSectors =  next((tag for tag in graphicOnAirItem.Graphic.ViewData if (tag.TagName == "TotalSectors")), None)
	step = int(totalSectors.TagValue) - graphicOnAirItem.PausesLeft
	print "step" + str(step) + "   pauses " + str(graphicOnAirItem.PausesLeft) + "   sectors " + str(totalSectors.TagValue)
	#print graphicOnAirItem.PausesLeft
	if graphicOnAirItem.PausesLeft == 1:
		graphicOnAirItem.Scene.Show("ChangeToTactics")
		print "played timeline ChangeToTactics"
	elif step == 0:
		graphicOnAirItem.Scene.Show("Sector02")
		print "played timeline Sector02"
	elif step == 1:
		graphicOnAirItem.Scene.Show("Sector03")
		print "played timeline Sector03"
	elif step == 2:
		graphicOnAirItem.Scene.Show("Sector04")
		print "played timeline Sector04"	
	elif step == 3:
		graphicOnAirItem.Scene.Show("Sector05")
		print "played timeline Sector05"
	elif step == 4:
		graphicOnAirItem.Scene.Show("Sector06")
		print "played timeline Sector06"
	else:
		graphicOnAirItem.Scene.Show("ChangeToTactics")
		print "played timeline ChangeToTactics"
Leave a Comment