Proyectos de Subversion LeadersLinked - Backend

Rev

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

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