mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-07 10:59:49 +00:00
Put default value for "show on startup" in config_cache file
Also put the checkbutton's string on the translation files
This commit is contained in:
parent
9e9dbcb920
commit
78609a86fb
|
@ -1672,7 +1672,6 @@ current_path = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρι
|
||||||
[node name="ScaleImage" parent="." instance=ExtResource( 63 )]
|
[node name="ScaleImage" parent="." instance=ExtResource( 63 )]
|
||||||
|
|
||||||
[node name="PreferencesDialog" parent="." instance=ExtResource( 64 )]
|
[node name="PreferencesDialog" parent="." instance=ExtResource( 64 )]
|
||||||
visible = false
|
|
||||||
|
|
||||||
[node name="OutlineDialog" parent="." instance=ExtResource( 65 )]
|
[node name="OutlineDialog" parent="." instance=ExtResource( 65 )]
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ mouse_default_cursor_shape = 2
|
||||||
text = "Art by Erevoid"
|
text = "Art by Erevoid"
|
||||||
flat = true
|
flat = true
|
||||||
|
|
||||||
[node name="CheckBox" type="CheckBox" parent="Contents"]
|
[node name="ShowOnStartup" type="CheckBox" parent="Contents"]
|
||||||
margin_top = 330.0
|
margin_top = 330.0
|
||||||
margin_right = 400.0
|
margin_right = 400.0
|
||||||
margin_bottom = 354.0
|
margin_bottom = 354.0
|
||||||
|
@ -76,4 +76,4 @@ text = "Copyright 2019-2020 Orama Interactive"
|
||||||
align = 1
|
align = 1
|
||||||
[connection signal="about_to_show" from="." to="." method="_on_SplashDialog_about_to_show"]
|
[connection signal="about_to_show" from="." to="." method="_on_SplashDialog_about_to_show"]
|
||||||
[connection signal="pressed" from="Contents/ArtCredits" to="." method="_on_ArtCredits_pressed"]
|
[connection signal="pressed" from="Contents/ArtCredits" to="." method="_on_ArtCredits_pressed"]
|
||||||
[connection signal="toggled" from="Contents/CheckBox" to="." method="_on_CheckBox_toggled"]
|
[connection signal="toggled" from="Contents/ShowOnStartup" to="." method="_on_ShowOnStartup_toggled"]
|
||||||
|
|
|
@ -10,8 +10,8 @@ func _on_SplashDialog_about_to_show() -> void:
|
||||||
func _on_ArtCredits_pressed() -> void:
|
func _on_ArtCredits_pressed() -> void:
|
||||||
OS.shell_open("https://www.instagram.com/erevos_art")
|
OS.shell_open("https://www.instagram.com/erevos_art")
|
||||||
|
|
||||||
func _on_CheckBox_toggled(pressed) -> void:
|
func _on_ShowOnStartup_toggled(pressed : bool) -> void:
|
||||||
if pressed:
|
if pressed:
|
||||||
Global.config_cache.set_value("preferences", "startup", false)
|
Global.config_cache.set_value("preferences", "startup", false)
|
||||||
else:
|
else:
|
||||||
Global.config_cache.set_value("preferences", "startup", true)
|
Global.config_cache.set_value("preferences", "startup", true)
|
|
@ -157,9 +157,11 @@ func _ready() -> void:
|
||||||
Import.import_brushes("Brushes")
|
Import.import_brushes("Brushes")
|
||||||
|
|
||||||
$SplashDialog.popup_centered() # Splash screen
|
$SplashDialog.popup_centered() # Splash screen
|
||||||
|
if not Global.config_cache.has_section_key("preferences", "startup"):
|
||||||
|
Global.config_cache.set_value("preferences", "startup", true)
|
||||||
if not Global.config_cache.get_value("preferences", "startup"):
|
if not Global.config_cache.get_value("preferences", "startup"):
|
||||||
$SplashDialog.hide()
|
$SplashDialog.hide()
|
||||||
|
|
||||||
OS.set_window_title("(" + tr("untitled") + ") - Pixelorama")
|
OS.set_window_title("(" + tr("untitled") + ") - Pixelorama")
|
||||||
|
|
||||||
func _input(event : InputEvent) -> void:
|
func _input(event : InputEvent) -> void:
|
||||||
|
|
|
@ -605,4 +605,7 @@ msgid "Create a new empty palette?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Edit Palette"
|
msgid "Edit Palette"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Don't show on the next startup"
|
||||||
msgstr ""
|
msgstr ""
|
|
@ -688,6 +688,9 @@ msgstr "Erstelle eine neue leere Palette"
|
||||||
msgid "Edit Palette"
|
msgid "Edit Palette"
|
||||||
msgstr "Bearbeite Palette"
|
msgstr "Bearbeite Palette"
|
||||||
|
|
||||||
|
msgid "Don't show on the next startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Language:"
|
#~ msgid "Language:"
|
||||||
#~ msgstr "Sprache:"
|
#~ msgstr "Sprache:"
|
||||||
|
|
||||||
|
|
|
@ -670,6 +670,9 @@ msgstr "Δημιουργία νέας κενής παλέττας;"
|
||||||
msgid "Edit Palette"
|
msgid "Edit Palette"
|
||||||
msgstr "Επεξεργασία Παλέττας"
|
msgstr "Επεξεργασία Παλέττας"
|
||||||
|
|
||||||
|
msgid "Don't show on the next startup"
|
||||||
|
msgstr "Να μην εμφανιστεί στην επόμενη εκκίνηση"
|
||||||
|
|
||||||
#~ msgid "Language:"
|
#~ msgid "Language:"
|
||||||
#~ msgstr "Γλώσσα:"
|
#~ msgstr "Γλώσσα:"
|
||||||
|
|
||||||
|
|
|
@ -662,6 +662,9 @@ msgstr "Create a new empty palette?"
|
||||||
msgid "Edit Palette"
|
msgid "Edit Palette"
|
||||||
msgstr "Edit Palette"
|
msgstr "Edit Palette"
|
||||||
|
|
||||||
|
msgid "Don't show on the next startup"
|
||||||
|
msgstr "Don't show on the next startup"
|
||||||
|
|
||||||
#~ msgid "Language:"
|
#~ msgid "Language:"
|
||||||
#~ msgstr "Language:"
|
#~ msgstr "Language:"
|
||||||
|
|
||||||
|
|
|
@ -690,6 +690,9 @@ msgstr ""
|
||||||
msgid "Edit Palette"
|
msgid "Edit Palette"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Don't show on the next startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Language:"
|
#~ msgid "Language:"
|
||||||
#~ msgstr "Langue :"
|
#~ msgstr "Langue :"
|
||||||
|
|
||||||
|
|
|
@ -679,6 +679,9 @@ msgstr ""
|
||||||
msgid "Edit Palette"
|
msgid "Edit Palette"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Don't show on the next startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Language:"
|
#~ msgid "Language:"
|
||||||
#~ msgstr "Język:"
|
#~ msgstr "Język:"
|
||||||
|
|
||||||
|
|
|
@ -670,3 +670,6 @@ msgstr "Criar uma nova paleta vazia?"
|
||||||
|
|
||||||
msgid "Edit Palette"
|
msgid "Edit Palette"
|
||||||
msgstr "Editar Paleta"
|
msgstr "Editar Paleta"
|
||||||
|
|
||||||
|
msgid "Don't show on the next startup"
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -678,6 +678,9 @@ msgstr ""
|
||||||
msgid "Edit Palette"
|
msgid "Edit Palette"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Don't show on the next startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Language:"
|
#~ msgid "Language:"
|
||||||
#~ msgstr "Язык:"
|
#~ msgstr "Язык:"
|
||||||
|
|
||||||
|
|
|
@ -678,6 +678,9 @@ msgstr ""
|
||||||
msgid "Edit Palette"
|
msgid "Edit Palette"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Don't show on the next startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Language:"
|
#~ msgid "Language:"
|
||||||
#~ msgstr "語言:"
|
#~ msgstr "語言:"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue