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;