option to hide all UI

This commit is contained in:
yugecin
2016-09-30 12:06:36 +02:00
parent 6965e33856
commit 3a1f510e31
4 changed files with 80 additions and 62 deletions

View File

@@ -698,6 +698,20 @@ public class Options {
// TODO // TODO
}, },
DANCE_HIDE_UI ("Hide all UI", "HideUI", ".", true) {
@Override
public void click(GameContainer container) {
bool = !bool;
Dancer.hideui = bool;
}
@Override
public void read(String s) {
super.read(s);
Dancer.hideui = 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
}, },

View File

@@ -487,6 +487,7 @@ public class Game extends BasicGameState {
// non-break // non-break
else { else {
if (!GameMod.AUTO.isActive() || !Dancer.hideui) {
// game elements // game elements
data.drawGameElements(g, false, objectIndex == 0); data.drawGameElements(g, false, objectIndex == 0);
@@ -558,17 +559,18 @@ public class Game extends BasicGameState {
} }
} }
} }
}
// draw hit objects // draw hit objects
if (!GameMod.FLASHLIGHT.isActive()) if (!GameMod.FLASHLIGHT.isActive())
drawHitObjects(g, trackPosition); drawHitObjects(g, trackPosition);
} }
if (GameMod.AUTO.isActive()) if (!Dancer.hideui && GameMod.AUTO.isActive())
GameImage.UNRANKED.getImage().drawCentered(width / 2, height * 0.077f); GameImage.UNRANKED.getImage().drawCentered(width / 2, height * 0.077f);
// draw replay speed button // draw replay speed button
if (isReplay || GameMod.AUTO.isActive()) if (isReplay || (!Dancer.hideui && GameMod.AUTO.isActive()))
playbackSpeed.getButton().draw(); playbackSpeed.getButton().draw();
// draw music position bar (for replay seeking) // draw music position bar (for replay seeking)

View File

@@ -114,6 +114,7 @@ public class OptionsMenu extends BasicGameState {
GameOption.DANCE_DRAW_APPROACH, GameOption.DANCE_DRAW_APPROACH,
GameOption.DANCE_RGB_OBJECTS, GameOption.DANCE_RGB_OBJECTS,
GameOption.DANCE_REMOVE_BG, GameOption.DANCE_REMOVE_BG,
GameOption.DANCE_HIDE_UI,
}), }),
PIPPI ("Pippi", new GameOption[] { PIPPI ("Pippi", new GameOption[] {
GameOption.PIPPI_ENABLE, GameOption.PIPPI_ENABLE,

View File

@@ -54,6 +54,7 @@ public class Dancer {
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... public static boolean removebg; // this should really get its own place somewhere...
public static boolean hideui; // this should really get its own place somewhere...
private int dir; private int dir;
private GameObject p; private GameObject p;