FAbrowser/scripts/PrivacyNotice.gd
2024-07-22 11:06:25 -04:00

23 lines
512 B
GDScript

extends PopupPanel
func _on_CheckBox1_toggled(button_pressed):
$VB/HBox/Accept.disabled = not (button_pressed and $VB/CheckBox2.pressed)
func _on_CheckBox2_toggled(button_pressed):
$VB/HBox/Accept.disabled = not (button_pressed and $VB/CheckBox1.pressed)
func _on_NoticeText_meta_clicked(meta):
OS.shell_open(str(meta))
func _on_Accept_pressed():
hide()
Settings.settings.PrivacyNoticeConfirmed = true
#Global.settings.save(Global.SETTINGSLOCATION)
func _on_Decline_pressed():
get_tree().quit()