Shadow should be drawn before actual text

This commit is contained in:
DBotThePony 2022-09-04 16:07:39 +07:00
parent 7d46ec4b13
commit c25d8729c2
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -29,11 +29,11 @@ open class Label @JvmOverloads constructor(
var color = RGBAColor.SLATE_GRAY
override fun innerRender(stack: PoseStack, mouseX: Float, mouseY: Float, partialTick: Float) {
font.draw(stack, text, 0f, 0f, color.toInt())
if (shadow) {
font.draw(stack, text, shadowX, shadowY, shadowColor.toInt())
}
font.draw(stack, text, 0f, 0f, color.toInt())
}
override fun sizeToContents() {