mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 07:04:43 -04:00
Big splash screen update & new translatable strings
This commit is contained in:
parent
f57ea4d64f
commit
b1d84042b1
24 changed files with 549 additions and 58 deletions
|
@ -67,7 +67,7 @@ func _on_Language_pressed(button : Button) -> void:
|
|||
TranslationServer.set_locale(Global.loaded_locales[index])
|
||||
|
||||
if "zh" in TranslationServer.get_locale():
|
||||
Global.control.theme.default_font = preload("res://Assets/Fonts/NotoSansCJKtc-Regular.tres")
|
||||
Global.control.theme.default_font = preload("res://Assets/Fonts/CJK/NotoSansCJKtc-Regular.tres")
|
||||
else:
|
||||
Global.control.theme.default_font = preload("res://Assets/Fonts/Roboto-Regular.tres")
|
||||
|
||||
|
|
|
@ -1,11 +1,21 @@
|
|||
extends WindowDialog
|
||||
|
||||
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
|
||||
|
||||
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")
|
||||
developed_by_label.text = "Pixelorama" + " " + current_version + " - " + tr("MADEBY_LABEL")
|
||||
|
||||
$Contents/ArtCredits.text = tr("Art by") + ": Erevos"
|
||||
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"))
|
||||
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"))
|
||||
|
||||
func _on_ArtCredits_pressed() -> void:
|
||||
OS.shell_open("https://www.instagram.com/erevos_art")
|
||||
|
@ -14,4 +24,10 @@ 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)
|
||||
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")
|
||||
|
|
|
@ -94,7 +94,7 @@ func _ready() -> void:
|
|||
TranslationServer.set_locale(OS.get_locale())
|
||||
|
||||
if "zh" in TranslationServer.get_locale():
|
||||
theme.default_font = preload("res://Assets/Fonts/NotoSansCJKtc-Regular.tres")
|
||||
theme.default_font = preload("res://Assets/Fonts/CJK/NotoSansCJKtc-Regular.tres")
|
||||
else:
|
||||
theme.default_font = preload("res://Assets/Fonts/Roboto-Regular.tres")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue