Added the ability to load to the chase from the main menu

This commit is contained in:
SchimmelSpreu83 2025-09-21 23:50:17 +02:00
parent 82cb7997d3
commit c219f6885a
2 changed files with 14 additions and 0 deletions

View File

@ -63,3 +63,11 @@ func _on_settings_button_pressed() -> void:
main_menu_ui.hide()
options_menu.show()
func _on_chase_button_pressed() -> void:
if SceneFader.is_fading:
return
AudioManager.fade_audio(AMBIENCE_STREAM, -80.0, SceneFader.fade_out_duration, AudioManager.AMBIENCE, true)
SceneFader.load_to_path("uid://d013wo01v8lr5")

View File

@ -54,6 +54,11 @@ unique_name_in_owner = true
layout_mode = 2
text = "NEW_GAME"
[node name="ChaseButton" type="Button" parent="MainMenuUI/ButtonContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Chase Test"
[node name="SettingsButton" type="Button" parent="MainMenuUI/ButtonContainer"]
unique_name_in_owner = true
layout_mode = 2
@ -95,5 +100,6 @@ fov = 55.0
[connection signal="pressed" from="MainMenuUI/ButtonContainer/ContinueButton" to="." method="_on_continue_button_pressed"]
[connection signal="pressed" from="MainMenuUI/ButtonContainer/NewGameButton" to="." method="_on_new_game_button_pressed"]
[connection signal="pressed" from="MainMenuUI/ButtonContainer/ChaseButton" to="." method="_on_chase_button_pressed"]
[connection signal="pressed" from="MainMenuUI/ButtonContainer/SettingsButton" to="." method="_on_settings_button_pressed"]
[connection signal="pressed" from="MainMenuUI/ButtonContainer/QuitButton" to="." method="_on_quit_button_pressed"]