mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 02:24:05 +09:00
tooltip to always update
This commit is contained in:
@@ -22,6 +22,7 @@ class UITooltip : UICanvas() {
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
handler.allowESCtoClose = false
|
handler.allowESCtoClose = false
|
||||||
|
handler.alwaysUpdate = true
|
||||||
}
|
}
|
||||||
|
|
||||||
override var openCloseTime: Second = OPENCLOSE_GENERIC * 0.72f
|
override var openCloseTime: Second = OPENCLOSE_GENERIC * 0.72f
|
||||||
@@ -104,7 +105,7 @@ class UITooltip : UICanvas() {
|
|||||||
override fun updateUI(delta: Float) {
|
override fun updateUI(delta: Float) {
|
||||||
setPosition(Terrarum.mouseScreenX, Terrarum.mouseScreenY)
|
setPosition(Terrarum.mouseScreenX, Terrarum.mouseScreenY)
|
||||||
|
|
||||||
if (tooltipShowing.values.all { !it }) {
|
if (isVisible && tooltipShowing.values.all { !it }) {
|
||||||
INGAME.setTooltipMessage(null)
|
INGAME.setTooltipMessage(null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user