v0.8.2c: fixed back button on hero select not appearing when intended
This commit is contained in:
parent
e2aaace9e1
commit
f9c1a8697b
|
@ -201,7 +201,7 @@ public class HeroSelectScene extends PixelScene {
|
||||||
btnExit = new ExitButton();
|
btnExit = new ExitButton();
|
||||||
btnExit.setPos( Camera.main.width - btnExit.width(), 0 );
|
btnExit.setPos( Camera.main.width - btnExit.width(), 0 );
|
||||||
add( btnExit );
|
add( btnExit );
|
||||||
btnExit.visible = SPDSettings.intro() || Rankings.INSTANCE.totalNumber > 0;
|
btnExit.visible = !SPDSettings.intro() || Rankings.INSTANCE.totalNumber > 0;
|
||||||
|
|
||||||
PointerArea fadeResetter = new PointerArea(0, 0, Camera.main.width, Camera.main.height){
|
PointerArea fadeResetter = new PointerArea(0, 0, Camera.main.width, Camera.main.height){
|
||||||
@Override
|
@Override
|
||||||
|
@ -248,7 +248,7 @@ public class HeroSelectScene extends PixelScene {
|
||||||
@Override
|
@Override
|
||||||
public void update() {
|
public void update() {
|
||||||
super.update();
|
super.update();
|
||||||
btnExit.visible = SPDSettings.intro() || Rankings.INSTANCE.totalNumber > 0;
|
btnExit.visible = !SPDSettings.intro() || Rankings.INSTANCE.totalNumber > 0;
|
||||||
//do not fade when a window is open
|
//do not fade when a window is open
|
||||||
for (Object v : members){
|
for (Object v : members){
|
||||||
if (v instanceof Window) resetFade();
|
if (v instanceof Window) resetFade();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user