|Topic was automatically imported from the old Question2Answer platform.
Hey, Im am trying to do a very simple thing: when button is pressed a pop-up window must appear a progress bar should be filled over time and then the pop-up window must be closed.
The pop-up window is called from the main node
The code attached to the pop-up window is following:
onready var timer = $Timer
onready var progressBar = $SurveilanceProgressBar
if progressBar.value < 10:
so the question is what do I write in the else block to close the window and reset everything, so i would be able to open the pop-up window again and timer/bar would start from 0
Or is it better to do this from the parent node?
P.S. For some reason code formatting is all screwed up here, sorry for that