fix: storage chest ui would be shifted to left and any mouse button would trigger the action

This commit is contained in:
minjaesong
2023-06-17 23:19:09 +09:00
parent 0ff71f39fe
commit 4cc52b5585
10 changed files with 112 additions and 60 deletions

View File

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