open_link signal

This commit is contained in:
Nordup 2025-08-19 02:27:19 +07:00
parent c868162ed8
commit 1b80249b2b
10 changed files with 29 additions and 8 deletions

View file

@ -1,6 +1,7 @@
extends RoundButton
@export var url: String
@export var app_events: AppEvents
func _ready() -> void:
@ -10,4 +11,4 @@ func _ready() -> void:
func open_help_url() -> void:
OS.shell_open(url)
app_events.open_link_emit(url)

View file

@ -1,9 +1,11 @@
extends RichTextLabel
@export var app_events: AppEvents
func _ready() -> void:
meta_clicked.connect(on_meta_clicked)
func on_meta_clicked(meta) -> void:
OS.shell_open(str(meta))
app_events.open_link_emit(str(meta))