my Label get's the digit-entries from another Label and replaces them with
var array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]
func _on_aLabel_labelNotEmpty(): # triggers on each entry
text = get_node(a_label).text.replace(0, "*")
text = get_node(a_label).text.replace(1, "*")
text = get_node(a_label).text.replace(2, "*")
This works for the last number,
2 in this case, but not for the others before.
Putting some yield time in between the lines shows that actually on each entry the whole sequence is being worked through. However, after changing the number to
* it changes back to the digit with the next one in line...
How can the
* be kept once replaced?
Or is there a more direct way to have digits replaced with
* generally in the first place? (I bet!)