1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 09:39:48 +00:00
Pixelorama/Scripts/Dialogs/SplashDialog.gd
OverloadedOrama 78609a86fb Put default value for "show on startup" in config_cache file
Also put the checkbutton's string on the translation files
2020-01-01 20:04:13 +02:00

17 lines
664 B
GDScript

extends WindowDialog
func _on_SplashDialog_about_to_show() -> void:
var current_version : String = ProjectSettings.get_setting("application/config/Version")
window_title = "Pixelorama" + " " + current_version
$Contents/DevelopedBy.text = "Pixelorama" + " " + current_version + " - " + tr("MADEBY_LABEL")
$Contents/ArtCredits.text = tr("Art by") + ": Erevos"
func _on_ArtCredits_pressed() -> void:
OS.shell_open("https://www.instagram.com/erevos_art")
func _on_ShowOnStartup_toggled(pressed : bool) -> void:
if pressed:
Global.config_cache.set_value("preferences", "startup", false)
else:
Global.config_cache.set_value("preferences", "startup", true)