aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-15 11:31:48 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-15 11:31:48 +0200
commit263f80c3ecb6896de74668b4833a2b5c154bf463 (patch)
treed6840cbdb8d2e850b8ca84ffa681978d3bb3a828 /src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
parent7da9e1ee2927a693adedbc3386f3f5d81bbc4b0d (diff)
downloadskyhanni-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.kt5
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()
}