Disabled save/load buttons

This commit is contained in:
peytonplayz585 2023-07-27 03:16:15 -07:00
parent 1e4b0d3262
commit db04f8a80a
6 changed files with 9232 additions and 5247 deletions

14460
js/app.js

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -27,11 +27,8 @@ public final class GuiMainMenu extends GuiScreen {
this.controlList.add(new GuiButton(2, this.width / 2 - 100, this.height / 4 + 72, "Load level.."));
this.controlList.add(new GuiButton(3, this.width / 2 - 100, this.height / 4 + 96, "Play tutorial level"));
this.controlList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 120 + 12, "Options..."));
((GuiButton)this.controlList.get(1)).enabled = false;
((GuiButton)this.controlList.get(2)).enabled = false;
if(this.mc.session == null) {
((GuiButton)this.controlList.get(1)).enabled = false;
}
}
protected final void actionPerformed(GuiButton var1) {

View File

@ -8,10 +8,7 @@ public final class GuiGameOver extends GuiScreen {
this.controlList.clear();
this.controlList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 72, "Generate new level..."));
this.controlList.add(new GuiButton(2, this.width / 2 - 100, this.height / 4 + 96, "Load level.."));
if(this.mc.session == null) {
((GuiButton)this.controlList.get(1)).enabled = false;
}
((GuiButton)this.controlList.get(1)).enabled = false;
}
protected final void keyTyped(char var1, int var2) {

View File

@ -10,11 +10,8 @@ public final class GuiIngameMenu extends GuiScreen {
this.controlList.add(new GuiButton(2, this.width / 2 - 100, this.height / 4 + 48, "Save level.."));
this.controlList.add(new GuiButton(3, this.width / 2 - 100, this.height / 4 + 72, "Load level.."));
this.controlList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 120, "Back to game"));
if(this.mc.session == null) {
((GuiButton)this.controlList.get(2)).enabled = false;
((GuiButton)this.controlList.get(3)).enabled = false;
}
((GuiButton)this.controlList.get(2)).enabled = false;
((GuiButton)this.controlList.get(3)).enabled = false;
}
protected final void actionPerformed(GuiButton var1) {