diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-15 11:31:48 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-15 11:31:48 +0200 |
commit | 263f80c3ecb6896de74668b4833a2b5c154bf463 (patch) | |
tree | d6840cbdb8d2e850b8ca84ffa681978d3bb3a828 /src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | |
parent | 7da9e1ee2927a693adedbc3386f3f5d81bbc4b0d (diff) | |
download | skyhanni-263f80c3ecb6896de74668b4833a2b5c154bf463.tar.gz skyhanni-263f80c3ecb6896de74668b4833a2b5c154bf463.tar.bz2 skyhanni-263f80c3ecb6896de74668b4833a2b5c154bf463.zip |
added coloring to damage indicator except dungeon
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index 765a075a8..430c45777 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -327,7 +327,8 @@ object RenderUtils { color: Color, partialTicks: Float, shadow: Boolean = false, - scale: Float = 1f + scale: Float = 1f, + yOff: Float = 0f, ) { var mc = Minecraft.getMinecraft() val player = mc.thePlayer @@ -351,7 +352,7 @@ object RenderUtils { GlStateManager.disableLighting() GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0) GlStateManager.enableTexture2D() - mc.fontRendererObj.drawString(text, (-width).toFloat(), 0f, color.rgb, shadow) + mc.fontRendererObj.drawString(text, (-width).toFloat(), yOff, color.rgb, shadow) GlStateManager.disableBlend() GlStateManager.popMatrix() } |