wider inventory cells

This commit is contained in:
minjaesong
2023-05-31 21:07:57 +09:00
parent a0f597865e
commit 8c5c986cbf

View File

@@ -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