mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
tooltip to always update
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user