refactored a few gui classes
This commit is contained in:
parent
8b5b9c945f
commit
0de75b537d
|
@ -37,7 +37,7 @@ public class GuiScreenConnectOption extends GuiScreen {
|
|||
}else if(par1GuiButton.id == 2) {
|
||||
GuiScreen scn = new GuiScreenLANConnect(guiScreen);
|
||||
if(IntegratedServer.relayManager.count() == 0) {
|
||||
mc.displayGuiScreen(new GuiNoRelays(guiScreen));
|
||||
mc.displayGuiScreen(new GuiScreenNoRelays(guiScreen));
|
||||
}else {
|
||||
mc.displayGuiScreen(scn);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ public class GuiScreenCreateWorldSelection extends GuiScreen {
|
|||
|
||||
public void updateScreen() {
|
||||
if(EaglerAdapter.getFileChooserResultAvailable() && (isImportingEPK || isImportingMCA)) {
|
||||
this.mc.displayGuiScreen(new GuiNameWorldImport(mainmenu, EaglerAdapter.getFileChooserResultName(), isImportingEPK ? 0 : (isImportingMCA ? 1 : -1)));
|
||||
this.mc.displayGuiScreen(new GuiScreenNameWorldImport(mainmenu, EaglerAdapter.getFileChooserResultName(), isImportingEPK ? 0 : (isImportingMCA ? 1 : -1)));
|
||||
isImportingEPK = isImportingMCA = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import net.minecraft.src.GuiScreen;
|
|||
import net.minecraft.src.GuiTextField;
|
||||
import net.minecraft.src.StringTranslate;
|
||||
|
||||
public class GuiNameWorldImport extends GuiScreen {
|
||||
public class GuiScreenNameWorldImport extends GuiScreen {
|
||||
private GuiScreen parentGuiScreen;
|
||||
private GuiTextField theGuiTextField;
|
||||
private int importFormat;
|
||||
|
@ -16,7 +16,7 @@ public class GuiNameWorldImport extends GuiScreen {
|
|||
private boolean definetlyTimeToImport = false;
|
||||
private boolean isImporting = false;
|
||||
|
||||
public GuiNameWorldImport(GuiScreen menu, String name, int format) {
|
||||
public GuiScreenNameWorldImport(GuiScreen menu, String name, int format) {
|
||||
this.parentGuiScreen = menu;
|
||||
this.importFormat = format;
|
||||
this.oldName = name;
|
|
@ -4,11 +4,11 @@ import net.minecraft.src.GuiButton;
|
|||
import net.minecraft.src.GuiScreen;
|
||||
import net.minecraft.src.StringTranslate;
|
||||
|
||||
public class GuiNoRelays extends GuiScreen {
|
||||
public class GuiScreenNoRelays extends GuiScreen {
|
||||
|
||||
private GuiScreen parent;
|
||||
|
||||
public GuiNoRelays(GuiScreen parent) {
|
||||
public GuiScreenNoRelays(GuiScreen parent) {
|
||||
this.parent = parent;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user