vis_files/button.js
/// Adds a button onto a page
Adds a button onto a page
Adds a button onto a page
function addbutton(text,x,y,dx,dy,ac,type,val,val2)       
{
	buttext[nbut] = text;
	butx[nbut] = Math.floor(x);
	buty[nbut] = Math.floor(y);
	butdx[nbut] = Math.floor(dx);
	butdy[nbut] = Math.floor(dy);
	butac[nbut] = ac; 	
	buttype[nbut] = type;
	butover[nbut] = -1;
	butval[nbut] = val;
	butval2[nbut] = val2;
	nbut++;
}
function addbutton ( text , x , y , dx , dy , ac , type , val , val2 ) { buttext [ nbut ] = text ; butx [ nbut ] = Math . floor ( x ) ; buty [ nbut ] = Math . floor ( y ) ; butdx [ nbut ] = Math . floor ( dx ) ; butdy [ nbut ] = Math . floor ( dy ) ; butac [ nbut ] = ac ; buttype [ nbut ] = type ; butover [ nbut ] = - 1 ; butval [ nbut ] = val ; butval2 [ nbut ] = val2 ; nbut ++ ; }
Adds a button onto a page
Adds a button onto a page