Minor planet dialog fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user