Navigation

    CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Solved drawScaledCustomSizeModalRect isn't working

    ScriptAPI
    gui script
    2
    4
    24
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • test test2
      test test2 last edited by

      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

      Stfwissue 1 Reply Last reply Reply Quote 0
      • Stfwissue
        Stfwissue @test test2 last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • test test2
          test test2 last edited by

          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();
                  }
              });
          });
          
          1 Reply Last reply Reply Quote 0
          • test test2
            test test2 last edited by

            Sorry, i'm stupid. x and y does not exists

            1 Reply Last reply Reply Quote 0
            • Topic has been marked as solved  test test2 test test2 
            • First post
              Last post