diff options
author | TymanWasTaken <tyman@tyman.tech> | 2021-07-06 16:51:22 -0400 |
---|---|---|
committer | TymanWasTaken <tyman@tyman.tech> | 2021-07-06 16:51:22 -0400 |
commit | 91464c8f433e8bf323932ac956678971207b607e (patch) | |
tree | ed37325aefbe460261b69e19502293a6eb591030 /src/main/java/com/thatgravyboat/skyblockhud/overlay | |
parent | e4621d524268384e228ab1527ed421d2fcf1f498 (diff) | |
parent | 002dfdd18b908bda3e784dd303c15bbef79cdd2e (diff) | |
download | SkyblockHud-Death-Defied-91464c8f433e8bf323932ac956678971207b607e.tar.gz SkyblockHud-Death-Defied-91464c8f433e8bf323932ac956678971207b607e.tar.bz2 SkyblockHud-Death-Defied-91464c8f433e8bf323932ac956678971207b607e.zip |
Merge branch 'master' of github.com:ThatGravyBoat/SkyblockHud
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/overlay')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/overlay/RPGHud.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/overlay/RPGHud.java b/src/main/java/com/thatgravyboat/skyblockhud/overlay/RPGHud.java index 06cf94a..9356be6 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/overlay/RPGHud.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/overlay/RPGHud.java @@ -69,8 +69,10 @@ public class RPGHud extends Gui { boolean rightAligned = position.rightAligned(event.resolution, 120); drawTexturedModalRect(x,y,rightAligned ? 131 : 5,6,120,47); + float manaWidth = Math.min(57 * ((float)mana/(float)maxMana), 57); drawTexturedModalRect(rightAligned ? x + 16 : 47 + x,17 + y,rightAligned ? 199 : 0,64,(int)manaWidth,4); + float healthWidth = Math.min(70 * ((float)health/(float)maxHealth), 70); drawTexturedModalRect(rightAligned ? x + 3 : 47+ x,22+ y,rightAligned ? 186 : 0,68,(int)healthWidth,5); @@ -93,7 +95,7 @@ public class RPGHud extends Gui { drawCenteredString(mc.fontRendererObj, ""+mc.thePlayer.experienceLevel, (rightAligned ? 130 : 0) + (int)(15+ x/0.75f), (int)(45+ y/0.75f), 8453920); GlStateManager.scale(1/0.75f, 1/0.75f, 1); GlStateManager.scale(0.75f, 0.75f, 1); - font.drawString( ChatFormatting.RED + " \u2764 " + health +"/"+maxHealth,(rightAligned ? -40 : 0) + (int)(64+ x/0.75f), (int)(8+ y/0.75f), 0xffffff, false); + font.drawString( ChatFormatting.RED + " \u2764 " + health +"/"+maxHealth,(rightAligned ? -40 : 0) + (int)(64+ x/0.75f), (int)(8+ y/0.75f), 0xffffff, true); GlStateManager.scale(1/0.75f, 1/0.75f, 1); GlStateManager.color(255,255,255); GlStateManager.disableBlend(); |