drawScaledCustomSizeModalRect isn't working
Solved
ScriptAPI
-
mc.getTextureManager().bindTexture(target.getLocationSkin()); GL11.glColor4f(1, 1, 1, 1); Gui.drawScaledCustomSizeModalRect(x + 6, y + 6, 8, 8, 8, 8, 35, 35, 64, 64);
After that, the stackoverflow error appears
-
This post is deleted!
-
var target; var GL11 = Java.type("org.lwjgl.opengl.GL11"); var Gui = Java.type("net.minecraft.client.gui.Gui"); var Color = Java.type("java.awt.Color"); var KillAura = Java.type("net.ccbluex.liquidbounce.features.module.modules.combat.KillAura"); var LiquidBounce = Java.type("net.ccbluex.liquidbounce.LiquidBounce"); var EntityPlayer = Java.type("net.minecraft.entity.player.EntityPlayer"); script.registerModule({ name: "secret", category: "Render", description: "secret" }, function (module) { module.on("render2D", function(e) { if ((LiquidBounce.moduleManager.getModule(KillAura.class)).target != null && (LiquidBounce.moduleManager.getModule(KillAura.class)).target instanceof EntityPlayer) { target = (LiquidBounce.moduleManager.getModule(KillAura.class)).target; GL11.glPushMatrix(); mc.getTextureManager().bindTexture(target.getLocationSkin()); GL11.glColor4f(1, 1, 1, 1); Gui.drawScaledCustomSizeModalRect(x + 6, y + 6, 8, 8, 8, 8, 35, 35, 64, 64); GL11.glPopMatrix(); } }); });
-
Sorry, i'm stupid. x and y does not exists
-