This commit is contained in:
radmanplays 2024-03-26 10:38:34 +03:30
parent c9bf822287
commit eaffa82279
3 changed files with 551 additions and 89 deletions

View File

@ -1,58 +0,0 @@
package net.eaglerforge.gui;
import net.eaglerforge.api.BaseData;
import net.eaglerforge.api.ModData;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
public class EmptyGui extends GuiScreen {
public static boolean initialized;
public static boolean drawdefaultbg;
private static Minecraft mc;
public void initGui() {
if(!this.initialized){
this.initialized = true;
}
}
public void onGuiClosed() {
this.initialized = false;
}
public static void setdrawdefaultbg(boolean value){
drawdefaultbg = value;
}
public void drawScreen(int i, int j, float f) {
if(drawdefaultbg) {
this.drawDefaultBackground();
}
super.drawScreen(i, j, f);
}
public static ModData makeModData() {
ModData emptygui = new ModData();
emptygui.set("drawdefaultbg", drawdefaultbg);
emptygui.setCallbackVoid("DisplayGUI", () -> {
mc.displayGuiScreen(new EmptyGui());
});
emptygui.setCallbackVoid("CloseGUI", () -> {
mc.displayGuiScreen((GuiScreen) null);
mc.setIngameFocus();
});
emptygui.setCallbackBoolean("isInitialized", () -> {
return initialized;
});
return emptygui;
}
public void loadModData(BaseData data) {
drawdefaultbg = data.getBoolean("drawdefaultbg");
}
}

View File

@ -12,10 +12,10 @@ public class EaglercraftVersion {
/// Customize these to fit your fork: /// Customize these to fit your fork:
public static final String projectForkName = "EaglerForge"; public static final String projectForkName = "EaglerForge";
public static final String projectForkVersion = "v1.2.5"; public static final String projectForkVersion = "v1.3";
public static final String projectForkVendor = "radmanplays"; public static final String projectForkVendor = "radmanplays";
public static final String projectForkURL = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"; public static final String projectForkURL = "https://github.com/eaglerforge/EaglerForge";
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
@ -58,7 +58,7 @@ public class EaglercraftVersion {
public static final long demoWorldSeed = (long) "North Carolina".hashCode(); public static final long demoWorldSeed = (long) "North Carolina".hashCode();
public static final boolean mainMenuEnableGithubButton = false; public static final boolean mainMenuEnableGithubButton = true;
public static final boolean forceDemoMode = false; public static final boolean forceDemoMode = false;

File diff suppressed because one or more lines are too long