WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-16-2005, 04:26 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
don't think so, but here is the code (purpose is to get access to the menue while being in VR):

Code:
def mouseclick(button):
	global beginPos0502, line0503,counterMaterialSelectMenue,info,i, counterGraphSelectMenue,infoArray0513
	pos = viz.mousepos()
	#print 'mouse is currently at',pos
	if button == viz.MOUSEBUTTON_LEFT:
		if info.materialSelectLock==1:
			
			#print 'counterMaterialSelectMenue:',counterMaterialSelectMenue
			counterMaterialSelectMenue=counterMaterialSelectMenue%6
			#print 'counterMaterialSelectMenue:',counterMaterialSelectMenue
			
			if (counterMaterialSelectMenue==0):
				radioPine.set(True)
			if (counterMaterialSelectMenue==1):
				radioPlastic.set(True) 
			if (counterMaterialSelectMenue==2):
				radioGranite.set(True) 
			if (counterMaterialSelectMenue==3):
				radioBronze.set(True)
			if (counterMaterialSelectMenue==4):
				radioSilver.set(True)
			if (counterMaterialSelectMenue==5):
				radioGold.set(True)
		
			counterMaterialSelectMenue=counterMaterialSelectMenue+1
		
		if infoUIWorld.graphSelectLock==1:
			infoArray0513=infoUIWorldArray
			
			#print 'counterGraphSelectMenue:',counterGraphSelectMenue
			counterGraphSelectMenue=counterGraphSelectMenue%13
			#print 'counterGraphSelectMenue:',counterGraphSelectMenue
			setMenueSelectionZero(infoUIWorldArray)
			selectUnselectMenueItem(infoUIWorldArray[counterGraphSelectMenue])
			counterGraphSelectMenue=counterGraphSelectMenue+1
the mouseclick function goes on but as it is declared global in the first line of mouseclick it normally should be fine. Guess I will have to live with the "warning"
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:38 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC