Godot Version
v. 4.5.1
Question
Making a mockup webpage game and I can’t see what’s wrong here. The code won’t change the LineEdit’s textbox when trying to do so using the function below:
func nazwa_linku():
if $"../../ObecnoscONas".visible == true:
$"../../Control/ColorRect/LinkText".text = "display this text"
else:
pass
However, it works perfectly well when the button is pressed, so the line of code itself is fine.
func \_on_o_nas_button_button_up() -> void:
$"..".visible = false
$"../../ObecnoscONas".visible = true
previous_page.append($"..")
previous_page.append($"../../ObecnoscONas")
$"../../Control/ColorRect/LinkText".text = "display this text"
There is no error showing up, it just seems to not care about the nazwa_linku function.
Additionaly, the above code for the button action is also the only way to obtain a $“../../ObecnoscONas”.visible = true state. So I was hoping on the change of its state, another function should behave accordingly.
What am I missing?..