option to hide all UI
This commit is contained in:
parent
6965e33856
commit
3a1f510e31
|
@ -698,6 +698,20 @@ public class Options {
|
|||
// 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) {
|
||||
// TODO
|
||||
},
|
||||
|
|
|
@ -487,6 +487,7 @@ public class Game extends BasicGameState {
|
|||
|
||||
// non-break
|
||||
else {
|
||||
if (!GameMod.AUTO.isActive() || !Dancer.hideui) {
|
||||
// game elements
|
||||
data.drawGameElements(g, false, objectIndex == 0);
|
||||
|
||||
|
@ -558,17 +559,18 @@ public class Game extends BasicGameState {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// draw hit objects
|
||||
if (!GameMod.FLASHLIGHT.isActive())
|
||||
drawHitObjects(g, trackPosition);
|
||||
}
|
||||
|
||||
if (GameMod.AUTO.isActive())
|
||||
if (!Dancer.hideui && GameMod.AUTO.isActive())
|
||||
GameImage.UNRANKED.getImage().drawCentered(width / 2, height * 0.077f);
|
||||
|
||||
// draw replay speed button
|
||||
if (isReplay || GameMod.AUTO.isActive())
|
||||
if (isReplay || (!Dancer.hideui && GameMod.AUTO.isActive()))
|
||||
playbackSpeed.getButton().draw();
|
||||
|
||||
// draw music position bar (for replay seeking)
|
||||
|
|
|
@ -114,6 +114,7 @@ public class OptionsMenu extends BasicGameState {
|
|||
GameOption.DANCE_DRAW_APPROACH,
|
||||
GameOption.DANCE_RGB_OBJECTS,
|
||||
GameOption.DANCE_REMOVE_BG,
|
||||
GameOption.DANCE_HIDE_UI,
|
||||
}),
|
||||
PIPPI ("Pippi", new GameOption[] {
|
||||
GameOption.PIPPI_ENABLE,
|
||||
|
|
|
@ -54,6 +54,7 @@ public class Dancer {
|
|||
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 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 GameObject p;
|
||||
|
|
Loading…
Reference in New Issue
Block a user