option to hide all UI
This commit is contained in:
@@ -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
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user