mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-07 10:59:49 +00:00
[AboutDialog] Remove "Developers", rename "Contributors" into "Authors" and put Erevoid's and mine names there
There's no need for our two names to be on their own, they should be together with the rest of the people who contributed to the project.
This commit is contained in:
parent
782cc62c6e
commit
ae9449500a
|
@ -1093,16 +1093,16 @@ msgstr ""
|
||||||
msgid "Belarusian"
|
msgid "Belarusian"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Development Team"
|
#. Found in the About dialog.
|
||||||
msgstr ""
|
msgid "Lead Developer"
|
||||||
|
|
||||||
msgid "Lead Programmer"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. Found in the About dialog.
|
||||||
msgid "UI Designer"
|
msgid "UI Designer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "GitHub Contributors"
|
#. Found in the About dialog. Refers to the people who have contributed code to the project.
|
||||||
|
msgid "Authors"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Art by: %s"
|
msgid "Art by: %s"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
extends Window
|
extends Window
|
||||||
|
|
||||||
const CONTRIBUTORS: PackedStringArray = [
|
const AUTHORS: PackedStringArray = [
|
||||||
"20kdc",
|
"20kdc",
|
||||||
"Aaron Franke (aaronfranke)",
|
"Aaron Franke (aaronfranke)",
|
||||||
"AbhinavKDev (abhinav3967)",
|
"AbhinavKDev (abhinav3967)",
|
||||||
|
@ -198,14 +198,12 @@ const DONORS: PackedStringArray = [
|
||||||
|
|
||||||
@onready var credits := $AboutUI/Credits as HSplitContainer
|
@onready var credits := $AboutUI/Credits as HSplitContainer
|
||||||
@onready var groups := $AboutUI/Credits/Groups as Tree
|
@onready var groups := $AboutUI/Credits/Groups as Tree
|
||||||
@onready var developer_container := $AboutUI/Credits/Developers as VBoxContainer
|
@onready var authors_container := $AboutUI/Credits/Authors as VBoxContainer
|
||||||
@onready var contributors_container := $AboutUI/Credits/Contributors as VBoxContainer
|
|
||||||
@onready var donors_container := $AboutUI/Credits/Donors as VBoxContainer
|
@onready var donors_container := $AboutUI/Credits/Donors as VBoxContainer
|
||||||
@onready var translators_container := $AboutUI/Credits/Translators as VBoxContainer
|
@onready var translators_container := $AboutUI/Credits/Translators as VBoxContainer
|
||||||
@onready var licenses_container := $AboutUI/Credits/Licenses as VBoxContainer
|
@onready var licenses_container := $AboutUI/Credits/Licenses as VBoxContainer
|
||||||
|
|
||||||
@onready var developers := $AboutUI/Credits/Developers/DeveloperTree as Tree
|
@onready var authors := $AboutUI/Credits/Authors/AuthorTree as Tree
|
||||||
@onready var contributors := $AboutUI/Credits/Contributors/ContributorTree as Tree
|
|
||||||
@onready var donors := $AboutUI/Credits/Donors/DonorTree as Tree
|
@onready var donors := $AboutUI/Credits/Donors/DonorTree as Tree
|
||||||
@onready var translators := $AboutUI/Credits/Translators/TranslatorTree as Tree
|
@onready var translators := $AboutUI/Credits/Translators/TranslatorTree as Tree
|
||||||
@onready var license_tabs := $AboutUI/Credits/Licenses/LicenseTabs as TabBar
|
@onready var license_tabs := $AboutUI/Credits/Licenses/LicenseTabs as TabBar
|
||||||
|
@ -214,7 +212,6 @@ const DONORS: PackedStringArray = [
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
create_donors()
|
create_donors()
|
||||||
create_contributors()
|
|
||||||
license_tabs.add_tab("Pixelorama")
|
license_tabs.add_tab("Pixelorama")
|
||||||
license_tabs.add_tab("Godot")
|
license_tabs.add_tab("Godot")
|
||||||
license_tabs.add_tab("FreeType")
|
license_tabs.add_tab("FreeType")
|
||||||
|
@ -234,18 +231,15 @@ func _on_AboutDialog_about_to_show() -> void:
|
||||||
title = tr("About Pixelorama") + " " + Global.current_version
|
title = tr("About Pixelorama") + " " + Global.current_version
|
||||||
|
|
||||||
var groups_root := groups.create_item()
|
var groups_root := groups.create_item()
|
||||||
var developers_button := groups.create_item(groups_root)
|
#var developers_button := groups.create_item(groups_root)
|
||||||
var contributors_button := groups.create_item(groups_root)
|
var authors_button := groups.create_item(groups_root)
|
||||||
var donors_button := groups.create_item(groups_root)
|
var donors_button := groups.create_item(groups_root)
|
||||||
var translators_button := groups.create_item(groups_root)
|
var translators_button := groups.create_item(groups_root)
|
||||||
var licenses_button := groups.create_item(groups_root)
|
var licenses_button := groups.create_item(groups_root)
|
||||||
|
authors_button.set_text(0, " " + tr("Authors"))
|
||||||
developers_button.set_text(0, " " + tr("Developers"))
|
|
||||||
# We use metadata to avoid being affected by translations
|
# We use metadata to avoid being affected by translations
|
||||||
developers_button.set_metadata(0, "Developers")
|
authors_button.set_metadata(0, "Authors")
|
||||||
developers_button.select(0)
|
authors_button.select(0)
|
||||||
contributors_button.set_text(0, " " + tr("Contributors"))
|
|
||||||
contributors_button.set_metadata(0, "Contributors")
|
|
||||||
donors_button.set_text(0, " " + tr("Donors"))
|
donors_button.set_text(0, " " + tr("Donors"))
|
||||||
donors_button.set_metadata(0, "Donors")
|
donors_button.set_metadata(0, "Donors")
|
||||||
translators_button.set_text(0, " " + tr("Translators"))
|
translators_button.set_text(0, " " + tr("Translators"))
|
||||||
|
@ -253,7 +247,7 @@ func _on_AboutDialog_about_to_show() -> void:
|
||||||
licenses_button.set_text(0, " " + tr("Licenses"))
|
licenses_button.set_text(0, " " + tr("Licenses"))
|
||||||
licenses_button.set_metadata(0, "Licenses")
|
licenses_button.set_metadata(0, "Licenses")
|
||||||
|
|
||||||
create_developers()
|
create_authors()
|
||||||
create_translators()
|
create_translators()
|
||||||
|
|
||||||
|
|
||||||
|
@ -261,7 +255,7 @@ func _on_visibility_changed() -> void:
|
||||||
if visible:
|
if visible:
|
||||||
return
|
return
|
||||||
groups.clear()
|
groups.clear()
|
||||||
developers.clear()
|
authors.clear()
|
||||||
translators.clear()
|
translators.clear()
|
||||||
Global.dialog_open(false)
|
Global.dialog_open(false)
|
||||||
|
|
||||||
|
@ -272,10 +266,8 @@ func _on_Groups_item_selected() -> void:
|
||||||
child.visible = false
|
child.visible = false
|
||||||
|
|
||||||
var selected: String = groups.get_selected().get_metadata(0)
|
var selected: String = groups.get_selected().get_metadata(0)
|
||||||
if "Developers" in selected:
|
if "Authors" in selected:
|
||||||
developer_container.visible = true
|
authors_container.visible = true
|
||||||
elif "Contributors" in selected:
|
|
||||||
contributors_container.visible = true
|
|
||||||
elif "Donors" in selected:
|
elif "Donors" in selected:
|
||||||
donors_container.visible = true
|
donors_container.visible = true
|
||||||
elif "Translators" in selected:
|
elif "Translators" in selected:
|
||||||
|
@ -296,24 +288,20 @@ func _on_Donate_pressed() -> void:
|
||||||
OS.shell_open("https://www.patreon.com/OramaInteractive")
|
OS.shell_open("https://www.patreon.com/OramaInteractive")
|
||||||
|
|
||||||
|
|
||||||
func create_developers() -> void:
|
|
||||||
var dev_root := developers.create_item()
|
|
||||||
developers.create_item(dev_root).set_text(
|
|
||||||
0, " Emmanouil Papadeas (Overloaded) - " + tr("Lead Programmer")
|
|
||||||
)
|
|
||||||
developers.create_item(dev_root).set_text(0, " John Nikitakis (Erevos) - " + tr("UI Designer"))
|
|
||||||
|
|
||||||
|
|
||||||
func create_donors() -> void:
|
func create_donors() -> void:
|
||||||
var donors_root := donors.create_item()
|
var donors_root := donors.create_item()
|
||||||
for donor in DONORS:
|
for donor in DONORS:
|
||||||
donors.create_item(donors_root).set_text(0, " " + donor)
|
donors.create_item(donors_root).set_text(0, " " + donor)
|
||||||
|
|
||||||
|
|
||||||
func create_contributors() -> void:
|
func create_authors() -> void:
|
||||||
var contributor_root := contributors.create_item()
|
var author_root := authors.create_item()
|
||||||
for contributor in CONTRIBUTORS:
|
authors.create_item(author_root).set_text(
|
||||||
contributors.create_item(contributor_root).set_text(0, " " + contributor)
|
0, " Emmanouil Papadeas (Overloaded) - " + tr("Lead Developer")
|
||||||
|
)
|
||||||
|
authors.create_item(author_root).set_text(0, " John Nikitakis (Erevos) - " + tr("UI Designer"))
|
||||||
|
for author in AUTHORS:
|
||||||
|
authors.create_item(author_root).set_text(0, " " + author)
|
||||||
|
|
||||||
|
|
||||||
func create_translators() -> void:
|
func create_translators() -> void:
|
||||||
|
|
|
@ -84,32 +84,16 @@ layout_mode = 2
|
||||||
theme_override_constants/item_margin = -2
|
theme_override_constants/item_margin = -2
|
||||||
hide_root = true
|
hide_root = true
|
||||||
|
|
||||||
[node name="Developers" type="VBoxContainer" parent="AboutUI/Credits"]
|
[node name="Authors" type="VBoxContainer" parent="AboutUI/Credits"]
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="AboutUI/Credits/Developers"]
|
[node name="Label" type="Label" parent="AboutUI/Credits/Authors"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Development Team"
|
text = "Authors"
|
||||||
|
|
||||||
[node name="DeveloperTree" type="Tree" parent="AboutUI/Credits/Developers"]
|
[node name="AuthorTree" type="Tree" parent="AboutUI/Credits/Authors"]
|
||||||
layout_mode = 2
|
|
||||||
size_flags_vertical = 3
|
|
||||||
theme_override_constants/item_margin = -2
|
|
||||||
theme_override_constants/button_margin = 2
|
|
||||||
hide_root = true
|
|
||||||
|
|
||||||
[node name="Contributors" type="VBoxContainer" parent="AboutUI/Credits"]
|
|
||||||
visible = false
|
|
||||||
layout_mode = 2
|
|
||||||
size_flags_horizontal = 3
|
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="AboutUI/Credits/Contributors"]
|
|
||||||
layout_mode = 2
|
|
||||||
text = "GitHub Contributors"
|
|
||||||
|
|
||||||
[node name="ContributorTree" type="Tree" parent="AboutUI/Credits/Contributors"]
|
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
theme_override_constants/item_margin = -2
|
theme_override_constants/item_margin = -2
|
||||||
|
|
Loading…
Reference in a new issue