Revamped the Splash Screen (#223)

This commit is contained in:
Darshan Phaldesai 2020-04-30 17:14:24 +05:30 committed by GitHub
parent 4b2930fe67
commit 4ef2c482d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 450 additions and 201 deletions

View file

@ -1,11 +1,11 @@
extends WindowDialog
onready var changes_label : Label = $Contents/HBoxContainer/ChangesLabel
onready var art_by_label : Label = $Contents/PatronsArtNews/ArtContainer/ArtCredits
onready var show_on_startup_button : CheckBox = $Contents/BottomHboxContainer/ShowOnStartup
onready var developed_by_label : Label = $Contents/BottomHboxContainer/VBoxContainer/DevelopedBy
onready var platinum_placeholder_label : Label = $Contents/Sponsors/PlatinumContainer/PlaceholderLabel
onready var gold_placeholder_label : Label = $Contents/Sponsors/GoldContainer/PlaceholderLabel
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"
func _on_SplashDialog_about_to_show() -> void:
if Global.config_cache.has_section_key("preferences", "startup"):
@ -13,7 +13,6 @@ func _on_SplashDialog_about_to_show() -> void:
var current_version : String = ProjectSettings.get_setting("application/config/Version")
window_title = "Pixelorama" + " " + current_version
changes_label.text = current_version + " " + tr("Changes")
developed_by_label.text = "Pixelorama" + " " + current_version + " - " + tr("Developed by Orama Interactive")
art_by_label.text = tr("Art by") + ": Erevos"
if "zh" in TranslationServer.get_locale():
@ -41,3 +40,26 @@ func _on_PatronButton_pressed() -> void:
func _on_TakeThisSpot_pressed() -> void:
OS.shell_open("https://www.patreon.com/OramaInteractive")
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