wire debugger tooltip fix/electronic components now need floor OR wall to spawn

This commit is contained in:
minjaesong
2024-03-15 22:44:46 +09:00
parent cb756cbf3a
commit d22f421bc4
12 changed files with 46 additions and 27 deletions

View File

@@ -132,7 +132,7 @@ class UIItemInventoryElemSimple(
// set tooltip accordingly
if (tooltipShowing[hash] != true && mouseUp) {
if (tooltipShowing[tooltipHash] != true && mouseUp) {
// printdbg(this, "calling INGAME.setTooltipMessage by $hash")
val grey = App.fontGame.toColorCode(11, 11, 11)
@@ -145,7 +145,7 @@ class UIItemInventoryElemSimple(
INGAME.setTooltipMessage(finalStr)
tooltipShowing[hash] = true
tooltipShowing[tooltipHash] = true
// printdbg(this, tooltipShowing.entries)
}
}
@@ -160,7 +160,7 @@ class UIItemInventoryElemSimple(
}
if (item == null || !mouseUp) {
tooltipShowing[hash] = false
tooltipShowing[tooltipHash] = false
}
// see IFs above?
@@ -169,10 +169,10 @@ class UIItemInventoryElemSimple(
}
override fun dispose() {
tooltipShowing.remove(hash)
tooltipShowing.remove(tooltipHash)
}
override fun hide() {
tooltipShowing.remove(hash)
tooltipShowing.remove(tooltipHash)
}
}