tooltip to always update

This commit is contained in:
minjaesong
2024-01-30 13:54:34 +09:00
parent 111833f5d3
commit 6fc87d9ae9

View File

@@ -22,6 +22,7 @@ class UITooltip : UICanvas() {
init {
handler.allowESCtoClose = false
handler.alwaysUpdate = true
}
override var openCloseTime: Second = OPENCLOSE_GENERIC * 0.72f
@@ -104,7 +105,7 @@ class UITooltip : UICanvas() {
override fun updateUI(delta: Float) {
setPosition(Terrarum.mouseScreenX, Terrarum.mouseScreenY)
if (tooltipShowing.values.all { !it }) {
if (isVisible && tooltipShowing.values.all { !it }) {
INGAME.setTooltipMessage(null)
}
}