No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

instructionsUI.gd 431B

1234567891011121314151617181920212223242526272829303132333435363738
  1. extends Control
  2. onready var timer := $Timer
  3. var jump_key = "dialogic_next"
  4. var waiting = false
  5. func _input(event):
  6. if event.is_action_pressed(jump_key) and waiting:
  7. waiting = false
  8. func _ready():
  9. hide()
  10. func stop():
  11. waiting = false
  12. timer.stop()
  13. hide()
  14. func start():
  15. waiting = true
  16. timer.start()
  17. show()
  18. func _on_Timer_timeout() -> void:
  19. if waiting:
  20. if visible:
  21. hide()
  22. else:
  23. show()
  24. else:
  25. stop()