This commit is contained in:
2026-04-05 08:02:34 -07:00
parent 13519580c7
commit 7b5ce2e4a5
77 changed files with 2739 additions and 30 deletions

View File

@@ -101,13 +101,14 @@ func get_setpiece_by_label(lab: String) -> SetPiece:
return null
func _update_label() -> void:
print(hovered_setpieces)
if hovered_setpieces.is_empty():
$label.hide()
return
hovered_setpieces.sort_custom(func(a, b): return b.priority > a.priority)
hovered_setpieces.sort_custom(func(a, b): return b.priority < a.priority)
var top_entry = hovered_setpieces[0]
print(hovered_setpieces, top_entry, top_entry.label)
$label.show()
$label.text = top_entry.label