From 8c5c986cbf4aef4691c77e6d1d5f1175f1120aff Mon Sep 17 00:00:00 2001 From: minjaesong Date: Wed, 31 May 2023 21:07:57 +0900 Subject: [PATCH] wider inventory cells --- src/net/torvald/terrarum/modulebasegame/ui/UIInventoryFull.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/torvald/terrarum/modulebasegame/ui/UIInventoryFull.kt b/src/net/torvald/terrarum/modulebasegame/ui/UIInventoryFull.kt index bcff5f906..27e76fd2f 100644 --- a/src/net/torvald/terrarum/modulebasegame/ui/UIInventoryFull.kt +++ b/src/net/torvald/terrarum/modulebasegame/ui/UIInventoryFull.kt @@ -39,7 +39,7 @@ class UIInventoryFull( const val YPOS_CORRECTION = 16 // another hard-coding. X_X const val REQUIRED_MARGIN: Int = 138 // hard-coded value. Don't know the details. Range: [91-146]. I chose MAX-8 because cell gap is 8 - const val CELLS_HOR = 10 + const val CELLS_HOR = 12 fun getCellCountVertically(cellHeight: Int, gapHeight: Int = UIItemInventoryItemGrid.listGap): Int { return (App.scr.height - REQUIRED_MARGIN - 134 + gapHeight) / // 134 is another magic number