merge
This commit is contained in:
commit
24e0b9c1d4
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -19,3 +19,7 @@ desktopRuntime/eclipseProject/.project
|
|||
desktopRuntime/eclipseProject/eaglercraftDebugRuntime.launch
|
||||
desktopRuntime/eclipseProject/.classpath
|
||||
.gitpod.yml
|
||||
javascript/EaglercraftX_1.8_Offline_en_US.html
|
||||
javascript/EaglercraftX_1.8_Offline_International.html
|
||||
javascript/Resent_3.7_patch__1.8_US.html
|
||||
javascript/Resent_3.7_patch__1.8_International.html
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@echo off
|
||||
title MakeOfflineDownload
|
||||
java -cp "desktopRuntime/MakeOfflineDownload.jar;desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeOfflineDownload "javascript/OfflineDownloadTemplate.txt" "javascript/classes.js;javascript/fix-webm-duration.js" "javascript/assets.epk" "javascript/EaglercraftX_1.8_Offline_en_US.html" "javascript/EaglercraftX_1.8_Offline_International.html" "javascript/lang"
|
||||
java -cp "desktopRuntime/MakeOfflineDownload.jar;desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeOfflineDownload "javascript/OfflineDownloadTemplate.txt" "javascript/classes.js;javascript/fix-webm-duration.js" "javascript/assets.epk" "javascript/Resent_3.7_patch__1.8_US.html" "javascript/Resent_3.7_patch__1.8_International.html" "javascript/lang"
|
||||
pause
|
File diff suppressed because one or more lines are too long
Binary file not shown.
32031
javascript/classes.js
32031
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -477,4 +477,13 @@ public class PlatformRuntime {
|
|||
public static void removeLoadScreen() {
|
||||
//
|
||||
}
|
||||
public static void changeFavicon() {
|
||||
//
|
||||
}
|
||||
public static void changeTitle() {
|
||||
//
|
||||
}
|
||||
public static void toggleTabTitleMod(boolean isEnabled) {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,16 +30,6 @@ public class LWJGLEntryPoint {
|
|||
System.err.println("Could not set system look and feel: " + e.toString());
|
||||
}
|
||||
|
||||
LaunchRenderDocDialog lr = new LaunchRenderDocDialog();
|
||||
lr.setLocationRelativeTo(null);
|
||||
lr.setVisible(true);
|
||||
|
||||
while (lr.isVisible()) {
|
||||
EagUtils.sleep(100l);
|
||||
}
|
||||
|
||||
lr.dispose();
|
||||
|
||||
getANGLEPlatformFromArgs(args);
|
||||
|
||||
EagRuntime.create();
|
||||
|
|
|
@ -30,6 +30,7 @@ import dev.resent.module.impl.misc.HUD;
|
|||
import dev.resent.module.impl.misc.ParticleMultiplier;
|
||||
import dev.resent.module.impl.misc.Scoreboard;
|
||||
import dev.resent.module.impl.misc.Sprint;
|
||||
import dev.resent.module.impl.misc.TabSettings;
|
||||
import dev.resent.module.impl.setting.Animations;
|
||||
import dev.resent.module.impl.setting.Hand;
|
||||
import dev.resent.module.impl.setting.MinimalViewBobbing;
|
||||
|
@ -81,6 +82,7 @@ public class ModManager {
|
|||
public static AdminSpawner adminSpawner = new AdminSpawner();
|
||||
public static ParticleMultiplier particleMultiplier = new ParticleMultiplier();
|
||||
public static Hand hand;
|
||||
private static TabSettings tabSettings;
|
||||
|
||||
//public static Crosshair crosshair = new Crosshair();
|
||||
|
||||
|
@ -125,6 +127,7 @@ public class ModManager {
|
|||
register(scoreboard);
|
||||
register(clearChat);
|
||||
register(animations);
|
||||
register(tabSettings = new TabSettings());
|
||||
}
|
||||
|
||||
public ArrayList<Mod> modsInCategory(Category c) {
|
||||
|
|
37
src/main/java/dev/resent/module/impl/misc/TabSettings.java
Normal file
37
src/main/java/dev/resent/module/impl/misc/TabSettings.java
Normal file
|
@ -0,0 +1,37 @@
|
|||
package dev.resent.module.impl.misc;
|
||||
|
||||
import dev.resent.annotation.Module;
|
||||
import dev.resent.module.base.Mod;
|
||||
import dev.resent.module.base.Mod.Category;
|
||||
import dev.resent.module.base.setting.CustomRectSettingDraw;
|
||||
import net.lax1dude.eaglercraft.v1_8.internal.PlatformRuntime;
|
||||
|
||||
@Module(name = "Tab Settings", category = Category.MISC, hasSetting = true, description = "Change the icon or title of the tab you're on!")
|
||||
public class TabSettings extends Mod {
|
||||
public CustomRectSettingDraw addTabTitle = new CustomRectSettingDraw("Set Tab Title...", "") {
|
||||
@Override
|
||||
public void onPress() {
|
||||
PlatformRuntime.changeTitle();
|
||||
}
|
||||
|
||||
};
|
||||
public CustomRectSettingDraw addTabIcon = new CustomRectSettingDraw("Set Tab Icon...", "") {
|
||||
@Override
|
||||
public void onPress() {
|
||||
PlatformRuntime.changeFavicon();
|
||||
}
|
||||
};
|
||||
|
||||
public void onEnable() {
|
||||
PlatformRuntime.toggleTabTitleMod(true);
|
||||
}
|
||||
|
||||
public void onDisable() {
|
||||
PlatformRuntime.toggleTabTitleMod(false);
|
||||
}
|
||||
|
||||
public TabSettings() {
|
||||
addSetting(addTabTitle, addTabIcon);
|
||||
}
|
||||
|
||||
}
|
|
@ -160,9 +160,25 @@ public class ClickGuiRewrite extends GuiScreen {
|
|||
|
||||
// Mod Categories
|
||||
RenderUtils.drawRoundedRect(x + 80, y+90, (x + width) - 30, y+120, 8, new Color(30, 30, 30).getRGB());
|
||||
// pls dont remove the thing that switches the colors, doesnt look good without the color switching
|
||||
if (selectedCategory == null) {
|
||||
RenderUtils.drawRoundedRect(x + 85, y+95, x + 130, y+115, 8, secondaryFontColor.getRGB());
|
||||
}
|
||||
else {
|
||||
RenderUtils.drawRoundedRect(x + 85, y+95, x + 130, y+115, 8, new Color(40, 40, 40).getRGB());
|
||||
}
|
||||
if (selectedCategory == Category.HUD) {
|
||||
RenderUtils.drawRoundedRect(x + 135, y+95, x + 180, y+115, 8, secondaryFontColor.getRGB());
|
||||
}
|
||||
else {
|
||||
RenderUtils.drawRoundedRect(x + 135, y+95, x + 180, y+115, 8, new Color(40, 40, 40).getRGB());
|
||||
}
|
||||
if (selectedCategory == Category.MISC) {
|
||||
RenderUtils.drawRoundedRect(x + 185, y+95, x + 230, y+115, 8, secondaryFontColor.getRGB());
|
||||
}
|
||||
else {
|
||||
RenderUtils.drawRoundedRect(x + 185, y+95, x + 230, y+115, 8, new Color(40, 40, 40).getRGB());
|
||||
}
|
||||
fr.drawString("All", (int) x+102, (int) y+102, -1);
|
||||
fr.drawString("HUD", (int) x+149, (int) y+102, -1);
|
||||
fr.drawString("Misc", (int) x+198, (int) y+102, -1);
|
||||
|
@ -173,7 +189,13 @@ public class ClickGuiRewrite extends GuiScreen {
|
|||
if (isMouseInside(mouseX, mouseY, (x+width)-70, y+90, (x+width)-40, y+120)) {
|
||||
RenderUtils.drawRoundedRect((x+width)-72, y+92, (x+width)-37, y+117, 2, secondaryFontColor.getRGB());
|
||||
}
|
||||
mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/button_"+currentView+".png"));
|
||||
if (currentView == "gridView") {
|
||||
mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/button_normalView.png"));
|
||||
}
|
||||
else {
|
||||
mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/button_gridView.png"));
|
||||
}
|
||||
|
||||
GlStateManager.color(1, 1, 1);
|
||||
Gui.drawModalRectWithCustomSizedTexture((x+width)-70, (int) y+90, 0, 0, 30, 30, 30, 30);
|
||||
|
||||
|
@ -413,6 +435,7 @@ public class ClickGuiRewrite extends GuiScreen {
|
|||
|
||||
@Override
|
||||
public void initGui() {
|
||||
this.mc.gameSettings.loadOptions();
|
||||
sr = new ScaledResolution(mc);
|
||||
x = sr.getScaledWidth() / 10;
|
||||
y = sr.getScaledHeight() / 10;
|
||||
|
@ -469,7 +492,7 @@ public class ClickGuiRewrite extends GuiScreen {
|
|||
|
||||
@Override
|
||||
public void onGuiClosed() {
|
||||
mc.gameSettings.saveOptions();
|
||||
this.mc.gameSettings.saveOptions();
|
||||
}
|
||||
|
||||
public void drawSetting() {
|
||||
|
|
|
@ -619,4 +619,13 @@ public class PlatformRuntime {
|
|||
|
||||
@JSBody(params = {}, script = "die2();")
|
||||
public static native void removeLoadScreen();
|
||||
|
||||
@JSBody(params = {}, script = "setFavicon()")
|
||||
public static native void changeFavicon();
|
||||
|
||||
@JSBody(params = {}, script = "setTitle()")
|
||||
public static native void changeTitle();
|
||||
|
||||
@JSBody(params = { "isEnabled" }, script = "toggleTabSettingsMod(isEnabled)")
|
||||
public static native void toggleTabTitleMod(boolean isEnabled);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user