Add about screen with licence notices
parent
abf9c7adcb
commit
76c9f99335
|
@ -0,0 +1,9 @@
|
|||
extends Panel
|
||||
|
||||
|
||||
func _on_BackButton_pressed() -> void:
|
||||
get_tree().change_scene("res://scenes/menu/main_menu.tscn")
|
||||
|
||||
|
||||
func _on_link_meta_clicked(meta) -> void:
|
||||
OS.shell_open(meta)
|
|
@ -0,0 +1,279 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/menu/about.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/fonts/kenney-future-narrow.ttf" type="DynamicFontData" id=2]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 48
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[node name="About" type="Panel"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="BackButton" type="Button" parent="."]
|
||||
margin_left = 20.0
|
||||
margin_top = 20.0
|
||||
margin_right = 24.0
|
||||
margin_bottom = 37.0
|
||||
text = "Back"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 100.0
|
||||
margin_right = -100.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer"]
|
||||
margin_right = 824.0
|
||||
margin_bottom = 600.0
|
||||
scroll_horizontal_enabled = false
|
||||
scroll_vertical = 1344
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/ScrollContainer"]
|
||||
margin_top = -1344.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 600.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Title" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_right = 800.0
|
||||
margin_bottom = 294.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
text = "
|
||||
|
||||
Bugged Racing
|
||||
|
||||
"
|
||||
align = 1
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 302.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 320.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "Created by Ensar Sarajcic, for GitHub Game Off 2021. Game theme was \"Bug\"."
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label2" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 328.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 346.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
align = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label3" type="RichTextLabel" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 354.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 374.0
|
||||
size_flags_vertical = 0
|
||||
custom_fonts/normal_font = SubResource( 2 )
|
||||
bbcode_enabled = true
|
||||
bbcode_text = "Source code is avaialble on [url=https://github.com/esensar/bugged-racing]GitHub[/url]."
|
||||
text = "Source code is avaialble on GitHub."
|
||||
fit_content_height = true
|
||||
|
||||
[node name="Label4" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 382.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 400.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
align = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label5" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 408.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 426.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "Game was built using Godot Engine."
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label6" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 434.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 452.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
align = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label7" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 460.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 478.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "Open source licences:"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label8" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 486.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 504.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
align = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label11" type="RichTextLabel" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 512.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 532.0
|
||||
custom_fonts/normal_font = SubResource( 2 )
|
||||
bbcode_enabled = true
|
||||
bbcode_text = "Godot Engine (also available in [url=https://godotengine.org/license]web version[/url]):"
|
||||
text = "Godot Engine (also available in web version):"
|
||||
fit_content_height = true
|
||||
|
||||
[node name="Label9" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 540.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 1062.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "
|
||||
This game 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."
|
||||
autowrap = true
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label12" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 1070.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 1088.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
align = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label10" type="RichTextLabel" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 1096.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 1176.0
|
||||
custom_fonts/normal_font = SubResource( 2 )
|
||||
bbcode_enabled = true
|
||||
bbcode_text = "[url=https://www.freetype.org/]FreeType[/url]:
|
||||
|
||||
Portions of this software are copyright © 2020 The FreeType Project ([url=www.freetype.org]www.freetype.org[/url]). All rights reserved."
|
||||
text = "FreeType:
|
||||
|
||||
Portions of this software are copyright © 2020 The FreeType Project (www.freetype.org). All rights reserved."
|
||||
fit_content_height = true
|
||||
|
||||
[node name="Label13" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 1184.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 1202.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
align = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label14" type="RichTextLabel" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 1210.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 1630.0
|
||||
custom_fonts/normal_font = SubResource( 2 )
|
||||
bbcode_enabled = true
|
||||
bbcode_text = "[url=http://enet.bespin.org/]ENet[/url]:
|
||||
|
||||
Copyright (c) 2002-2020 Lee Salzman
|
||||
|
||||
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.
|
||||
"
|
||||
text = "ENet:
|
||||
|
||||
Copyright (c) 2002-2020 Lee Salzman
|
||||
|
||||
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.
|
||||
"
|
||||
fit_content_height = true
|
||||
|
||||
[node name="Label15" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 1638.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 1656.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
align = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label16" type="RichTextLabel" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 1664.0
|
||||
margin_right = 800.0
|
||||
margin_bottom = 1944.0
|
||||
custom_fonts/normal_font = SubResource( 2 )
|
||||
bbcode_enabled = true
|
||||
bbcode_text = "[url=https://tls.mbed.org/]MBedTLS[/url]:
|
||||
|
||||
Copyright The Mbed TLS Contributors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
||||
|
||||
[url=http://www.apache.org/licenses/LICENSE-2.0]http://www.apache.org/licenses/LICENSE-2.0[/url]
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
||||
"
|
||||
text = "MBedTLS:
|
||||
|
||||
Copyright The Mbed TLS Contributors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
||||
"
|
||||
fit_content_height = true
|
||||
|
||||
[connection signal="pressed" from="BackButton" to="." method="_on_BackButton_pressed"]
|
||||
[connection signal="meta_clicked" from="MarginContainer/ScrollContainer/VBoxContainer/Label3" to="." method="_on_link_meta_clicked"]
|
||||
[connection signal="meta_clicked" from="MarginContainer/ScrollContainer/VBoxContainer/Label11" to="." method="_on_link_meta_clicked"]
|
||||
[connection signal="meta_clicked" from="MarginContainer/ScrollContainer/VBoxContainer/Label10" to="." method="_on_link_meta_clicked"]
|
||||
[connection signal="meta_clicked" from="MarginContainer/ScrollContainer/VBoxContainer/Label14" to="." method="_on_link_meta_clicked"]
|
||||
[connection signal="meta_clicked" from="MarginContainer/ScrollContainer/VBoxContainer/Label16" to="." method="_on_link_meta_clicked"]
|
|
@ -1,7 +1,7 @@
|
|||
extends Panel
|
||||
|
||||
func _ready() -> void:
|
||||
$MarginContainer/VSplitContainer/CenterContainer/VBoxContainer/StartButton.grab_focus()
|
||||
$MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer/StartButton.grab_focus()
|
||||
|
||||
func _on_StartButton_pressed() -> void:
|
||||
get_tree().change_scene("res://scenes/menu/start_menu.tscn")
|
||||
|
@ -11,3 +11,9 @@ func _on_ExitButton_pressed() -> void:
|
|||
|
||||
func _on_SettingsButton_pressed() -> void:
|
||||
get_tree().change_scene("res://scenes/menu/settings_menu.tscn")
|
||||
|
||||
func _on_AboutButton_pressed() -> void:
|
||||
get_tree().change_scene("res://scenes/menu/about.tscn")
|
||||
|
||||
func _on_GodotButton_pressed() -> void:
|
||||
OS.shell_open("https://godotengine.org")
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/menu/main_menu.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/fonts/kenney-future-narrow.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://icon.png" type="Texture" id=3]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 64
|
||||
|
@ -44,37 +45,79 @@ text = "Bugged Racing"
|
|||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer/VSplitContainer"]
|
||||
[node name="VSplitContainer" type="VSplitContainer" parent="MarginContainer/VSplitContainer"]
|
||||
margin_top = 96.0
|
||||
margin_right = 984.0
|
||||
margin_bottom = 560.0
|
||||
split_offset = 973
|
||||
dragger_visibility = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VSplitContainer/CenterContainer"]
|
||||
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer/VSplitContainer/VSplitContainer"]
|
||||
margin_right = 984.0
|
||||
margin_bottom = 376.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VSplitContainer/VSplitContainer/CenterContainer"]
|
||||
margin_left = 398.0
|
||||
margin_top = 152.0
|
||||
margin_top = 80.0
|
||||
margin_right = 586.0
|
||||
margin_bottom = 312.0
|
||||
margin_bottom = 296.0
|
||||
|
||||
[node name="StartButton" type="Button" parent="MarginContainer/VSplitContainer/CenterContainer/VBoxContainer"]
|
||||
[node name="StartButton" type="Button" parent="MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer"]
|
||||
margin_right = 188.0
|
||||
margin_bottom = 48.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "Start"
|
||||
|
||||
[node name="SettingsButton" type="Button" parent="MarginContainer/VSplitContainer/CenterContainer/VBoxContainer"]
|
||||
[node name="SettingsButton" type="Button" parent="MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer"]
|
||||
margin_top = 56.0
|
||||
margin_right = 188.0
|
||||
margin_bottom = 104.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "Settings"
|
||||
|
||||
[node name="ExitButton" type="Button" parent="MarginContainer/VSplitContainer/CenterContainer/VBoxContainer"]
|
||||
[node name="AboutButton" type="Button" parent="MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer"]
|
||||
margin_top = 112.0
|
||||
margin_right = 188.0
|
||||
margin_bottom = 160.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "About"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ExitButton" type="Button" parent="MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer"]
|
||||
margin_top = 168.0
|
||||
margin_right = 188.0
|
||||
margin_bottom = 216.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "Exit"
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/VSplitContainer/CenterContainer/VBoxContainer/StartButton" to="." method="_on_StartButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VSplitContainer/CenterContainer/VBoxContainer/SettingsButton" to="." method="_on_SettingsButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VSplitContainer/CenterContainer/VBoxContainer/ExitButton" to="." method="_on_ExitButton_pressed"]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VSplitContainer/VSplitContainer"]
|
||||
margin_top = 400.0
|
||||
margin_right = 984.0
|
||||
margin_bottom = 464.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="BuiltWithGodotLabel" type="Label" parent="MarginContainer/VSplitContainer/VSplitContainer/HBoxContainer"]
|
||||
margin_top = 14.0
|
||||
margin_right = 195.0
|
||||
margin_bottom = 50.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "Built with "
|
||||
|
||||
[node name="GodotButton" type="TextureButton" parent="MarginContainer/VSplitContainer/VSplitContainer/HBoxContainer"]
|
||||
margin_left = 203.0
|
||||
margin_right = 267.0
|
||||
margin_bottom = 64.0
|
||||
texture_normal = ExtResource( 3 )
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer/StartButton" to="." method="_on_StartButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer/SettingsButton" to="." method="_on_SettingsButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer/AboutButton" to="." method="_on_AboutButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VSplitContainer/VSplitContainer/CenterContainer/VBoxContainer/ExitButton" to="." method="_on_ExitButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VSplitContainer/VSplitContainer/HBoxContainer/GodotButton" to="." method="_on_GodotButton_pressed"]
|
||||
|
|
Loading…
Reference in New Issue