Removed unused variable

This commit is contained in:
Willow Behar
2024-05-09 18:41:23 -05:00
parent 6357f92d68
commit e20239108c
5 changed files with 10 additions and 7 deletions

View File

@ -12,7 +12,6 @@ grow_vertical = 2
script = ExtResource("1_tqif2")
[node name="Pause Menu" type="Control" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
@ -131,6 +130,7 @@ text = "Joystick Sensativity"
[node name="HSlider" type="HSlider" parent="Settings/VBoxContainer/ColorRect2/HSplitContainer"]
layout_mode = 2
size_flags_horizontal = 4
[connection signal="pressed" from="Pause Menu/Menu/Resume" to="." method="_on_resume_pressed"]
[connection signal="pressed" from="Pause Menu/Menu/Settings" to="." method="_on_settings_pressed"]

View File

@ -17,5 +17,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.36293, 0)
[node name="Map" type="Node3D" parent="."]
script = ExtResource("4_cjwjg")
[connection signal="exitLevel" from="Pause Menu" to="." method="_on_pause_menu_exit_level"]
[connection signal="paused" from="Pause Menu" to="." method="_on_pause_menu_paused"]
[connection signal="unpaused" from="Pause Menu" to="." method="_on_pause_menu_unpaused"]

View File

@ -1,6 +1,6 @@
extends Control
signal startGame(path)
signal startGame
var load_list = ["Back"]
@export var level_folder = "res://Assets/Levels"
@ -20,8 +20,8 @@ func _on_exit_pressed():
func _on_start_pressed():
emit_signal("startGame", "res://Assets/Levels/TestMapHospitalTextures.tscn")
GlobalSettings.current_map = "res://Assets/Levels/TestMapHospitalTextures.tscn"
emit_signal("startGame")
func _on_settings_pressed():
pass # Replace with function body.
@ -37,4 +37,4 @@ func _on_item_list_item_clicked(index, at_position, mouse_button_index):
$VBoxContainer.show()
else:
GlobalSettings.current_map = "res://Assets/Levels/" + load_list[index]
emit_signal("startGame", GlobalSettings.current_map)
emit_signal("startGame")

View File

@ -1,7 +1,10 @@
extends Node3D
func _on_pause_menu_paused():
$"player".is_paused = true
func _on_pause_menu_unpaused():
$"player".is_paused = false

View File

@ -1,8 +1,7 @@
extends Node
func _on_main_menu_start_game(path):
func _on_main_menu_start_game():
var game = load("res://Assets/game.tscn").instantiate()
self.remove_child($"Main Menu")
remove_child($"Main Menu")
self.add_child(game)