setup stuff

This commit is contained in:
ThisIsALegitUsername 2023-02-22 19:42:49 -05:00
parent 3cd975f85c
commit 03db59061d
10 changed files with 29 additions and 37 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ build
bin
proxyServer/bin
proxyServer/rundir
desktopRuntime/eclipseProject/*
desktopRuntime/_eagstorage*
desktopRuntime/eclipseProject/bin*
desktopRuntime/hs_err_*

View File

@ -7,17 +7,17 @@
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/CompileEPK.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/Java-WebSocket-1.5.1-with-dependencies.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/MakeOfflineDownload.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/codecjorbis-20101023.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/codecwav-20101023.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/lwjgl-egl.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/lwjgl-glfw.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/lwjgl-jemalloc.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/lwjgl-openal.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/lwjgl-opengles.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/lwjgl.jar"/>
<classpathentry kind="lib" path="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime/soundsystem-20120107.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/CompileEPK.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/Java-WebSocket-1.5.1-with-dependencies.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/MakeOfflineDownload.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/codecjorbis-20101023.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/codecwav-20101023.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/lwjgl-egl.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/lwjgl-glfw.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/lwjgl-jemalloc.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/lwjgl-openal.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/lwjgl-opengles.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/lwjgl.jar"/>
<classpathentry kind="lib" path="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime/soundsystem-20120107.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -18,12 +18,12 @@
<link>
<name>src_lwjgl_java</name>
<type>2</type>
<location>/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/src/lwjgl/java</location>
<location>C:/Users/hooman/Downloads/resent source real/Resent-1.8/src/lwjgl/java</location>
</link>
<link>
<name>src_main_java</name>
<type>2</type>
<location>/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/src/main/java</location>
<location>C:/Users/hooman/Downloads/resent source real/Resent-1.8/src/main/java</location>
</link>
</linkedResources>
</projectDescription>

View File

@ -18,5 +18,5 @@
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="eclipseProject"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipseProject"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Djava.library.path=."/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="/workspace/Resent-1.8/eaglercraftx-1.8/../eaglercraft_1.8_workspace/desktopRuntime"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="C:/Users/hooman/Downloads/resent source real/Resent-1.8/desktopRuntime"/>
</launchConfiguration>

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -1,17 +0,0 @@
package dev.resent.javascript;
import org.teavm.jso.JSBody;
import org.teavm.jso.dom.events.Event;
public class LoadScreen {
@JSBody(params = { "event", "epkSize" }, script = "setBarProg(event, epkSize)")
public static native void setBarProgress(Event event, int epkSize);
@JSBody(params = { "version" }, script = "setVersion(version)")
public static native void setClientVersion(String version);
@JSBody( script = "die()")
public static native void remove();
}

View File

@ -20,7 +20,7 @@ public class GuiMainMenu extends GuiScreen {
@Override
public void drawScreen(final int mouseX, final int mouseY, final float partialTicks) {
this.drawDefaultBackground();
this.mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/background.webp"));
this.mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/background.jpg"));
Gui.drawModalRectWithCustomSizedTexture(0, 0, 0.0f, 0.0f, this.width, this.height, this.width + 21, this.height + 50);
final String s1 = "Copyright " + EnumChatFormatting.RED + EnumChatFormatting.BOLD + "M" + EnumChatFormatting.RESET + "ojang AB";
this.drawString(Minecraft.getMinecraft().fontRendererObj, s1, this.width - Minecraft.getMinecraft().fontRendererObj.getStringWidth(s1) - 2, this.height - 10, -1);

View File

@ -34,7 +34,6 @@ import com.jcraft.jzlib.GZIPOutputStream;
import com.jcraft.jzlib.InflaterInputStream;
import dev.resent.client.Resent;
import dev.resent.javascript.LoadScreen;
import net.lax1dude.eaglercraft.v1_8.EaglercraftVersion;
import net.lax1dude.eaglercraft.v1_8.internal.buffer.ByteBuffer;
import net.lax1dude.eaglercraft.v1_8.internal.buffer.EaglerArrayBufferAllocator;
@ -152,7 +151,7 @@ public class PlatformRuntime {
}
logger.info("Decompressing: {}", logURL);
LoadScreen.remove();
remove();
try {
EPKLoader.loadEPK(epkFileData, epkFiles[i].path, PlatformAssets.assets);
@ -178,6 +177,15 @@ public class PlatformRuntime {
logger.info("Platform initialization complete");
}
@JSBody(params = { "event", "epkSize" }, script = "setBarProg(event, epkSize)")
public static native void setBarProgress(Event event, int epkSize);
@JSBody(params = { "version" }, script = "setVersion(version)")
public static native void setClientVersion(String version);
@JSBody( script = "die()")
public static native void remove();
@JSBody(params = {}, script = "return {antialias: false, depth: false, powerPreference: \"high-performance\", desynchronized: true, preserveDrawingBuffer: false, premultipliedAlpha: false, alpha: false};")
public static native JSObject youEagler();
@ -295,8 +303,8 @@ public class PlatformRuntime {
int epkSize = Integer.parseInt(request.getResponseHeader("content-length"));
Event event = evt;
LoadScreen.setClientVersion(Resent.VERSION);
LoadScreen.setBarProgress(event, epkSize);
setClientVersion(Resent.VERSION);
setBarProgress(event, epkSize);
}catch (Exception e){
e.printStackTrace();
}