rich_text_bbcode.gd 288 B

123456789101112
  1. extends Control
  2. func _on_RichTextLabel_meta_clicked(meta):
  3. var err = OS.shell_open(meta)
  4. if err == OK:
  5. print("Opened link '%s' successfully!" % meta)
  6. else:
  7. print("Failed opening the link '%s'!" % meta)
  8. func _on_pause_toggled(button_pressed):
  9. get_tree().paused = button_pressed