Files
godot-demo-projects/gui/rich_text_bbcode/rich_text_bbcode.gd
2023-01-17 21:39:40 +01:00

13 lines
288 B
GDScript

extends Control
func _on_RichTextLabel_meta_clicked(meta):
var err = OS.shell_open(meta)
if err == OK:
print("Opened link '%s' successfully!" % meta)
else:
print("Failed opening the link '%s'!" % meta)
func _on_pause_toggled(button_pressed):
get_tree().paused = button_pressed