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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user