refactored a few gui classes

This commit is contained in:
LAX1DUDE 2022-08-13 00:19:11 -07:00
parent 8b5b9c945f
commit 0de75b537d
4 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ public class GuiScreenConnectOption extends GuiScreen {
}else if(par1GuiButton.id == 2) { }else if(par1GuiButton.id == 2) {
GuiScreen scn = new GuiScreenLANConnect(guiScreen); GuiScreen scn = new GuiScreenLANConnect(guiScreen);
if(IntegratedServer.relayManager.count() == 0) { if(IntegratedServer.relayManager.count() == 0) {
mc.displayGuiScreen(new GuiNoRelays(guiScreen)); mc.displayGuiScreen(new GuiScreenNoRelays(guiScreen));
}else { }else {
mc.displayGuiScreen(scn); mc.displayGuiScreen(scn);
} }

View File

@ -28,7 +28,7 @@ public class GuiScreenCreateWorldSelection extends GuiScreen {
public void updateScreen() { public void updateScreen() {
if(EaglerAdapter.getFileChooserResultAvailable() && (isImportingEPK || isImportingMCA)) { 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; isImportingEPK = isImportingMCA = false;
} }
} }

View File

@ -6,7 +6,7 @@ import net.minecraft.src.GuiScreen;
import net.minecraft.src.GuiTextField; import net.minecraft.src.GuiTextField;
import net.minecraft.src.StringTranslate; import net.minecraft.src.StringTranslate;
public class GuiNameWorldImport extends GuiScreen { public class GuiScreenNameWorldImport extends GuiScreen {
private GuiScreen parentGuiScreen; private GuiScreen parentGuiScreen;
private GuiTextField theGuiTextField; private GuiTextField theGuiTextField;
private int importFormat; private int importFormat;
@ -16,7 +16,7 @@ public class GuiNameWorldImport extends GuiScreen {
private boolean definetlyTimeToImport = false; private boolean definetlyTimeToImport = false;
private boolean isImporting = 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.parentGuiScreen = menu;
this.importFormat = format; this.importFormat = format;
this.oldName = name; this.oldName = name;

View File

@ -4,11 +4,11 @@ import net.minecraft.src.GuiButton;
import net.minecraft.src.GuiScreen; import net.minecraft.src.GuiScreen;
import net.minecraft.src.StringTranslate; import net.minecraft.src.StringTranslate;
public class GuiNoRelays extends GuiScreen { public class GuiScreenNoRelays extends GuiScreen {
private GuiScreen parent; private GuiScreen parent;
public GuiNoRelays(GuiScreen parent) { public GuiScreenNoRelays(GuiScreen parent) {
this.parent = parent; this.parent = parent;
} }