Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Decompiled by Procyon v0.5.30
- //
- package me.aristhena.client.module.modules.render.hud;
- import java.util.Iterator;
- import org.lwjgl.opengl.GL11;
- import net.minecraft.client.Minecraft;
- import net.minecraft.client.gui.GuiChat;
- import net.minecraft.client.gui.ScaledResolution;
- import me.aristhena.utils.ClientUtils;
- import me.aristhena.utils.minecraft.FontRenderer;
- import me.salamander.client.module.modules.render.ClientColor;
- import me.salamander.utils.RenderUtils;
- import net.minecraft.client.renderer.GlStateManager;
- import net.minecraft.util.MathHelper;
- import java.util.Date;
- import java.awt.Color;
- import java.text.SimpleDateFormat;
- import me.aristhena.client.Client;
- import me.aristhena.client.module.Module;
- import me.aristhena.client.module.ModuleManager;
- import me.aristhena.client.module.modules.render.Hud;
- import me.aristhena.event.events.Render2DEvent;
- public class IndigoTheme extends Theme
- {
- private float[] hue;
- private ClientColor cc;
- int ypos;
- private static Minecraft mc;
- public IndigoTheme(final String name, final boolean value, final Module module) {
- super(name, value, module);
- this.hue = new float[] { 0.0f };
- }
- @Override
- public boolean onRender(final Render2DEvent event) {
- if (super.onRender(event)) {
- final SimpleDateFormat formatDate = new SimpleDateFormat("hh:mm a");
- final String timeString = formatDate.format(new Date());
- ClientUtils.clientFont().drawStringWithShadow("Alien", 2.0, 3.0, new Color((int)ClientColor.red, (int)ClientColor.green, (int)ClientColor.blue).getRGB());
- GL11.glPopMatrix();
- GL11.glPushMatrix();
- ClientUtils.clientFont().drawStringWithShadow(timeString, 2.0, 12.5, 1358954495);
- GL11.glPopMatrix();
- GL11.glPushMatrix();
- int y = 2;
- this.ypos = 2;
- final int i = 0;
- final float[] huee = { this.hue[0] };
- for (final Module mod : ModuleManager.getModulesForRender()) {
- if (mod.isShown() && mod.isEnabled()) {
- final int mwidth = ScaledResolution.getScaledWidth();
- final int mheight = 10 * i + 1;
- final int color = Color.getHSBColor(huee[0] / 255.0f, 1.0f, 1.0f).getRGB();
- final String nig = (mod.suffix.length() > 0) ? ("§7 " + mod.suffix) : "";
- if (mod.isShown()) {
- if (Hud.german) {
- RenderUtils.drawRect(ScaledResolution.getScaledWidth() - 1.5f, (float)(this.ypos - 2), (float)ScaledResolution.getScaledWidth(), (float)(this.ypos + 8), mod.getColor());
- if (Hud.lowercase) {
- RenderUtils.drawRect((float)(ScaledResolution.getScaledWidth() - ClientUtils.clientFont().getStringWidth(String.valueOf(mod.displayName.toLowerCase()) + nig.toLowerCase()) - 4), (float)(this.ypos - 2), (float)ScaledResolution.getScaledWidth(), (float)(this.ypos + 8), Integer.MIN_VALUE);
- mod.drawDisplayName(event.getWidth() - ClientUtils.clientFont().getStringWidth(mod.getDisplayName().toLowerCase()) - 2.3f, y - 0.6f, mod.getColor());
- }
- else {
- RenderUtils.drawRect((float)(ScaledResolution.getScaledWidth() - ClientUtils.clientFont().getStringWidth(String.valueOf(mod.displayName) + nig) - 4), (float)(this.ypos - 2), (float)ScaledResolution.getScaledWidth(), (float)(this.ypos + 8), Integer.MIN_VALUE);
- mod.drawDisplayName(event.getWidth() - ClientUtils.clientFont().getStringWidth(mod.getDisplayName()) - 2.3f, y - 0.6f, mod.getColor());
- }
- }
- else if (Hud.lowercase) {
- mod.drawDisplayName(event.getWidth() - ClientUtils.clientFont().getStringWidth(mod.getDisplayName().toLowerCase()) - 2.3f, y - 0.6f, mod.getColor());
- }
- else {
- mod.drawDisplayName(event.getWidth() - ClientUtils.clientFont().getStringWidth(mod.getDisplayName()) - 2.3f, y - 0.6f, mod.getColor());
- }
- }
- y += 10;
- this.ypos += 10;
- final float[] array = huee;
- final int n = 0;
- final float[] array3 = array;
- final int n4 = 0;
- array3[n4] += 9.0f;
- if (huee[0] > 255.0f) {
- final float[] array2 = huee;
- final int n2 = 0;
- final float[] array4 = array2;
- final int n5 = 0;
- array4[n5] -= 255.0f;
- }
- final int tmp270_269 = 0;
- final float[] hue2;
- final float[] tmp270_270 = hue2 = this.hue;
- final int n6 = 0;
- hue2[n6] += (float)0.05;
- if (this.hue[0] <= 255.0f) {
- continue;
- }
- final float[] hue = this.hue;
- final int n3 = 0;
- final float[] array5 = hue;
- final int n7 = 0;
- array5[n7] -= 255.0f;
- }
- }
- }
- return super.onRender(event);
- }
- private void drawFPS() {
- final ScaledResolution scaledResolution = new ScaledResolution(ClientUtils.mc(), ClientUtils.mc().displayWidth, ClientUtils.mc().displayHeight);
- final int x = 4;
- final int n;
- int y = n = ScaledResolution.getScaledHeight() - 2;
- ClientUtils.mc();
- y = n - (Minecraft.fontRendererObj.FONT_HEIGHT + 1);
- ClientUtils.mc();
- if (Minecraft.currentScreen instanceof GuiChat) {
- y -= 13;
- }
- final FontRenderer clientFont = ClientUtils.clientFont();
- final StringBuilder sb = new StringBuilder("FPS§f: ");
- ClientUtils.mc();
- GL11.glPopMatrix();
- GL11.glPushMatrix();
- clientFont.drawStringWithShadow(sb.append(Minecraft.debugFPS).toString(), 4.0, 77.0, -26411758);
- GL11.glPopMatrix();
- GL11.glPushMatrix();
- }
- private void drawCoordinates() {
- ClientUtils.clientFont().drawStringWithShadow("x: §f" + MathHelper.floor_double(ClientUtils.player().posX), 2.0, 98.0, -26411758);
- ClientUtils.clientFont().drawStringWithShadow("y: §f" + MathHelper.floor_double(ClientUtils.player().posY), 2.0, 108.0, -26411758);
- ClientUtils.clientFont().drawStringWithShadow("z: §f" + MathHelper.floor_double(ClientUtils.player().posZ), 2.0, 118.0, -26411758);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement