mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
Added a "Licenses" tab in the About menu, which displays Pixelorama's license as well as the software it depends on, such as Godot
This commit is contained in:
parent
b2b58481a6
commit
da8bc0d057
|
@ -23,6 +23,7 @@ Kawan Weege ([@DragonOfWar](https://github.com/DragonOfWar)), Martin Novák ([@n
|
|||
- A new "fill inside" option has been added in the Pencil tool options. [#489](https://github.com/Orama-Interactive/Pixelorama/pull/489), based off [#459](https://github.com/Orama-Interactive/Pixelorama/pull/459)
|
||||
- You can now name the project name on the "create new project" dialog. [#490](https://github.com/Orama-Interactive/Pixelorama/pull/490)
|
||||
- A tool button size option has been added in the Preferences. This lets you choose between small or big tool button sizes.
|
||||
- Added a "Licenses" tab in the About menu, which displays Pixelorama's license as well as the software it depends on, such as Godot.
|
||||
- Added Norwegian Bokmål and Ukrainian translations.
|
||||
|
||||
### Changed
|
||||
|
|
|
@ -51,7 +51,7 @@ size_flags_horizontal = 3
|
|||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="HSplitContainer/ScrollContainer"]
|
||||
margin_right = 498.0
|
||||
margin_bottom = 198.0
|
||||
margin_bottom = 24.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Startup" type="VBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer"]
|
||||
|
|
|
@ -1,17 +1,61 @@
|
|||
extends WindowDialog
|
||||
|
||||
|
||||
enum License {PIXELORAMA, GODOT, FREETYPE, GODOT_GDGIFEXPORTER}
|
||||
|
||||
const LICENSES := [
|
||||
"""MIT License
|
||||
|
||||
Copyright (c) 2019-present Orama Interactive and contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
""",
|
||||
|
||||
"""This software uses Godot Engine, available under the following license:
|
||||
|
||||
Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur.
|
||||
Copyright (c) 2014-2021 Godot Engine contributors.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
""",
|
||||
|
||||
"Portions of this software are copyright © 2021 The FreeType Project (www.freetype.org). All rights reserved.",
|
||||
|
||||
"""MIT License
|
||||
|
||||
Copyright (c) 2020 Igor Santarek
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
"""
|
||||
]
|
||||
|
||||
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 translators_container = $AboutUI/Credits/Translators
|
||||
onready var licenses_container = $AboutUI/Credits/Licenses
|
||||
|
||||
onready var developers : Tree = $AboutUI/Credits/Developers/DeveloperTree
|
||||
onready var contributors : Tree = $AboutUI/Credits/Contributors/ContributorTree
|
||||
onready var donors : Tree = $AboutUI/Credits/Donors/DonorTree
|
||||
onready var translators : Tree = $AboutUI/Credits/Translators/TranslatorTree
|
||||
|
||||
onready var license_text : TextEdit = $AboutUI/Credits/Licenses/LicenseText
|
||||
|
||||
onready var slogan_label : Label = $AboutUI/IconsButtons/SloganAndLinks/VBoxContainer/PixeloramaSlogan
|
||||
onready var copyright_label : Label = $AboutUI/Copyright
|
||||
|
||||
|
@ -24,6 +68,9 @@ onready var cjk_font_small = preload("res://assets/fonts/CJK/DroidSansFallback-S
|
|||
func _ready() -> void:
|
||||
create_donors()
|
||||
create_contributors()
|
||||
var license_buttons_container = $AboutUI/Credits/Licenses/LicenseButtonsContainer
|
||||
for button in license_buttons_container.get_children():
|
||||
button.connect("pressed", self, "_on_LicenseButton_pressed", [button.get_index()])
|
||||
|
||||
|
||||
func _on_AboutDialog_about_to_show() -> void:
|
||||
|
@ -41,6 +88,7 @@ func _on_AboutDialog_about_to_show() -> void:
|
|||
var contributors_button := groups.create_item(groups_root)
|
||||
var donors_button := groups.create_item(groups_root)
|
||||
var translators_button := groups.create_item(groups_root)
|
||||
var licenses_button := groups.create_item(groups_root)
|
||||
|
||||
developers_button.set_text(0, " " + tr("Developers"))
|
||||
# We use metadata to avoid being affected by translations
|
||||
|
@ -52,10 +100,13 @@ func _on_AboutDialog_about_to_show() -> void:
|
|||
donors_button.set_metadata(0, "Donors")
|
||||
translators_button.set_text(0, " " + tr("Translators"))
|
||||
translators_button.set_metadata(0, "Translators")
|
||||
licenses_button.set_text(0, " " + tr("Licenses"))
|
||||
licenses_button.set_metadata(0, "Licenses")
|
||||
|
||||
create_developers()
|
||||
create_translators()
|
||||
|
||||
|
||||
func _on_AboutDialog_popup_hide() -> void:
|
||||
groups.clear()
|
||||
developers.clear()
|
||||
|
@ -76,6 +127,8 @@ func _on_Groups_item_selected() -> void:
|
|||
donors_container.visible = true
|
||||
elif "Translators" in selected:
|
||||
translators_container.visible = true
|
||||
elif "Licenses" in selected:
|
||||
licenses_container.visible = true
|
||||
|
||||
|
||||
func _on_Website_pressed() -> void:
|
||||
|
@ -90,6 +143,10 @@ func _on_Donate_pressed() -> void:
|
|||
OS.shell_open("https://www.patreon.com/OramaInteractive")
|
||||
|
||||
|
||||
func _on_LicenseButton_pressed(index : int) -> void:
|
||||
license_text.text = LICENSES[index]
|
||||
|
||||
|
||||
func create_developers() -> void:
|
||||
var dev_root := developers.create_item()
|
||||
developers.create_item(dev_root).set_text(0, " Manolis Papadeas (Overloaded) - " + tr("Lead Programmer"))
|
||||
|
@ -147,6 +204,7 @@ func create_contributors() -> void:
|
|||
contributors.create_item(contributor_root).set_text(0, " kevinms")
|
||||
contributors.create_item(contributor_root).set_text(0, " Álex Román Núñez (EIREXE)")
|
||||
contributors.create_item(contributor_root).set_text(0, " mrtripie")
|
||||
contributors.create_item(contributor_root).set_text(0, " Jeremy Behreandt (behreajj)")
|
||||
|
||||
|
||||
func create_translators() -> void:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://src/UI/Dialogs/AboutDialog.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/graphics/icons/icon.png" type="Texture" id=2]
|
||||
|
@ -6,6 +6,8 @@
|
|||
[ext_resource path="res://assets/graphics/splash_screen/orama_64x64.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/fonts/Roboto-Small.tres" type="DynamicFont" id=5]
|
||||
|
||||
[sub_resource type="ButtonGroup" id=1]
|
||||
|
||||
[node name="AboutDialog" type="WindowDialog"]
|
||||
margin_right = 600.0
|
||||
margin_bottom = 400.0
|
||||
|
@ -96,13 +98,14 @@ margin_bottom = 345.0
|
|||
size_flags_vertical = 3
|
||||
|
||||
[node name="Groups" type="Tree" parent="AboutUI/Credits"]
|
||||
margin_right = 120.0
|
||||
margin_right = 576.0
|
||||
margin_bottom = 269.0
|
||||
rect_min_size = Vector2( 120, 120 )
|
||||
custom_constants/item_margin = -2
|
||||
hide_root = true
|
||||
|
||||
[node name="Developers" type="VBoxContainer" parent="AboutUI/Credits"]
|
||||
visible = false
|
||||
margin_left = 132.0
|
||||
margin_right = 576.0
|
||||
margin_bottom = 269.0
|
||||
|
@ -182,6 +185,67 @@ size_flags_vertical = 3
|
|||
custom_constants/item_margin = -2
|
||||
hide_root = true
|
||||
|
||||
[node name="Licenses" type="VBoxContainer" parent="AboutUI/Credits"]
|
||||
visible = false
|
||||
margin_left = 132.0
|
||||
margin_right = 576.0
|
||||
margin_bottom = 269.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="LicenseText" type="TextEdit" parent="AboutUI/Credits/Licenses"]
|
||||
margin_right = 444.0
|
||||
margin_bottom = 241.0
|
||||
size_flags_vertical = 3
|
||||
text = "MIT License
|
||||
|
||||
Copyright (c) 2019-present Orama Interactive and contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
|
||||
readonly = true
|
||||
wrap_enabled = true
|
||||
|
||||
[node name="LicenseButtonsContainer" type="GridContainer" parent="AboutUI/Credits/Licenses"]
|
||||
margin_top = 245.0
|
||||
margin_right = 444.0
|
||||
margin_bottom = 269.0
|
||||
columns = 4
|
||||
|
||||
[node name="PixeloramaLicense" type="CheckBox" parent="AboutUI/Credits/Licenses/LicenseButtonsContainer"]
|
||||
margin_right = 99.0
|
||||
margin_bottom = 24.0
|
||||
mouse_default_cursor_shape = 2
|
||||
pressed = true
|
||||
group = SubResource( 1 )
|
||||
text = "Pixelorama"
|
||||
|
||||
[node name="GodotLicense" type="CheckBox" parent="AboutUI/Credits/Licenses/LicenseButtonsContainer"]
|
||||
margin_left = 103.0
|
||||
margin_right = 170.0
|
||||
margin_bottom = 24.0
|
||||
mouse_default_cursor_shape = 2
|
||||
group = SubResource( 1 )
|
||||
text = "Godot Engine"
|
||||
|
||||
[node name="FreeTypeLicense" type="CheckBox" parent="AboutUI/Credits/Licenses/LicenseButtonsContainer"]
|
||||
margin_left = 174.0
|
||||
margin_right = 260.0
|
||||
margin_bottom = 24.0
|
||||
mouse_default_cursor_shape = 2
|
||||
group = SubResource( 1 )
|
||||
text = "FreeType"
|
||||
|
||||
[node name="godot-gdgifexporterLicense" type="CheckBox" parent="AboutUI/Credits/Licenses/LicenseButtonsContainer"]
|
||||
margin_left = 264.0
|
||||
margin_right = 417.0
|
||||
margin_bottom = 24.0
|
||||
mouse_default_cursor_shape = 2
|
||||
group = SubResource( 1 )
|
||||
text = "godot-gdgifexporter"
|
||||
|
||||
[node name="HSeparator2" type="HSeparator" parent="AboutUI"]
|
||||
margin_top = 349.0
|
||||
margin_right = 576.0
|
||||
|
@ -201,6 +265,7 @@ margin_bottom = 388.0
|
|||
custom_fonts/font = ExtResource( 5 )
|
||||
text = "©2019-present by Orama Interactive and contributors"
|
||||
align = 1
|
||||
|
||||
[connection signal="about_to_show" from="." to="." method="_on_AboutDialog_about_to_show"]
|
||||
[connection signal="popup_hide" from="." to="." method="_on_AboutDialog_popup_hide"]
|
||||
[connection signal="pressed" from="AboutUI/IconsButtons/SloganAndLinks/VBoxContainer/LinkButtons/Website" to="." method="_on_Website_pressed"]
|
||||
|
|
Loading…
Reference in a new issue