View Single Post
  #5  
Old 03-16-2005, 03: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