mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
fix: storage chest ui would be shifted to left and any mouse button would trigger the action
This commit is contained in:
@@ -93,6 +93,10 @@ object Toolkit : Disposable {
|
||||
get() = App.scr.width - if (App.getConfigBoolean("fx_streamerslayout")) App.scr.chatWidth else 0
|
||||
val drawWidthf: Float
|
||||
get() = drawWidth.toFloat()
|
||||
val hdrawWidth: Int
|
||||
get() = drawWidth / 2
|
||||
val hdrawWidthf: Float
|
||||
get() = hdrawWidth.toFloat()
|
||||
|
||||
fun drawCentered(batch: SpriteBatch, image: Texture, screenPosY: Int, ui: UICanvas? = null) {
|
||||
val imageW = image.width
|
||||
|
||||
Reference in New Issue
Block a user