mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 10:24:44 -04:00
AboutDialog Overhaul
Made AboutDialog.tscn a scene of its own, added logo icons and names for the developer team, contributors and donors. Feel free to change/add things related to you!
This commit is contained in:
parent
8292c3aa31
commit
4ae5968887
24 changed files with 354 additions and 105 deletions
|
@ -1,9 +1,62 @@
|
|||
extends AcceptDialog
|
||||
extends WindowDialog
|
||||
|
||||
onready var credits = $AboutUI/Credits
|
||||
onready var groups : Tree = $AboutUI/Credits/Groups
|
||||
onready var developer_container = $AboutUI/Credits/Developers
|
||||
onready var contributors_container = $AboutUI/Credits/Contributors
|
||||
onready var donors_container = $AboutUI/Credits/Donors
|
||||
|
||||
onready var developers : Tree = $AboutUI/Credits/Developers/DeveloperTree
|
||||
onready var contributors : Tree = $AboutUI/Credits/Contributors/ContributorTree
|
||||
onready var donors : Tree = $AboutUI/Credits/Donors/DonorTree
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
var groups_root := groups.create_item()
|
||||
var developers_button := groups.create_item(groups_root)
|
||||
var contributors_button := groups.create_item(groups_root)
|
||||
var donors_button := groups.create_item(groups_root)
|
||||
developers_button.set_text(0, " Developers")
|
||||
developers_button.select(0)
|
||||
contributors_button.set_text(0, " Contributors")
|
||||
donors_button.set_text(0, " Donors")
|
||||
|
||||
var dev_root := developers.create_item()
|
||||
developers.create_item(dev_root).set_text(0, " Manolis Papadeas (Overloaded) - Lead Programmer")
|
||||
developers.create_item(dev_root).set_text(0, " John Nikitakis (Erevos) - UI Designer")
|
||||
|
||||
var contributor_root := contributors.create_item()
|
||||
contributors.create_item(contributor_root).set_text(0, " Calinou")
|
||||
contributors.create_item(contributor_root).set_text(0, " greusser")
|
||||
contributors.create_item(contributor_root).set_text(0, " tiritto")
|
||||
contributors.create_item(contributor_root).set_text(0, " YeldhamDev")
|
||||
contributors.create_item(contributor_root).set_text(0, " Martin1991zab")
|
||||
contributors.create_item(contributor_root).set_text(0, " azagaya")
|
||||
contributors.create_item(contributor_root).set_text(0, " Schweini07")
|
||||
contributors.create_item(contributor_root).set_text(0, " danielnaoexiste")
|
||||
contributors.create_item(contributor_root).set_text(0, " SbNanduri")
|
||||
contributors.create_item(contributor_root).set_text(0, " AndreevAndrei")
|
||||
contributors.create_item(contributor_root).set_text(0, " JunYouIntrovert")
|
||||
|
||||
var donors_root := donors.create_item()
|
||||
donors.create_item(donors_root).set_text(0, " pcmxms")
|
||||
|
||||
func _on_AboutDialog_about_to_show() -> void:
|
||||
var current_version : String = ProjectSettings.get_setting("application/config/Version")
|
||||
$AboutUI/Pixelorama.text = "Pixelorama %s\n" % current_version
|
||||
window_title = tr("About Pixelorama") + " " + current_version
|
||||
|
||||
func _on_Groups_item_selected() -> void:
|
||||
for child in credits.get_children():
|
||||
if child != groups:
|
||||
child.visible = false
|
||||
|
||||
var selected := groups.get_selected().get_text(0)
|
||||
if "Developers" in selected:
|
||||
developer_container.visible = true
|
||||
elif "Contributors" in selected:
|
||||
contributors_container.visible = true
|
||||
elif "Donors" in selected:
|
||||
donors_container.visible = true
|
||||
|
||||
|
||||
func _on_Website_pressed() -> void:
|
||||
OS.shell_open("https://www.orama-interactive.com/pixelorama")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue