From 07680592d2ccb4a764952831b65619639c7888d1 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Fri, 22 Mar 2024 23:14:57 +0900 Subject: [PATCH] fix: text pos for sign preview wouldnt match the text on the fixture --- .../torvald/terrarum/modulebasegame/ui/UIEngravingTextSign.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/torvald/terrarum/modulebasegame/ui/UIEngravingTextSign.kt b/src/net/torvald/terrarum/modulebasegame/ui/UIEngravingTextSign.kt index b08268141..331658960 100644 --- a/src/net/torvald/terrarum/modulebasegame/ui/UIEngravingTextSign.kt +++ b/src/net/torvald/terrarum/modulebasegame/ui/UIEngravingTextSign.kt @@ -103,7 +103,7 @@ class UIEngravingTextSign : UICanvas( fboBatch.inUse { batch -> blendNormalStraightAlpha(batch) val tw = App.fontGame.getWidth(text) - App.fontGame.draw(batch, text, 0 + (it.width - tw) / 2, 3) + App.fontGame.draw(batch, text, 1 + (it.width - tw) / 2, 2) blendAlphaMask(batch) @@ -125,7 +125,7 @@ class UIEngravingTextSign : UICanvas( } // text - batch.draw(fboText.colorBufferTexture, xStart + panelZoom, yStart, fboText.width * panelZoom, fboText.height * panelZoom) + batch.draw(fboText.colorBufferTexture, xStart, yStart, fboText.width * panelZoom, fboText.height * panelZoom) } private fun setIngredient(num: Int) {