Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. for (String[] solved : AspectCalculation.solvedIssues) { //
  2.             // System.out.println(posX + "/" + posY);
  3.             int aspects = solved.length;
  4.             int overallSpaces = aspects + aspects - 1;
  5.             for (int y = 0; y < aspects; y++) {
  6.                 Aspect as = AspectCalculation.map.get(solved[y]);
  7.                 Color c = new Color(as.getColor());
  8.                 int red = c.getRed();
  9.                 int green = c.getGreen();
  10.                 int blue = c.getBlue();
  11.  
  12.                 GL11.glEnable(GL11.GL_BLEND);
  13.                 GL11.glDepthMask(false);
  14.                 GlStateManager.color(red, green, blue);
  15.                 mc.getTextureManager().bindTexture(as.getImage());
  16.                 drawModalRectWithCustomSizedTexture((posX - (aspects - y) * 32), posY, 0, 0, 16, 16, 16, 16);
  17.                 if (y != aspects - 1) {
  18.                     GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f);
  19.                     mc.getTextureManager().bindTexture(tchelperRight);
  20.                     drawModalRectWithCustomSizedTexture((posX - ((aspects - y) * 32) + 16), posY, 0, 0, 16, 16, 16, 16);
  21.                 }
  22.                 GL11.glDisable(GL11.GL_BLEND);
  23.                 GL11.glDepthMask(true);
  24.             }
  25.  
  26.             posY = posY + 20;
  27.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement