Пример #1
0
def getNavMode():
	global RIFT
	global PPT1
	panel = vizinfo.InfoPanel(INSTRUCTIONS,align=viz.ALIGN_CENTER,fontSize=22,icon=False,key=None)
	d = yield viztask.waitMouseDown(None)
	panel.remove()
	if d.button == viz.MOUSEBUTTON_RIGHT:
		RIFT = True
	if d.button == viz.MOUSEBUTTON_LEFT:
		PPT1 = True
	setUpNav()
Пример #2
0
def DisplayInstructionsTask():
    global male2
    global revealSelf
    global manChase

    """Task that display instructions and waits for keypress to continue"""
    panel = vizinfo.InfoPanel(INSTRUCTIONS,align=viz.ALIGN_CENTER,fontSize=22,icon=False,key=None)
    pigeonClone = pigeon.clone(scale=[200]*3)
    pigeonClone.addAction(vizact.spin(0,1,0,45))
    pigeonClone.enable(viz.DEPTH_TEST,op=viz.OP_ROOT)
    panel.addItem(pigeonClone,align=viz.ALIGN_CENTER)
    d = yield viztask.waitMouseDown(None)
    panel.remove()
    if d.button == viz.MOUSEBUTTON_RIGHT:
        revealSelf = True
    if d.button == viz.MOUSEBUTTON_MIDDLE:
        manChase = True
    panel = vizinfo.InfoPanel("PRESS SPACE TO BEGIN THE HUNT",align=viz.ALIGN_CENTER,fontSize=22,icon=False,key=None)
    yield viztask.waitKeyDown(' ')
    panel.remove()
Пример #3
0
    def hide_inst_continue_left_mouse(self):

        yield viztask.waitMouseDown(viz.MOUSEBUTTON_LEFT)
        self.scene.hide_instruction()