readd delay for rekt
This commit is contained in:
parent
0c7fa96ae3
commit
98c00679ad
|
@ -38,6 +38,12 @@ public class RektCircleSpinner extends Spinner {
|
||||||
@Override
|
@Override
|
||||||
public double[] getPoint()
|
public double[] getPoint()
|
||||||
{
|
{
|
||||||
|
if( ++delay < DELAY )
|
||||||
|
{
|
||||||
|
return point;
|
||||||
|
}
|
||||||
|
delay = 0;
|
||||||
|
|
||||||
final int INC = 50;
|
final int INC = 50;
|
||||||
|
|
||||||
if( index == 0 )
|
if( index == 0 )
|
||||||
|
@ -48,20 +54,20 @@ public class RektCircleSpinner extends Spinner {
|
||||||
}
|
}
|
||||||
else if( index == 1 )
|
else if( index == 1 )
|
||||||
{
|
{
|
||||||
point[0] = Options.width / 2d - size / 2d;
|
point[0] = Options.width / 2 - size / 2;
|
||||||
point[1] = Options.height / 2d - size / 2d + pos;
|
point[1] = Options.height / 2 - size / 2 + pos;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
else if( index == 2 )
|
else if( index == 2 )
|
||||||
{
|
{
|
||||||
point[0] = Options.width / 2d - size / 2d + pos;
|
point[0] = Options.width / 2 - size / 2 + pos;
|
||||||
point[1] = Options.height / 2d + size / 2d;
|
point[1] = Options.height / 2 + size / 2;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
else if( index == 3 )
|
else if( index == 3 )
|
||||||
{
|
{
|
||||||
point[0] = Options.width / 2d + size / 2d;
|
point[0] = Options.width / 2 + size / 2;
|
||||||
point[1] = Options.height / 2d + size / 2d - pos;
|
point[1] = Options.height / 2 + size / 2 - pos;
|
||||||
pos += INC;
|
pos += INC;
|
||||||
if( pos > size )
|
if( pos > size )
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,6 +22,7 @@ public abstract class Spinner {
|
||||||
private double[][] points;
|
private double[][] points;
|
||||||
private int length;
|
private int length;
|
||||||
private int index;
|
private int index;
|
||||||
|
public static int DELAY = 3;
|
||||||
|
|
||||||
public abstract void init();
|
public abstract void init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user