fix back button

Make it immune to the "do not hover if options visible" hack.
Make the states render it, not the options menu.
This commit is contained in:
yugecin
2018-07-08 10:58:00 +02:00
parent 70902e42cb
commit ab6aa75f8b
7 changed files with 17 additions and 9 deletions

View File

@@ -717,6 +717,9 @@ public class Game extends ComplexOpsuState {
if (OPTION_DANCE_ENABLE_SB.state) {
optionsOverlay.render(g);
if (optionsOverlay.isActive()) {
backButton.draw(g);
}
}
UI.draw(g);
@@ -728,6 +731,9 @@ public class Game extends ComplexOpsuState {
if (OPTION_DANCE_ENABLE_SB.state) {
optionsOverlay.preRenderUpdate();
if (optionsOverlay.isActive()) {
backButton.hoverUpdate();
}
}
int delta = renderDelta;