From e5d5feeb387889b826762798bfbbf5c158108f0f Mon Sep 17 00:00:00 2001 From: minjaesong Date: Thu, 13 Jul 2023 13:49:50 +0900 Subject: [PATCH] fix: crafting UI is not centred --- src/net/torvald/terrarum/modulebasegame/ui/UICrafting.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/torvald/terrarum/modulebasegame/ui/UICrafting.kt b/src/net/torvald/terrarum/modulebasegame/ui/UICrafting.kt index 848a7ee01..b9212e77a 100644 --- a/src/net/torvald/terrarum/modulebasegame/ui/UICrafting.kt +++ b/src/net/torvald/terrarum/modulebasegame/ui/UICrafting.kt @@ -63,7 +63,7 @@ class UICrafting(val full: UIInventoryFull) : UICanvas(), HasInventory { private var halfSlotOffset = (UIItemInventoryElemSimple.height + listGap) / 2 - private val thisOffsetX = UIInventoryFull.INVENTORY_CELLS_OFFSET_X() - halfSlotOffset + private val thisOffsetX = UIInventoryFull.INVENTORY_CELLS_OFFSET_X() + UIItemInventoryElemSimple.height - halfSlotOffset private val thisOffsetX2 = thisOffsetX + (listGap + UIItemInventoryElemWide.height) * 7 private val thisXend = thisOffsetX + (listGap + UIItemInventoryElemWide.height) * 13 - listGap private val thisOffsetY = UIInventoryFull.INVENTORY_CELLS_OFFSET_Y()