Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int xPosition = script.getX() + 60;
- int yPosition = script.getY() + 60;
- int size = 0;
- double x = 0;
- double y = 0;
- int xPosStart = xPosition - 32;
- int yPosStart = yPosition - 32;
- int xPosEnd = xPosStart + 32;
- int yPosEnd = yPosStart + 32;
- Tessellator tessellator = Tessellator.instance;
- mc.getTextureManager().bindTexture(defaultScriptTexture);
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glDisable(GL11.GL_DEPTH_TEST);
- GL11.glDepthMask(false);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glDisable(GL11.GL_ALPHA_TEST);
- tessellator.startDrawingQuads();
- tessellator.addVertexWithUV(-size + x + xPosStart, (double)yPosEnd + y + size / 2, -90.0D, 0.0D, 1.0D);
- tessellator.addVertexWithUV((double)xPosEnd + size + x, (double)yPosEnd + y + size / 2, -90.0D, 1.0D, 1.0D);
- tessellator.addVertexWithUV((double)xPosEnd + size + x / 2, -size + y + yPosStart + size / 2, -90.0D, 1.0D, 0.0D);
- tessellator.addVertexWithUV(-size + x + xPosStart / 2, -size + y + yPosStart + size / 2, -90.0D, 0.0D, 0.0D);
- tessellator.draw();
- GL11.glDepthMask(true);
- GL11.glEnable(GL11.GL_DEPTH_TEST);
- GL11.glEnable(GL11.GL_ALPHA_TEST);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- GL11.glPopMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement