fixed a bug where closing the inventory ui while tooltip is showing will make it persist when the ui is opened again

This commit is contained in:
minjaesong
2022-03-12 17:52:48 +09:00
parent 54f1f590c4
commit 40a7c6876a
11 changed files with 87 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ class UIItemSpinner(
private val fbo = FrameBuffer(Pixmap.Format.RGBA8888, width - 2*buttonW - 6, height - 4, false)
var value = initialValue.coerceIn(min, max)
private var fboUpdateLatch = true
var fboUpdateLatch = true
private var mouseOnButton = 0 // 0: nothing, 1: left, 2: right