add cubic bezier mover for slider entries, add aggressiveness factor for slider entry/exit
This commit is contained in:
@@ -56,9 +56,11 @@ import com.sun.jna.platform.win32.Advapi32Util;
|
||||
import com.sun.jna.platform.win32.Win32Exception;
|
||||
import com.sun.jna.platform.win32.WinReg;
|
||||
import yugecin.opsudance.*;
|
||||
import yugecin.opsudance.movers.CubicBezierMover;
|
||||
import yugecin.opsudance.movers.QuadraticBezierMover;
|
||||
import yugecin.opsudance.movers.factories.AutoMoverFactory;
|
||||
import yugecin.opsudance.movers.factories.QuadraticBezierMoverFactory;
|
||||
import yugecin.opsudance.movers.slidermovers.DefaultSliderMoverController;
|
||||
import yugecin.opsudance.spinners.Spinner;
|
||||
import yugecin.opsudance.ui.SBOverlay;
|
||||
|
||||
@@ -649,6 +651,74 @@ public class Options {
|
||||
}
|
||||
},
|
||||
|
||||
DANCE_QUAD_BEZ_SLIDER_AGGRESSIVENESS_FACTOR ("Slider exit aggressiveness factor", "CubBezSliderExitAgr", "AKA initial D factor for sliderexits", 40, 0, 100) {
|
||||
@Override
|
||||
public String getValueString() {
|
||||
return val / 10 + "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drag(GameContainer container, int d) {
|
||||
super.drag(container, d);
|
||||
QuadraticBezierMover.sliderExitAggressivenessfactor = val / 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean showCondition() {
|
||||
return DANCE_QUAD_BEZ_USE_CUBIC_ON_SLIDERS.showCondition();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void read(String s) {
|
||||
super.read(s);
|
||||
QuadraticBezierMover.sliderExitAggressivenessfactor = val / 10;
|
||||
}
|
||||
},
|
||||
|
||||
DANCE_QUAD_BEZ_USE_CUBIC_ON_SLIDERS ("Use cubic bezier before sliders", "QuadBezCubicSliders", "Slider entry looks better using this", true) {
|
||||
@Override
|
||||
public void click(GameContainer container) {
|
||||
super.click(container);
|
||||
QuadraticBezierMoverFactory.cubicForSliderEntries = bool;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean showCondition() {
|
||||
return Dancer.moverFactories[Dancer.instance.getMoverFactoryIndex()] instanceof QuadraticBezierMoverFactory
|
||||
&& Dancer.sliderMoverController instanceof DefaultSliderMoverController;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void read(String s) {
|
||||
super.read(s);
|
||||
QuadraticBezierMoverFactory.cubicForSliderEntries = bool;
|
||||
}
|
||||
},
|
||||
|
||||
DANCE_QUAD_BEZ_CUBIC_AGGRESSIVENESS_FACTOR ("Slider entry aggressiveness factor", "CubBezSliderEntryAgr", "AKA initial D factor for sliderentries", 40, 0, 100) {
|
||||
@Override
|
||||
public String getValueString() {
|
||||
return val / 10 + "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drag(GameContainer container, int d) {
|
||||
super.drag(container, d);
|
||||
CubicBezierMover.aggressivenessfactor = val / 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean showCondition() {
|
||||
return DANCE_QUAD_BEZ_USE_CUBIC_ON_SLIDERS.showCondition() && DANCE_QUAD_BEZ_USE_CUBIC_ON_SLIDERS.getBooleanValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void read(String s) {
|
||||
super.read(s);
|
||||
CubicBezierMover.aggressivenessfactor = val / 10;
|
||||
}
|
||||
},
|
||||
|
||||
DANCE_MOVER_DIRECTION ("Mover direction", "MoverDirection", "The direction the mover goes" ) {
|
||||
@Override
|
||||
public String getValueString() {
|
||||
|
||||
@@ -114,6 +114,9 @@ public class OptionsMenu extends BasicGameState {
|
||||
DANCE ("Dance", new GameOption[] {
|
||||
GameOption.DANCE_MOVER,
|
||||
GameOption.DANCE_QUAD_BEZ_AGGRESSIVENESS,
|
||||
GameOption.DANCE_QUAD_BEZ_SLIDER_AGGRESSIVENESS_FACTOR,
|
||||
GameOption.DANCE_QUAD_BEZ_USE_CUBIC_ON_SLIDERS,
|
||||
GameOption.DANCE_QUAD_BEZ_CUBIC_AGGRESSIVENESS_FACTOR,
|
||||
GameOption.DANCE_MOVER_DIRECTION,
|
||||
GameOption.DANCE_SLIDER_MOVER_TYPE,
|
||||
GameOption.DANCE_SPINNER,
|
||||
|
||||
Reference in New Issue
Block a user