Minor bugfixes all around

This commit is contained in:
Anuken
2017-08-08 13:04:07 -04:00
parent eabdc3d27d
commit de22d72c51
7 changed files with 25 additions and 25 deletions

View File

@@ -38,7 +38,7 @@ public class UI extends SceneModule{
Table itemtable, weapontable, tools, loadingtable;
SettingsDialog prefs;
KeybindDialog keys;
Dialog about, menu, restart, tutorial, levels, upgrades;
Dialog about, menu, restart, tutorial, levels, upgrades, load;
Tooltip tooltip;
VisibilityProvider play = () -> !GameState.is(State.menu);
@@ -114,6 +114,8 @@ public class UI extends SceneModule{
public void init(){
//TODO just move these dialogs to different files
load = new LoadDialog();
upgrades = new UpgradeDialog();
levels = new LevelDialog();
@@ -393,12 +395,18 @@ public class UI extends SceneModule{
new table(){{
new table("button"){{
defaults().size(Unit.dp.inPixels(220), Unit.dp.inPixels(50));
defaults().size(220, 50);
new button("Play", () -> {
levels.show();
});
row();
new button("Load Game", () -> {
load.show();
});
row();
new button("Settings", () -> {
@@ -455,7 +463,7 @@ public class UI extends SceneModule{
new table("button"){{
new label("[yellow]Loading..."){{
get().setName("namelabel");
}}.scale(1).pad(10);
}}.scale(1).pad(Unit.dp.inPixels(10));
}}.end();
}}.end().get();