Added Main Menu Button and connected it to the main menu script
This commit is contained in:
@ -14,6 +14,7 @@ theme = ExtResource("1_pjxx2")
|
|||||||
script = ExtResource("1_ju3pm")
|
script = ExtResource("1_ju3pm")
|
||||||
|
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||||
|
visible = false
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 8
|
anchors_preset = 8
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
@ -36,6 +37,9 @@ text = " Un-named
|
|||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Start"
|
text = "Start"
|
||||||
|
|
||||||
|
[node name="Load Level" type="Button" parent="VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
[node name="Settings" type="Button" parent="VBoxContainer"]
|
[node name="Settings" type="Button" parent="VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Settings"
|
text = "Settings"
|
||||||
@ -45,5 +49,6 @@ layout_mode = 2
|
|||||||
text = "Exit"
|
text = "Exit"
|
||||||
|
|
||||||
[connection signal="pressed" from="VBoxContainer/Start" to="." method="_on_start_pressed"]
|
[connection signal="pressed" from="VBoxContainer/Start" to="." method="_on_start_pressed"]
|
||||||
|
[connection signal="pressed" from="VBoxContainer/Load Level" to="." method="_on_load_level_pressed"]
|
||||||
[connection signal="pressed" from="VBoxContainer/Settings" to="." method="_on_settings_pressed"]
|
[connection signal="pressed" from="VBoxContainer/Settings" to="." method="_on_settings_pressed"]
|
||||||
[connection signal="pressed" from="VBoxContainer/Exit" to="." method="_on_exit_pressed"]
|
[connection signal="pressed" from="VBoxContainer/Exit" to="." method="_on_exit_pressed"]
|
||||||
|
|||||||
@ -16,3 +16,7 @@ func _on_start_pressed():
|
|||||||
|
|
||||||
func _on_settings_pressed():
|
func _on_settings_pressed():
|
||||||
pass # Replace with function body.
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_load_level_pressed():
|
||||||
|
pass # Replace with function body.
|
||||||
|
|||||||
Reference in New Issue
Block a user