Shadow should be drawn before actual text
This commit is contained in:
parent
7d46ec4b13
commit
c25d8729c2
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user