Option to hide all objects

This commit is contained in:
yugecin 2016-09-30 23:11:43 +02:00
parent 722180d9ff
commit 5b264a5277
4 changed files with 29 additions and 7 deletions

View File

@ -784,6 +784,20 @@ public class Options {
} }
}, },
DANCE_HIDE_OBJECTS ("Don't draw objects", "HideObj", "If you only want to see cursors :)", Dancer.hideobjects) {
@Override
public void click(GameContainer container) {
bool = !bool;
Dancer.hideobjects = bool;
}
@Override
public void read(String s) {
super.read(s);
Dancer.hideobjects = bool;
}
},
DANCE_REMOVE_BG ("Never draw background", "RemoveBG", "Hello darkness my old friend", Dancer.removebg) { DANCE_REMOVE_BG ("Never draw background", "RemoveBG", "Hello darkness my old friend", Dancer.removebg) {
@Override @Override
public void click(GameContainer container) { public void click(GameContainer container) {

View File

@ -1422,12 +1422,14 @@ public class Game extends BasicGameState {
// normal case // normal case
if (!loseState) { if (!loseState) {
gameObj.draw(g, trackPosition, false); if (!Dancer.hideobjects) {
if (Dancer.mirror && GameMod.AUTO.isActive()) { gameObj.draw(g, trackPosition, false);
g.pushTransform(); if (Dancer.mirror && GameMod.AUTO.isActive()) {
g.rotate(Options.width / 2f, Options.height / 2f, 180f); g.pushTransform();
gameObj.draw(g, trackPosition, true); g.rotate(Options.width / 2f, Options.height / 2f, 180f);
g.popTransform(); gameObj.draw(g, trackPosition, true);
g.popTransform();
}
} }
} }
// death: make objects "fall" off the screen // death: make objects "fall" off the screen
@ -1462,7 +1464,9 @@ public class Game extends BasicGameState {
} }
// draw result objects // draw result objects
data.drawHitResults(trackPosition); if (!Dancer.hideobjects) {
data.drawHitResults(trackPosition);
}
} }
/** /**

View File

@ -113,12 +113,15 @@ public class OptionsMenu extends BasicGameState {
GameOption.DANCE_CIRCLE_STREAMS, GameOption.DANCE_CIRCLE_STREAMS,
GameOption.DANCE_ONLY_CIRCLE_STACKS, GameOption.DANCE_ONLY_CIRCLE_STACKS,
GameOption.DANCE_MIRROR, GameOption.DANCE_MIRROR,
}),
DANCEDISP ("Dance display", new GameOption[] {
GameOption.DANCE_DRAW_APPROACH, GameOption.DANCE_DRAW_APPROACH,
GameOption.DANCE_OBJECT_COLOR_OVERRIDE, GameOption.DANCE_OBJECT_COLOR_OVERRIDE,
GameOption.DANCE_OBJECT_COLOR_OVERRIDE_MIRRORED, GameOption.DANCE_OBJECT_COLOR_OVERRIDE_MIRRORED,
GameOption.DANCE_RGB_INC, GameOption.DANCE_RGB_INC,
GameOption.DANCE_CURSOR_USE_OBJECT_COLOR, GameOption.DANCE_CURSOR_USE_OBJECT_COLOR,
GameOption.DANCE_REMOVE_BG, GameOption.DANCE_REMOVE_BG,
GameOption.DANCE_HIDE_OBJECTS,
GameOption.DANCE_HIDE_UI, GameOption.DANCE_HIDE_UI,
}), }),
PIPPI ("Pippi", new GameOption[] { PIPPI ("Pippi", new GameOption[] {

View File

@ -57,6 +57,7 @@ public class Dancer {
public static int rgbhueinc = 70; // this should really get its own place somewhere... public static int rgbhueinc = 70; // this should really get its own place somewhere...
public static boolean cursoruselastobjectcolor = false; public static boolean cursoruselastobjectcolor = false;
public static MoverDirection moverDirection = MoverDirection.RANDOM; public static MoverDirection moverDirection = MoverDirection.RANDOM;
public static boolean hideobjects = false;
private int dir; private int dir;
private GameObject p; private GameObject p;