mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
fix: config change of chat overlay would not be reflected to GUI variables
This commit is contained in:
@@ -140,10 +140,10 @@ class UIInventoryFull(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
internal var xEnd = (Toolkit.drawWidth + internalWidth).div(2).toFloat()
|
internal val xEnd: Float
|
||||||
private set
|
get() = (Toolkit.drawWidth + internalWidth).div(2).toFloat()
|
||||||
internal var yEnd = -YPOS_CORRECTION + (App.scr.height + internalHeight).div(2).toFloat()
|
internal val yEnd: Float
|
||||||
private set
|
get() = -YPOS_CORRECTION + (App.scr.height + internalHeight).div(2).toFloat()
|
||||||
}
|
}
|
||||||
|
|
||||||
//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
|
//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
|
||||||
@@ -442,9 +442,6 @@ class UIInventoryFull(
|
|||||||
|
|
||||||
offsetX = ((width - internalWidth) / 2).toFloat()
|
offsetX = ((width - internalWidth) / 2).toFloat()
|
||||||
offsetY = ((App.scr.height - internalHeight) / 2).toFloat()
|
offsetY = ((App.scr.height - internalHeight) / 2).toFloat()
|
||||||
|
|
||||||
xEnd = (width + internalWidth).div(2).toFloat()
|
|
||||||
yEnd = -YPOS_CORRECTION + (scr.height + internalHeight).div(2).toFloat()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user