Minor bugfixes all around
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user