1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Added Hugo Locurcio in splash screen & in About dialog as a $10 patron

This commit is contained in:
OverloadedOrama 2020-10-07 17:01:36 +03:00
parent e5c371cf88
commit f15578fbe6
3 changed files with 22 additions and 70 deletions

View file

@ -44,6 +44,7 @@ func _ready() -> void:
donors.create_item(donors_root).set_text(0, " Mike King") donors.create_item(donors_root).set_text(0, " Mike King")
donors.create_item(donors_root).set_text(0, " Guillaume Gautier") donors.create_item(donors_root).set_text(0, " Guillaume Gautier")
donors.create_item(donors_root).set_text(0, " Isambard") donors.create_item(donors_root).set_text(0, " Isambard")
donors.create_item(donors_root).set_text(0, " Hugo Locurcio")
func _on_AboutDialog_about_to_show() -> void: func _on_AboutDialog_about_to_show() -> void:

View file

@ -15,9 +15,6 @@ func _on_SplashDialog_about_to_show() -> void:
var art_by_label : Button = Global.find_node_by_name(self, "ArtistName") var art_by_label : Button = Global.find_node_by_name(self, "ArtistName")
var show_on_startup_button : CheckBox = Global.find_node_by_name(self, "ShowOnStartup") var show_on_startup_button : CheckBox = Global.find_node_by_name(self, "ShowOnStartup")
var copyright_label : Label = Global.find_node_by_name(self, "CopyrightLabel") var copyright_label : Label = Global.find_node_by_name(self, "CopyrightLabel")
var become_platinum : Button = Global.find_node_by_name(self, "BecomePlatinum")
var become_gold : Button = Global.find_node_by_name(self, "BecomeGold")
var become_patron : Button = Global.find_node_by_name(self, "BecomePatron")
if Global.config_cache.has_section_key("preferences", "startup"): if Global.config_cache.has_section_key("preferences", "startup"):
show_on_startup_button.pressed = !Global.config_cache.get_value("preferences", "startup") show_on_startup_button.pressed = !Global.config_cache.get_value("preferences", "startup")
@ -29,9 +26,6 @@ func _on_SplashDialog_about_to_show() -> void:
art_by_label.text = tr("Art by: %s") % chosen_artwork art_by_label.text = tr("Art by: %s") % chosen_artwork
art_by_label.hint_tooltip = artworks[chosen_artwork][1] art_by_label.hint_tooltip = artworks[chosen_artwork][1]
become_platinum.text = "- " + tr("Become a Platinum Sponsor")
become_gold.text = "- " + tr("Become a Gold Sponsor")
become_patron.text = "- " + tr("Become a Patron")
if "zh" in TranslationServer.get_locale(): if "zh" in TranslationServer.get_locale():
show_on_startup_button.add_font_override("font", preload("res://assets/fonts/CJK/NotoSansCJKtc-Small.tres")) show_on_startup_button.add_font_override("font", preload("res://assets/fonts/CJK/NotoSansCJKtc-Small.tres"))
copyright_label.add_font_override("font", preload("res://assets/fonts/CJK/NotoSansCJKtc-Small.tres")) copyright_label.add_font_override("font", preload("res://assets/fonts/CJK/NotoSansCJKtc-Small.tres"))
@ -62,10 +56,6 @@ func _on_PatreonButton_pressed() -> void:
OS.shell_open("https://www.patreon.com/OramaInteractive") OS.shell_open("https://www.patreon.com/OramaInteractive")
func _on_TakeThisSpot_pressed() -> void:
OS.shell_open("https://www.patreon.com/OramaInteractive")
func _on_GithubButton_pressed() -> void: func _on_GithubButton_pressed() -> void:
OS.shell_open("https://github.com/Orama-Interactive/Pixelorama") OS.shell_open("https://github.com/Orama-Interactive/Pixelorama")

View file

