class_name QRPopup extends BasePopup ## Shows a QR code with the address of the search page on the MusicServer, so players ## can search for soundtracks on their phones. @onready var qr_panel: Panel = $QRPanel @onready var qr_code_rect: QRCodeRect = %QRCodeRect @onready var url_label: Label = %URLLabel func _ready() -> void: _show_search_url() func open() -> void: super() # Another server may have been picked in the settings since last time _show_search_url() func _show_search_url() -> void: var url: String = Settings.default_path + "/search" if qr_code_rect.data != url: qr_code_rect.data = url GameLog.debug("QR code generated for: ", url) url_label.text = url