option to never draw background
This commit is contained in:
@@ -680,6 +680,20 @@ public class Options {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
DANCE_REMOVE_BG ("Never draw background", "RemoveBG", "Hello darkness my old friend", true) {
|
||||||
|
@Override
|
||||||
|
public void click(GameContainer container) {
|
||||||
|
bool = !bool;
|
||||||
|
Dancer.removebg = bool;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void read(String s) {
|
||||||
|
super.read(s);
|
||||||
|
Dancer.removebg = 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
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ public class Game extends BasicGameState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// background
|
// background
|
||||||
|
if (!Dancer.removebg) {
|
||||||
float dimLevel = Options.getBackgroundDim();
|
float dimLevel = Options.getBackgroundDim();
|
||||||
if (trackPosition < firstObjectTime) {
|
if (trackPosition < firstObjectTime) {
|
||||||
if (timeDiff < approachTime)
|
if (timeDiff < approachTime)
|
||||||
@@ -333,6 +334,7 @@ public class Game extends BasicGameState {
|
|||||||
playfield.draw();
|
playfield.draw();
|
||||||
playfield.setAlpha(1f);
|
playfield.setAlpha(1f);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (GameMod.FLASHLIGHT.isActive())
|
if (GameMod.FLASHLIGHT.isActive())
|
||||||
Graphics.setCurrent(g);
|
Graphics.setCurrent(g);
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ public class OptionsMenu extends BasicGameState {
|
|||||||
GameOption.DANCE_MIRROR,
|
GameOption.DANCE_MIRROR,
|
||||||
GameOption.DANCE_DRAW_APPROACH,
|
GameOption.DANCE_DRAW_APPROACH,
|
||||||
GameOption.DANCE_RGB_OBJECTS,
|
GameOption.DANCE_RGB_OBJECTS,
|
||||||
|
GameOption.DANCE_REMOVE_BG,
|
||||||
}),
|
}),
|
||||||
PIPPI ("Pippi", new GameOption[] {
|
PIPPI ("Pippi", new GameOption[] {
|
||||||
GameOption.PIPPI_ENABLE,
|
GameOption.PIPPI_ENABLE,
|
||||||
|
|||||||
@@ -53,6 +53,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...
|
public static boolean rgbobj; // this should really get its own place somewhere...
|
||||||
|
public static boolean removebg; // 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