Preparation for moving planet dialog
This commit is contained in:
@@ -87,11 +87,17 @@ public class PlanetDialog extends BaseDialog{
|
|||||||
getCell(buttons).padBottom(-4);
|
getCell(buttons).padBottom(-4);
|
||||||
buttons.background(Styles.black).defaults().growX().height(64f).pad(0);
|
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
|
//TODO
|
||||||
buttons.button("$back", Icon.left, style, this::hide).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("Research", Icon.tree, style, () -> ui.tech.show()).margin(bmargin);
|
||||||
//buttons.button("Database", Icon.book, style, () -> ui.database.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;
|
cam.fov = 60f;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=316daf68d366d591ea1ae3caa30b1a5c0d838098
|
archash=fc5fd01cd2bfc1a95171f212e601ac030ee3e58f
|
||||||
|
|||||||
Reference in New Issue
Block a user