Closed ioxu closed 1 year ago
Adding a method to add arbitrary metadata to a layer through a dictionary, which gets updated into the Layer's tooltip string.
func add_meta( key : String, value )->void:
self.meta[key] = value
update_tooltip()
func update_tooltip() -> void:
var tt = ""
for k in self.meta.keys():
tt += "%s : %s\n"%[k, str(self.meta[k])]
self.hint_tooltip = tt
showing