Fix position of text on buttons
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
79de0eedaa
commit
16bcccdded
@ -12,7 +12,7 @@ object FontUtil {
|
|||||||
stack.scale(scaleFactor, scaleFactor, Matrix3x2f())
|
stack.scale(scaleFactor, scaleFactor, Matrix3x2f())
|
||||||
guiGraphics.drawString(
|
guiGraphics.drawString(
|
||||||
Minecraft.getInstance().font, text,
|
Minecraft.getInstance().font, text,
|
||||||
(x / scaleFactor).toInt(), (y / scaleFactor).toInt(),
|
x.toInt(), y.toInt(),
|
||||||
ARGB.opaque(color.hexValue), false
|
ARGB.opaque(color.hexValue), false
|
||||||
)
|
)
|
||||||
val factorToOriginal = 1F / scaleFactor
|
val factorToOriginal = 1F / scaleFactor
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user