mirror of
https://github.com/Athena-Operations/Athena-Client.git
synced 2024-11-10 04:01:32 +01:00
new capes + improved slider
This commit is contained in:
parent
521007aed0
commit
0a42ede460
2160
logs/latest.log
2160
logs/latest.log
File diff suppressed because it is too large
Load Diff
@ -4,6 +4,10 @@ import net.minecraft.client.Minecraft;
|
|||||||
import net.minecraft.client.renderer.GlStateManager;
|
import net.minecraft.client.renderer.GlStateManager;
|
||||||
import net.minecraft.client.settings.GameSettings;
|
import net.minecraft.client.settings.GameSettings;
|
||||||
import net.minecraft.util.MathHelper;
|
import net.minecraft.util.MathHelper;
|
||||||
|
import rip.athena.client.Athena;
|
||||||
|
import rip.athena.client.utils.render.RoundedUtils;
|
||||||
|
|
||||||
|
import java.awt.*;
|
||||||
|
|
||||||
public class GuiOptionSlider extends GuiButton
|
public class GuiOptionSlider extends GuiButton
|
||||||
{
|
{
|
||||||
@ -58,8 +62,13 @@ public class GuiOptionSlider extends GuiButton
|
|||||||
|
|
||||||
mc.getTextureManager().bindTexture(buttonTextures);
|
mc.getTextureManager().bindTexture(buttonTextures);
|
||||||
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
this.drawTexturedModalRect(this.xPosition + (int)(this.sliderValue * (float)(this.width - 8)), this.yPosition, 0, 66, 4, 20);
|
// this.drawTexturedModalRect(this.xPosition + (int)(this.sliderValue * (float)(this.width - 8)), this.yPosition, 0, 66, 4, 20);
|
||||||
this.drawTexturedModalRect(this.xPosition + (int)(this.sliderValue * (float)(this.width - 8)) + 4, this.yPosition, 196, 66, 4, 20);
|
// this.drawTexturedModalRect(this.xPosition + (int)(this.sliderValue * (float)(this.width - 8)) + 4, this.yPosition, 196, 66, 4, 20);
|
||||||
|
if(!(sliderValue <= 0)) {
|
||||||
|
RoundedUtils.drawRound(this.xPosition, this.yPosition + 2, this.sliderValue * 150, height - 4, 4, Athena.INSTANCE.getThemeManager().getTheme().getFirstColor());
|
||||||
|
RoundedUtils.drawRound(this.xPosition + this.sliderValue * 150 - 7, this.yPosition + 2, 7, height - 4, 2, Color.white
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ public class CapeManager {
|
|||||||
capes.add(new Cape("Minecon 2016", "Minecon-2016", "Minecon-2016-display"));
|
capes.add(new Cape("Minecon 2016", "Minecon-2016", "Minecon-2016-display"));
|
||||||
capes.add(new Cape("ziue's head", "ziue-head", "ziue-head-display"));
|
capes.add(new Cape("ziue's head", "ziue-head", "ziue-head-display"));
|
||||||
capes.add(new Cape("Cat", "cat", "cat-display"));
|
capes.add(new Cape("Cat", "cat", "cat-display"));
|
||||||
|
capes.add(new Cape("sleepy cats", "zam-cape", "zam"));
|
||||||
capes.add(new Cape("None", "None", "None"));
|
capes.add(new Cape("None", "None", "None"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 433 KiB |
Binary file not shown.
After Width: | Height: | Size: 117 KiB |
Loading…
Reference in New Issue
Block a user