Minor planet dialog fixes

This commit is contained in:
Anuken
2025-05-03 15:31:55 -04:00
parent 492fba05fd
commit 123c402d07
2 changed files with 7 additions and 4 deletions

View File

@@ -598,7 +598,10 @@ public class UI implements ApplicationListener, Loadable{
Table t = new Table(Styles.black3);
t.touchable = Touchable.disabled;
t.margin(8f).add(text).style(Styles.outlineLabel).labelAlign(Align.center);
t.update(() -> t.setPosition(Core.graphics.getWidth()/2f, Core.graphics.getHeight()/2f, Align.center));
t.update(() -> {
t.setPosition(Core.graphics.getWidth()/2f, Core.graphics.getHeight()/2f, Align.center);
t.toFront();
});
t.actions(Actions.fadeOut(duration, Interp.pow4In), Actions.remove());
t.pack();
t.act(0.1f);

View File

@@ -111,9 +111,9 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
//no multitouch drag
if(Core.input.getTouches() > 1) return;
if(showing()){
newPresets.clear();
}
if(showing() && newPresets.peek() != state.planet.getLastSector()) return;
newPresets.clear();
Vec3 pos = state.camPos;