mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
make the eye meter green
This commit is contained in:
parent
a937952321
commit
3ba7397005
1 changed files with 4 additions and 4 deletions
|
@ -151,7 +151,7 @@ public class ClientEvents {
|
||||||
mc.getTextureManager().bindTexture(OVERLAYS);
|
mc.getTextureManager().bindTexture(OVERLAYS);
|
||||||
|
|
||||||
if (!mc.gameSettings.showDebugInfo) {
|
if (!mc.gameSettings.showDebugInfo) {
|
||||||
GlStateManager.color(0.8F, 0.25F, 0.25F);
|
GlStateManager.color(83 / 255F, 160 / 255F, 8 / 255F);
|
||||||
float totalPercentage = AuraChunk.getAuraInArea(mc.world, mc.player.getPosition(), 15) / (AuraChunk.DEFAULT_AURA * 2F);
|
float totalPercentage = AuraChunk.getAuraInArea(mc.world, mc.player.getPosition(), 15) / (AuraChunk.DEFAULT_AURA * 2F);
|
||||||
int tHeight = MathHelper.ceil(MathHelper.clamp(totalPercentage, 0F, 1F) * 50);
|
int tHeight = MathHelper.ceil(MathHelper.clamp(totalPercentage, 0F, 1F) * 50);
|
||||||
if (tHeight < 50)
|
if (tHeight < 50)
|
||||||
|
@ -160,14 +160,14 @@ public class ClientEvents {
|
||||||
Gui.drawModalRectWithCustomSizedTexture(3, 10 + 50 - tHeight, 0, 12 + 50 - tHeight, 6, tHeight, 256, 256);
|
Gui.drawModalRectWithCustomSizedTexture(3, 10 + 50 - tHeight, 0, 12 + 50 - tHeight, 6, tHeight, 256, 256);
|
||||||
|
|
||||||
if (totalPercentage > 1F)
|
if (totalPercentage > 1F)
|
||||||
mc.fontRenderer.drawString("+", 10F, 9.5F, 0xBB3333, true);
|
mc.fontRenderer.drawString("+", 10F, 9.5F, 0x53a008, true);
|
||||||
if (totalPercentage < 0F)
|
if (totalPercentage < 0F)
|
||||||
mc.fontRenderer.drawString("-", 10F, 53.5F, 0xBB3333, true);
|
mc.fontRenderer.drawString("-", 10F, 53.5F, 0x53a008, true);
|
||||||
|
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
float scale = 0.75F;
|
float scale = 0.75F;
|
||||||
GlStateManager.scale(scale, scale, scale);
|
GlStateManager.scale(scale, scale, scale);
|
||||||
mc.fontRenderer.drawString(I18n.format("info." + NaturesAura.MOD_ID + ".aura_in_area"), 3 / scale, 3 / scale, 0xBB3333, true);
|
mc.fontRenderer.drawString(I18n.format("info." + NaturesAura.MOD_ID + ".aura_in_area"), 3 / scale, 3 / scale, 0x53a008, true);
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue