Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 10458 | Rev 10460 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 10458 Rev 10459
Línea 1595... Línea 1595...
1595
							if(((mouse.y-y)/recorte)>50){
1595
							if(((mouse.y-y)/recorte)>50){
1596
				 				yf=mouse.y-y;	
1596
				 				yf=mouse.y-y;	
1597
				 				xf=(yf/recorte);
1597
				 				xf=(yf/recorte);
1598
				 			}
1598
				 			}
1599
						}
1599
						}
1600
			 		}/*else{
1600
			 		}else{
1601
			 			if(mouse.y>=(alto-10)){
1601
			 			if(mouse.y>=(alto-10)){
1602
			 				yf=alto-y;
1602
			 				yf=alto-y;
1603
				 			xf=(yf/recorte);
1603
				 			xf=(yf/recorte);
1604
				 			t4=false;	
1604
				 			t4=false;	
1605
			 			}
1605
			 			}
1606
			 			if(x+xf>(ancho)){
1606
			 			if(x+xf>(ancho)){
1607
			 				xf=(ancho)-x;
1607
			 				xf=(ancho)-x;
1608
				 			yf=(xf*recorte);
1608
				 			yf=(xf*recorte);
1609
				 			t4=false;	
1609
				 			t4=false;	
1610
			 			}
1610
			 			}
1611
			 		}*/
1611
			 		}
1612
			 	}
1612
			 	}
1613
			 	if(t3){
1613
			 	if(t3){
1614
			 		if(mouse.y>0&&(x+xf)<=(ancho)){
1614
			 		if(mouse.y>0&&(x+xf)<=(ancho)){
1615
				 		if(Math.round(xf)>=50){
1615
				 		if(Math.round(xf)>=50){
1616
							if(((yf+(y-mouse.y))/recorte)>50){
1616
							if(((yf+(y-mouse.y))/recorte)>50){
Línea 1618... Línea 1618...
1618
					 			xf=(yf/recorte);
1618
					 			xf=(yf/recorte);
1619
					 			y=mouse.y;	
1619
					 			y=mouse.y;	
1620
				 			}
1620
				 			}
1621
				 		}
1621
				 		}
Línea 1622... Línea 1622...
1622
 
1622
 
1623
			 		}/*else{
1623
			 		}else{
1624
			 			if(mouse.y<=0) {
1624
			 			if(mouse.y<=0) {
1625
			 				yf=yf+(y-mouse.y);
1625
			 				yf=yf+(y-mouse.y);
1626
				 			xf=(yf/recorte);
1626
				 			xf=(yf/recorte);
1627
			 				y=0;
1627
			 				y=0;
Línea 1630... Línea 1630...
1630
			 			if(x+xf>(ancho)){
1630
			 			if(x+xf>(ancho)){
1631
			 				xf=(ancho)-x;
1631
			 				xf=(ancho)-x;
1632
				 			yf=xf*recorte;
1632
				 			yf=xf*recorte;
1633
				 			t3=false;	
1633
				 			t3=false;	
1634
			 			}
1634
			 			}
1635
			 		}*/
1635
			 		}
1636
			 	}
1636
			 	}
1637
			 	if(t2){
1637
			 	if(t2){
1638
			 		if(mouse.y<(alto)&&x>=0){
1638
			 		if(mouse.y<(alto)&&x>=0){
1639
				 		if(Math.round(xf)>=50){	
1639
				 		if(Math.round(xf)>=50){	
1640
							if(((mouse.y-y)/recorte)>50){
1640
							if(((mouse.y-y)/recorte)>50){
Línea 1642... Línea 1642...
1642
					 			yf=mouse.y-y;
1642
					 			yf=mouse.y-y;
1643
					 			xf=(yf/recorte);
1643
					 			xf=(yf/recorte);
1644
				 			}
1644
				 			}
1645
					 	}
1645
					 	}
Línea 1646... Línea 1646...
1646
				 		
1646
				 		
1647
			 		}/*else{
1647
			 		}else{
1648
			 			if(mouse.y>=(alto-10)) {
1648
			 			if(mouse.y>=(alto-10)) {
1649
			 				yf=alto-y;
1649
			 				yf=alto-y;
1650
				 			xf=(yf/recorte);
1650
				 			xf=(yf/recorte);
1651
				 			t2=false;
1651
				 			t2=false;
Línea 1654... Línea 1654...
1654
			 				x=0;
1654
			 				x=0;
1655
			 				xf=mouse.y-y;
1655
			 				xf=mouse.y-y;
1656
				 			yf=(xf*recorte);
1656
				 			yf=(xf*recorte);
1657
				 			t2=false;
1657
				 			t2=false;
1658
			 			}
1658
			 			}
1659
			 		}*/
1659
			 		}
1660
			 	}
1660
			 	}
1661
			 	if(t1){
1661
			 	if(t1){
1662
			 		if(mouse.y>0&&x>=0){
1662
			 		if(mouse.y>0&&x>=0){
1663
				 		if(Math.round(xf)>=50){	
1663
				 		if(Math.round(xf)>=50){	
1664
							if(((yf+(y-mouse.y))/recorte)>50){
1664
							if(((yf+(y-mouse.y))/recorte)>50){
Línea 1666... Línea 1666...
1666
					 			xf=(yf/recorte);
1666
					 			xf=(yf/recorte);
1667
					 			x=(x-(y-mouse.y)/recorte);
1667
					 			x=(x-(y-mouse.y)/recorte);
1668
					 			y=mouse.y;
1668
					 			y=mouse.y;
1669
							}
1669
							}
1670
				 		}
1670
				 		}
1671
			 		}/*else{
1671
			 		}else{
1672
			 			if(mouse.y<=0) {
1672
			 			if(mouse.y<=0) {
1673
			 				yf=yf+(y-mouse.y);
1673
			 				yf=yf+(y-mouse.y);
1674
				 			xf=(yf/recorte);
1674
				 			xf=(yf/recorte);
1675
			 				y=0;
1675
			 				y=0;
1676
			 				t1=false;	
1676
			 				t1=false;	
Línea 1679... Línea 1679...
1679
			 				x=0;
1679
			 				x=0;
1680
			 				xf=yf+(y-mouse.y);
1680
			 				xf=yf+(y-mouse.y);
1681
				 			yf=(xf*recorte);
1681
				 			yf=(xf*recorte);
1682
				 			t1=false;	
1682
				 			t1=false;	
1683
			 			}
1683
			 			}
1684
			 		}*/
1684
			 		}
1685
			 	}
1685
			 	}
1686
				}else{
1686
				}else{
1687
				 if(t4){
1687
				 if(t4){
1688
			 		if(mouse.y<(alto-(2/scale))&&mouse.x<=(ancho-(2/scale))){
1688
			 		if(mouse.y<(alto-(2/scale))&&mouse.x<=(ancho-(2/scale))){