2019-12-31 16:04:00 +00:00
|
|
|
extends WindowDialog
|
|
|
|
|
2020-04-30 11:44:24 +00:00
|
|
|
onready var changes_label : Label = $"Contents/HBoxContainer/Buttons_Changelog/VBoxContainer/Changlog/ChangesLabel"
|
|
|
|
onready var art_by_label : Label = $"Contents/HBoxContainer/Logo_ArtWork/CenterContainer/ArtContainer/ArtCredits"
|
|
|
|
onready var show_on_startup_button : CheckBox = $"Contents/MarginContainer/Info/VBoxContainer/HBoxContainer/ShowOnStartup"
|
|
|
|
onready var developed_by_label : Label = $"Contents/MarginContainer/Info/VBoxContainer/Branding/VBoxContainer/DevelopedBy"
|
|
|
|
onready var platinum_placeholder_label : Label = $"Contents/MarginContainer/Info/Sponsors/PlatinumContainer/PlaceholderLabel"
|
|
|
|
onready var gold_placeholder_label : Label = $"Contents/MarginContainer/Info/Sponsors/GoldContainer/PlaceholderLabel"
|
2020-01-05 14:03:04 +00:00
|
|
|
|
2019-12-31 17:04:54 +00:00
|
|
|
func _on_SplashDialog_about_to_show() -> void:
|
2020-01-05 22:15:16 +00:00
|
|
|
if Global.config_cache.has_section_key("preferences", "startup"):
|
|
|
|
show_on_startup_button.pressed = !Global.config_cache.get_value("preferences", "startup")
|
2019-12-31 17:04:54 +00:00
|
|
|
var current_version : String = ProjectSettings.get_setting("application/config/Version")
|
|
|
|
window_title = "Pixelorama" + " " + current_version
|
2020-01-05 14:09:50 +00:00
|
|
|
changes_label.text = current_version + " " + tr("Changes")
|
2019-12-31 17:04:54 +00:00
|
|
|
|
2020-01-05 14:03:04 +00:00
|
|
|
art_by_label.text = tr("Art by") + ": Erevos"
|
|
|
|
if "zh" in TranslationServer.get_locale():
|
|
|
|
show_on_startup_button.add_font_override("font", preload("res://Assets/Fonts/CJK/NotoSansCJKtc-Small.tres"))
|
|
|
|
developed_by_label.add_font_override("font", preload("res://Assets/Fonts/CJK/NotoSansCJKtc-Small.tres"))
|
2020-04-01 17:38:40 +00:00
|
|
|
platinum_placeholder_label.add_font_override("font", preload("res://Assets/Fonts/CJK/NotoSansCJKtc-Bold.tres"))
|
|
|
|
gold_placeholder_label.add_font_override("font", preload("res://Assets/Fonts/CJK/NotoSansCJKtc-Bold.tres"))
|
2020-01-05 14:03:04 +00:00
|
|
|
else:
|
|
|
|
show_on_startup_button.add_font_override("font", preload("res://Assets/Fonts/Roboto-Small.tres"))
|
|
|
|
developed_by_label.add_font_override("font", preload("res://Assets/Fonts/Roboto-Small.tres"))
|
2020-04-01 17:38:40 +00:00
|
|
|
platinum_placeholder_label.add_font_override("font", preload("res://Assets/Fonts/Roboto-Bold.tres"))
|
|
|
|
gold_placeholder_label.add_font_override("font", preload("res://Assets/Fonts/Roboto-Bold.tres"))
|
2019-12-31 18:10:10 +00:00
|
|
|
|
2019-12-31 16:04:00 +00:00
|
|
|
func _on_ArtCredits_pressed() -> void:
|
2020-04-01 17:38:40 +00:00
|
|
|
OS.shell_open("https://www.instagram.com/erevoid")
|
2020-01-01 15:33:32 +00:00
|
|
|
|
2020-01-01 18:04:13 +00:00
|
|
|
func _on_ShowOnStartup_toggled(pressed : bool) -> void:
|
2020-01-01 15:33:32 +00:00
|
|
|
if pressed:
|
|
|
|
Global.config_cache.set_value("preferences", "startup", false)
|
|
|
|
else:
|
2020-01-05 14:03:04 +00:00
|
|
|
Global.config_cache.set_value("preferences", "startup", true)
|
|
|
|
|
|
|
|
func _on_PatronButton_pressed() -> void:
|
|
|
|
OS.shell_open("https://www.patreon.com/OramaInteractive")
|
|
|
|
|
|
|
|
func _on_TakeThisSpot_pressed() -> void:
|
|
|
|
OS.shell_open("https://www.patreon.com/OramaInteractive")
|
2020-04-30 11:44:24 +00:00
|
|
|
|
|
|
|
func _on_GithubButton_pressed():
|
|
|
|
OS.shell_open("https://github.com/Orama-Interactive/Pixelorama")
|
|
|
|
|
|
|
|
func _on_DiscordButton_pressed():
|
|
|
|
OS.shell_open("https://discord.gg/GTMtr8s")
|
|
|
|
|
|
|
|
|
|
|
|
func _on_NewBtn_pressed():
|
|
|
|
Global.control.file_menu_id_pressed(0)
|
|
|
|
visible = false
|
|
|
|
|
|
|
|
func _on_OpenBtn__pressed():
|
|
|
|
Global.control.file_menu_id_pressed(1)
|
|
|
|
visible = false
|
|
|
|
|
|
|
|
func _on_OpenLastBtn_pressed():
|
|
|
|
Global.control.file_menu_id_pressed(2)
|
|
|
|
visible = false
|
|
|
|
|
|
|
|
func _on_ImportBtn_pressed():
|
|
|
|
Global.control.file_menu_id_pressed(5)
|
|
|
|
visible = false
|