mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 14:34:04 +09:00
fix: old tooltip managing code and revived the fading transition
This commit is contained in:
@@ -416,10 +416,12 @@ open class IngameInstance(val batch: FlippingSpriteBatch, val isMultiplayer: Boo
|
||||
open fun setTooltipMessage(message: String?) {
|
||||
if (message == null) {
|
||||
uiTooltip.setAsClose()
|
||||
// printdbg(this, "Tooltip close!")
|
||||
}
|
||||
else {
|
||||
if (uiTooltip.isClosed || uiTooltip.isClosing) {
|
||||
uiTooltip.setAsOpen()
|
||||
// printdbg(this, "Tooltip open!")
|
||||
}
|
||||
uiTooltip.message = message
|
||||
|
||||
|
||||
Reference in New Issue
Block a user