Hexeption / Youtube-Hacked-Client-1.8

MIT License
21 stars 8 forks source link

Unmodifiable Int #35

Open TooVeryIcey opened 8 years ago

TooVeryIcey commented 8 years ago

I Am Using The Hud Fix...But Now My Code That Changes The "Active Mods" Texts' Position Won't Run Since I Had To Change The XScale Variable To Static...My Code Is:

public class GUIIngameHook {

public static void StartHud(){
    Hud();
}
public int scale = Wrapper.mc.gameSettings.guiScale;
public static int XScale = 865;{
if(scale == 0 ){
    int XVaule = 405;
}else if(scale == 1 ){
    int XValue = 1835;
}else if(scale == 2){
    int XValue = 865;
}else if(scale == 3){
    int XValue = 565;
}
}

public static void Hud(){
    renderClientName();
    renderCoords();
    renderFPS();
    renderMods();
    renderArrayList();
    renderModLine();
}

public static void renderClientName() {
    Wrapper.fd.drawString("Frost Wave [MCV: 1.10, V: 0.05A]", 5, 5,  0x0011FF);
    FrostWave.Frostwave.getGuiManager().renderPinned();
}

public static void renderFPS() {
    Wrapper.fd.drawStringWithShadow("[FPS:" + Wrapper.mc.getDebugFPS() + "]", 5, 15,   0x7AA7FF);
    FrostWave.Frostwave.getGuiManager().renderPinned();
}

public static void renderCoords() {
    Wrapper.fd.drawStringWithShadow("[Coords: X: " + (int) Wrapper.mc.thePlayer.posX + " Y: " + (int) Wrapper.mc.thePlayer.posY + " Z: " + (int) Wrapper.mc.thePlayer.posZ + "]" , 5, 25, 0x10F0DA);
    FrostWave.Frostwave.getGuiManager().renderPinned();
}
public static void renderMods() {
    Wrapper.fd.drawString("[Active Mods]" , XScale, 5, 0x5A47FF);
    FrostWave.Frostwave.getGuiManager().renderPinned();
}
public static void renderModLine() {
    Wrapper.fd.drawString("-------------" , XScale, 11, 0x5A47FF);
    FrostWave.Frostwave.getGuiManager().renderPinned();
}

public static void renderArrayList() {
    int yCount = 17;
    for(Module m : FrostWave.manager.activeModules){
        m.onRender();

        if(m.getState() && !m.isCategory(Category.GUI)){
            Wrapper.fd.drawString(m.getName(), XScale, yCount, 0x5A47FF);
            yCount = yCount + 10;
        }
    }
}

}