Disabled save/load buttons
This commit is contained in:
parent
1e4b0d3262
commit
db04f8a80a
File diff suppressed because one or more lines are too long
BIN
js/resources.mc
BIN
js/resources.mc
Binary file not shown.
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user