Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.promolitor.tchelper;
- import net.minecraftforge.fml.relauncher.SideOnly;
- import de.promolitor.tchelper.helper.AspectCalculation;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.Gui;
- import net.minecraft.client.gui.ScaledResolution;
- import net.minecraft.client.renderer.GlStateManager;
- import net.minecraft.util.ResourceLocation;
- import net.minecraftforge.client.event.RenderGameOverlayEvent;
- import net.minecraftforge.fml.relauncher.Side;
- import net.minecraftforge.fml.relauncher.SideOnly;
- @SideOnly(Side.CLIENT)
- public class GuiMain extends Gui {
- private ResourceLocation tchelperBackground = new ResourceLocation(TCHelperMain.MODID, "TCHelperBackground.png");
- private ResourceLocation tchelperRight = new ResourceLocation(TCHelperMain.MODID, "right2.png");
- /**
- * @param mc
- * @param event
- */
- public GuiMain(Minecraft mc, RenderGameOverlayEvent event) {
- ScaledResolution scaled = new ScaledResolution(mc);
- int width = scaled.getScaledWidth();
- int height = scaled.getScaledHeight();
- int posX = width;
- int posY = height;
- int i = 5;
- System.out.println(AspectCalculation.map.get(AspectCalculation.solvedIssues.get(0)[0]).getImage());
- System.out.println(tchelperRight);
- mc.getTextureManager().bindTexture(tchelperBackground);
- drawTexturedModalRect((posX / 2) - 64, (posY / 2) - 64, 0, 0, 64, 64);
- mc.getTextureManager().bindTexture(tchelperRight);
- drawTexturedModalRect(posX / 2, posY / 2, 0, 0, 32, 32);
- /*
- * for (String[] solved : AspectCalculation.solvedIssues) { //
- * System.out.println(posX + "/" + posY); int aspects = solved.length;
- * int overallSpaces = aspects + aspects - 1; for (int y = 0; y <
- * aspects; y++) {
- * mc.getTextureManager().bindTexture(AspectCalculation.map.get(solved[y
- * ]).getImage()); mc.ingameGUI.drawTexturedModalRect(posX -
- * ((overallSpaces - y) * 32 + (overallSpaces - y) * 1), posY, 0, 0, 32,
- * 32); if (y != aspects - 1) {
- * mc.getTextureManager().bindTexture(tchelperRight);
- * mc.ingameGUI.drawTexturedModalRect( posX - ((overallSpaces - y - 1) *
- * 32 + (overallSpaces - y - 1) * 2), posY, 0, 0, 32, 32); }
- *
- * } posY = posY + 50; }
- */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement