Preparation for moving planet dialog

This commit is contained in:
Anuken 2020-05-30 12:12:04 -04:00
parent 73b25c103c
commit e1dfb68cfd
2 changed files with 10 additions and 4 deletions

View File

@ -87,11 +87,17 @@ public class PlanetDialog extends BaseDialog{
getCell(buttons).padBottom(-4);
buttons.background(Styles.black).defaults().growX().height(64f).pad(0);
keyDown(key -> {
if(key == KeyCode.escape || key == KeyCode.back){
Core.app.post(this::hide);
}
});
//TODO
buttons.button("$back", Icon.left, style, this::hide).margin(bmargin);
buttons.button("Research", Icon.tree, style, () -> ui.tech.show()).margin(bmargin);
//buttons.button("$back", Icon.left, style, this::hide).margin(bmargin);
//buttons.button("Research", Icon.tree, style, () -> ui.tech.show()).margin(bmargin);
//buttons.button("Database", Icon.book, style, () -> ui.database.show()).margin(bmargin);
buttons.button("Resources", Icon.file, style, resources::show).margin(bmargin);
//buttons.button("Resources", Icon.file, style, resources::show).margin(bmargin);
cam.fov = 60f;

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=316daf68d366d591ea1ae3caa30b1a5c0d838098
archash=fc5fd01cd2bfc1a95171f212e601ac030ee3e58f