option for rgb objs
This commit is contained in:
@@ -666,6 +666,20 @@ public class Options {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
DANCE_RGB_OBJECTS ("Use rgb objects", "RGBObj", "Give each object a new color", false) {
|
||||||
|
@Override
|
||||||
|
public void click(GameContainer container) {
|
||||||
|
bool = !bool;
|
||||||
|
Dancer.rgbobj = bool;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void read(String s) {
|
||||||
|
super.read(s);
|
||||||
|
Dancer.rgbobj = bool;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
PIPPI_ENABLE ("Pippi", "Pippi", "Move in circles like dancing pippi (osu! april fools joke 2016)", false) {
|
PIPPI_ENABLE ("Pippi", "Pippi", "Move in circles like dancing pippi (osu! april fools joke 2016)", false) {
|
||||||
// TODO
|
// TODO
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -89,8 +89,10 @@ public class Circle extends GameObject {
|
|||||||
this.color = color;
|
this.color = color;
|
||||||
this.comboEnd = comboEnd;
|
this.comboEnd = comboEnd;
|
||||||
updatePosition();
|
updatePosition();
|
||||||
|
if (Dancer.rgbobj) {
|
||||||
this.color = Utils.nextColor();
|
this.color = Utils.nextColor();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(Graphics g, int trackPosition, boolean mirror) {
|
public void draw(Graphics g, int trackPosition, boolean mirror) {
|
||||||
|
|||||||
@@ -159,7 +159,9 @@ public class Slider extends GameObject {
|
|||||||
this.data = data;
|
this.data = data;
|
||||||
this.color = color;
|
this.color = color;
|
||||||
this.comboEnd = comboEnd;
|
this.comboEnd = comboEnd;
|
||||||
|
if (Dancer.rgbobj) {
|
||||||
this.color = Utils.nextColor();
|
this.color = Utils.nextColor();
|
||||||
|
}
|
||||||
updatePosition();
|
updatePosition();
|
||||||
|
|
||||||
// slider time calculations
|
// slider time calculations
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ public class OptionsMenu extends BasicGameState {
|
|||||||
GameOption.DANCE_ONLY_CIRCLE_STACKS,
|
GameOption.DANCE_ONLY_CIRCLE_STACKS,
|
||||||
GameOption.DANCE_MIRROR,
|
GameOption.DANCE_MIRROR,
|
||||||
GameOption.DANCE_DRAW_APPROACH,
|
GameOption.DANCE_DRAW_APPROACH,
|
||||||
|
GameOption.DANCE_RGB_OBJECTS,
|
||||||
}),
|
}),
|
||||||
PIPPI ("Pippi", new GameOption[] {
|
PIPPI ("Pippi", new GameOption[] {
|
||||||
GameOption.PIPPI_ENABLE,
|
GameOption.PIPPI_ENABLE,
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ public class Dancer {
|
|||||||
|
|
||||||
public static boolean mirror; // this should really get its own place somewhere...
|
public static boolean mirror; // this should really get its own place somewhere...
|
||||||
public static boolean drawApproach; // this should really get its own place somewhere...
|
public static boolean drawApproach; // this should really get its own place somewhere...
|
||||||
|
public static boolean rgbobj; // this should really get its own place somewhere...
|
||||||
|
|
||||||
private int dir;
|
private int dir;
|
||||||
private GameObject p;
|
private GameObject p;
|
||||||
|
|||||||
Reference in New Issue
Block a user