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) {
|
||||
// TODO
|
||||
},
|
||||
|
||||
@@ -320,18 +320,20 @@ public class Game extends BasicGameState {
|
||||
}
|
||||
|
||||
// background
|
||||
float dimLevel = Options.getBackgroundDim();
|
||||
if (trackPosition < firstObjectTime) {
|
||||
if (timeDiff < approachTime)
|
||||
dimLevel += (1f - dimLevel) * ((float) timeDiff / approachTime);
|
||||
else
|
||||
dimLevel = 1f;
|
||||
}
|
||||
if (Options.isDefaultPlayfieldForced() || !beatmap.drawBackground(width, height, dimLevel, false)) {
|
||||
Image playfield = GameImage.PLAYFIELD.getImage();
|
||||
playfield.setAlpha(dimLevel);
|
||||
playfield.draw();
|
||||
playfield.setAlpha(1f);
|
||||
if (!Dancer.removebg) {
|
||||
float dimLevel = Options.getBackgroundDim();
|
||||
if (trackPosition < firstObjectTime) {
|
||||
if (timeDiff < approachTime)
|
||||
dimLevel += (1f - dimLevel) * ((float) timeDiff / approachTime);
|
||||
else
|
||||
dimLevel = 1f;
|
||||
}
|
||||
if (Options.isDefaultPlayfieldForced() || !beatmap.drawBackground(width, height, dimLevel, false)) {
|
||||
Image playfield = GameImage.PLAYFIELD.getImage();
|
||||
playfield.setAlpha(dimLevel);
|
||||
playfield.draw();
|
||||
playfield.setAlpha(1f);
|
||||
}
|
||||
}
|
||||
|
||||
if (GameMod.FLASHLIGHT.isActive())
|
||||
|
||||
@@ -113,6 +113,7 @@ public class OptionsMenu extends BasicGameState {
|
||||
GameOption.DANCE_MIRROR,
|
||||
GameOption.DANCE_DRAW_APPROACH,
|
||||
GameOption.DANCE_RGB_OBJECTS,
|
||||
GameOption.DANCE_REMOVE_BG,
|
||||
}),
|
||||
PIPPI ("Pippi", new GameOption[] {
|
||||
GameOption.PIPPI_ENABLE,
|
||||
|
||||
Reference in New Issue
Block a user