option to never draw background

This commit is contained in:
yugecin
2016-09-30 09:35:21 +02:00
parent e5d7f0f159
commit 73754e9c7d
4 changed files with 30 additions and 12 deletions

View File

@@ -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())

View File

@@ -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,