Add option to do circles in lazy sliders

This commit is contained in:
yugecin 2016-10-01 14:51:09 +02:00
parent 9d6c413eb7
commit c58cf824a3
3 changed files with 21 additions and 2 deletions

View File

@ -932,6 +932,20 @@ public class Options {
} }
}, },
DANCE_CIRLCE_IN_LAZY_SLIDERS ("Do circles in lazy sliders", "CircleInLazySlider", "Circle in hitcircle in lazy sliders", Pippi.circleLazySliders) {
@Override
public void click(GameContainer container) {
bool = !bool;
Pippi.circleLazySliders = bool;
}
@Override
public void read(String s) {
super.read(s);
Pippi.circleLazySliders = bool;
}
},
DANCE_HIDE_UI ("Hide all UI", "HideUI", ".", Dancer.hideui) { DANCE_HIDE_UI ("Hide all UI", "HideUI", ".", Dancer.hideui) {
@Override @Override
public void click(GameContainer container) { public void click(GameContainer container) {

View File

@ -114,6 +114,7 @@ public class OptionsMenu extends BasicGameState {
GameOption.DANCE_CIRCLE_STREAMS, GameOption.DANCE_CIRCLE_STREAMS,
GameOption.DANCE_ONLY_CIRCLE_STACKS, GameOption.DANCE_ONLY_CIRCLE_STACKS,
GameOption.DANCE_CIRLCE_IN_SLOW_SLIDERS, GameOption.DANCE_CIRLCE_IN_SLOW_SLIDERS,
GameOption.DANCE_CIRLCE_IN_LAZY_SLIDERS,
GameOption.DANCE_MIRROR, GameOption.DANCE_MIRROR,
}), }),
DANCEDISP ("Dance display", new GameOption[] { DANCEDISP ("Dance display", new GameOption[] {

View File

@ -27,12 +27,13 @@ public class Pippi {
private static int currentdelta; private static int currentdelta;
private static final int targetdelta = 4; private static final int targetdelta = 4;
public static boolean enabled; public static boolean enabled = false;
public static int angleInc = 10; public static int angleInc = 10;
public static int angleSliderInc = 50; public static int angleSliderInc = 50;
public static boolean preventWobblyStreams = true; public static boolean preventWobblyStreams = true;
public static boolean followcircleExpand = true; public static boolean followcircleExpand = true;
public static boolean circleSlowSliders = true; public static boolean circleSlowSliders = false;
public static boolean circleLazySliders = false;
private static double pippirad; private static double pippirad;
private static double pippiminrad; private static double pippiminrad;
@ -48,6 +49,9 @@ public class Pippi {
public static void dance(int time, GameObject c, boolean isCurrentLazySlider) { public static void dance(int time, GameObject c, boolean isCurrentLazySlider) {
boolean slowSlider = circleSlowSliders && c.isSlider() && (((((Slider) c).pixelLength < 200 || c.getEndTime() - c.getTime() > 400)) || isCurrentLazySlider); boolean slowSlider = circleSlowSliders && c.isSlider() && (((((Slider) c).pixelLength < 200 || c.getEndTime() - c.getTime() > 400)) || isCurrentLazySlider);
if (!slowSlider) {
slowSlider = circleLazySliders && isCurrentLazySlider;
}
if ((!enabled || c.isSpinner()) && !slowSlider) { if ((!enabled || c.isSpinner()) && !slowSlider) {
return; return;
} }