Option to hide all objects
This commit is contained in:
parent
722180d9ff
commit
5b264a5277
|
@ -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) {
|
||||||
|
|
|
@ -1422,6 +1422,7 @@ public class Game extends BasicGameState {
|
||||||
|
|
||||||
// normal case
|
// normal case
|
||||||
if (!loseState) {
|
if (!loseState) {
|
||||||
|
if (!Dancer.hideobjects) {
|
||||||
gameObj.draw(g, trackPosition, false);
|
gameObj.draw(g, trackPosition, false);
|
||||||
if (Dancer.mirror && GameMod.AUTO.isActive()) {
|
if (Dancer.mirror && GameMod.AUTO.isActive()) {
|
||||||
g.pushTransform();
|
g.pushTransform();
|
||||||
|
@ -1430,6 +1431,7 @@ public class Game extends BasicGameState {
|
||||||
g.popTransform();
|
g.popTransform();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// death: make objects "fall" off the screen
|
// death: make objects "fall" off the screen
|
||||||
else {
|
else {
|
||||||
// time the object began falling
|
// time the object began falling
|
||||||
|
@ -1462,8 +1464,10 @@ public class Game extends BasicGameState {
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw result objects
|
// draw result objects
|
||||||
|
if (!Dancer.hideobjects) {
|
||||||
data.drawHitResults(trackPosition);
|
data.drawHitResults(trackPosition);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads all required data from a beatmap.
|
* Loads all required data from a beatmap.
|
||||||
|
|
|
@ -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[] {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user