@ -15,8 +15,8 @@ expand_margin_top = 20.0
[node name="SplashDialog" type="WindowDialog"] [node name="SplashDialog" type="WindowDialog"]
margin_right = 640.0 margin_right = 640.0
margin_bottom = 570.0 margin_bottom = 583.0
rect_min_size = Vector2( 640, 572 ) rect_min_size = Vector2( 640, 583 )
custom_styles/panel = SubResource( 1 ) custom_styles/panel = SubResource( 1 )
script = ExtResource( 1 ) script = ExtResource( 1 )
__meta__ = { __meta__ = {
@ -112,72 +112,36 @@ __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }
[node name="Sponsors" type="HBoxContainer" parent="Contents/ButtonsPatronsLogos/Info"] [node name="SpacerControl" type="Control" parent="Contents/ButtonsPatronsLogos/Info"]
margin_right = 294.0
margin_bottom = 104.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 5
[node name="PatronContainer" type="VBoxContainer" parent="Contents/ButtonsPatronsLogos/Info/Sponsors"]
margin_right = 294.0
margin_bottom = 104.0
size_flags_horizontal = 3
custom_constants/separation = 10
[node name="HBoxContainer" type="HBoxContainer" parent="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer"]
margin_right = 294.0
margin_bottom = 31.0
custom_constants/separation = 0
[node name="SpacerControl" type="Control" parent="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/HBoxContainer"]
margin_right = 6.0 margin_right = 6.0
margin_bottom = 31.0 margin_bottom = 104.0
rect_min_size = Vector2( 6, 0 ) rect_min_size = Vector2( 6, 0 )
__meta__ = { __meta__ = {
"_edit_use_anchors_": false "_edit_use_anchors_": false
} }
[node name="PatronsLabel" type="Label" parent="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/HBoxContainer"] [node name="PatronContainer" type="VBoxContainer" parent="Contents/ButtonsPatronsLogos/Info"]
margin_left = 6.0 margin_left = 10.0
margin_right = 236.0 margin_right = 294.0
margin_bottom = 31.0 margin_bottom = 104.0
size_flags_horizontal = 3
[node name="PatronsLabel" type="Label" parent="Contents/ButtonsPatronsLogos/Info/PatronContainer"]
margin_right = 284.0
margin_bottom = 14.0
rect_min_size = Vector2( 230, 0 ) rect_min_size = Vector2( 230, 0 )
size_flags_vertical = 8 size_flags_vertical = 8
text = "Want your name or your company to be shown on the splash screen?" text = "Patrons:"
autowrap = true autowrap = true
[node name="VBoxContainer" type="VBoxContainer" parent="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer"] [node name="PatronsLabel2" type="Label" parent="Contents/ButtonsPatronsLogos/Info/PatronContainer"]
margin_top = 41.0
margin_right = 294.0
margin_bottom = 97.0
custom_constants/separation = -2
[node name="BecomePlatinum" type="Button" parent="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/VBoxContainer"]
margin_right = 294.0
margin_bottom = 20.0
mouse_default_cursor_shape = 2
text = "- Become a Platinum Sponsor"
flat = true
align = 0
[node name="BecomeGold" type="Button" parent="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/VBoxContainer"]
margin_top = 18.0 margin_top = 18.0
margin_right = 294.0 margin_right = 284.0
margin_bottom = 38.0 margin_bottom = 32.0
mouse_default_cursor_shape = 2 rect_min_size = Vector2( 230, 0 )
text = "- Become a Gold Sponsor" size_flags_vertical = 8
flat = true text = "Hugo Locurcio"
align = 0 autowrap = true
[node name="BecomePatron" type="Button" parent="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/VBoxContainer"]
margin_top = 36.0
margin_right = 294.0
margin_bottom = 56.0
mouse_default_cursor_shape = 2
text = "- Become a Patron"
flat = true
align = 0
[node name="VBoxContainer" type="VBoxContainer" parent="Contents/ButtonsPatronsLogos/Info"] [node name="VBoxContainer" type="VBoxContainer" parent="Contents/ButtonsPatronsLogos/Info"]
margin_left = 298.0 margin_left = 298.0
@ -261,9 +225,6 @@ __meta__ = {
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/NewBtn" to="." method="_on_NewBtn_pressed"] [connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/NewBtn" to="." method="_on_NewBtn_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/OpenBtn" to="." method="_on_OpenBtn__pressed"] [connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/OpenBtn" to="." method="_on_OpenBtn__pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/OpenLastBtn" to="." method="_on_OpenLastBtn_pressed"] [connection signal="pressed" from="Contents/ButtonsPatronsLogos/Buttons/OpenLastBtn" to="." method="_on_OpenLastBtn_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/VBoxContainer/BecomePlatinum" to="." method="_on_TakeThisSpot_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/VBoxContainer/BecomeGold" to="." method="_on_TakeThisSpot_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/Sponsors/PatronContainer/VBoxContainer/BecomePatron" to="." method="_on_TakeThisSpot_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links/GithubButton" to="." method="_on_GithubButton_pressed"] [connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links/GithubButton" to="." method="_on_GithubButton_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links/DiscordButton" to="." method="_on_DiscordButton_pressed"] [connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links/DiscordButton" to="." method="_on_DiscordButton_pressed"]
[connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links/PatreonButton" to="." method="_on_PatreonButton_pressed"] [connection signal="pressed" from="Contents/ButtonsPatronsLogos/Info/VBoxContainer/Branding/Links/PatreonButton" to="." method="_on_PatreonButton_pressed"]