1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2025-02-04 12:28:35 +00:00

Added button to go in and out of credits

This commit is contained in:
hpham474
2021-11-22 22:35:28 -06:00
parent f57f6acb9a
commit 50ad9a2539
5 changed files with 42 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://assets/font/Minecraft.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://script/options/Options.gd" type="Script" id=2]
[ext_resource path="res://script/credits/Credits.gd" type="Script" id=2]
[ext_resource path="res://light_theme.tres" type="Theme" id=3]
[sub_resource type="DynamicFont" id=1]
@@ -269,4 +269,4 @@ __meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="Back" to="." method="_on_Button_pressed"]
[connection signal="pressed" from="Back" to="." method="_on_Back_pressed"]

View File

@@ -50,10 +50,16 @@ margin_right = 160.0
margin_bottom = 80.0
text = "Options"
[node name="Quit" type="Button" parent="VBoxContainer"]
[node name="Credits" type="Button" parent="VBoxContainer"]
margin_top = 84.0
margin_right = 160.0
margin_bottom = 108.0
text = "Credits"
[node name="Quit" type="Button" parent="VBoxContainer"]
margin_top = 112.0
margin_right = 160.0
margin_bottom = 136.0
focus_neighbour_bottom = NodePath("../Singleplayer")
text = "Quit"
@@ -82,4 +88,5 @@ __meta__ = {
[connection signal="pressed" from="VBoxContainer/Singleplayer" to="." method="_on_Singleplayer_pressed"]
[connection signal="pressed" from="VBoxContainer/Multiplayer" to="." method="_on_Multiplayer_pressed"]
[connection signal="pressed" from="VBoxContainer/Options" to="." method="_on_Options_pressed"]
[connection signal="pressed" from="VBoxContainer/Credits" to="." method="_on_Credits_pressed"]
[connection signal="pressed" from="VBoxContainer/Quit" to="." method="_on_Quit_pressed"]