update adventure saveload dialog & screen image capture

This commit is contained in:
Anthony Calosa
2022-04-04 22:15:05 +08:00
parent 2c6e5575a8
commit 13e909e44b
2 changed files with 5 additions and 1 deletions

View File

@@ -253,6 +253,8 @@ public class SaveLoadScene extends UIScene {
}
})).align(Align.right);
}
//makes dialog hidden immediately when you open saveload scene..
dialog.getColor().a = 0;
previewImage = ui.findActor("preview");
previewBorder = ui.findActor("preview_border");
header = Controls.newLabel(Forge.getLocalizer().getMessage("lblSave"));

View File

@@ -78,7 +78,6 @@ public class UIScene extends Scene {
@Override
public void enter() {
Gdx.input.setInputProcessor(stage); //Start taking input from the ui
if (this instanceof RewardScene) { //backdrop for rewardscene - Shop
if (RewardScene.Type.Shop.equals(((RewardScene)this).type)) {
if (market == null) {
@@ -91,6 +90,7 @@ public class UIScene extends Scene {
}
}
screenImage.setDrawable(new TextureRegionDrawable(market));
Gdx.input.setInputProcessor(stage); //Start taking input from the ui
super.enter();
return;
}
@@ -106,6 +106,7 @@ public class UIScene extends Scene {
}
}
screenImage.setDrawable(new TextureRegionDrawable(tavern));
Gdx.input.setInputProcessor(stage); //Start taking input from the ui
super.enter();
return;
}
@@ -124,6 +125,7 @@ public class UIScene extends Scene {
pixmap.dispose();
potPixmap.dispose();
}
Gdx.input.setInputProcessor(stage); //Start taking input from the ui
super.enter();
}