Skip to content
Snippets Groups Projects
Commit 4bfa8ca8 authored by BARBUTOV FILIP's avatar BARBUTOV FILIP
Browse files

fix settings button

parent c3d1f2f6
Branches
Tags
1 merge request!6Figma team
......@@ -129,6 +129,5 @@ position = Vector2(424, 80)
[connection signal="pressed" from="Settings Btn" to="." method="_on_texture_button_pressed"]
[connection signal="pressed" from="PlayNow" to="." method="_on_play_now_pressed"]
[connection signal="pressed" from="Profile Btn" to="." method="_on_texture_button_pressed"]
[connection signal="pressed" from="Rules Btn" to="." method="_on_texture_button_2_pressed"]
[connection signal="value_changed" from="HSlider" to="." method="_on_h_slider_value_changed"]
......@@ -6,3 +6,8 @@ func make_visible(ismenu) -> void:
func _on_button_pressed() -> void:
get_tree().quit()
func _on_button_2_pressed() -> void:
get_tree().change_scene_to_file("res://GameStarter/HomePage.tscn")
......@@ -136,4 +136,4 @@ theme_override_styles/normal = SubResource("StyleBoxFlat_ni351")
text = "Exit to main menu"
[connection signal="pressed" from="PopupSettings/Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="PopupSettings/Button2" to="." method="_on_button_pressed"]
[connection signal="pressed" from="PopupSettings/Button2" to="." method="_on_button_2_pressed"]
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment