Save file functionality

This commit is contained in:
2024-06-18 11:33:55 -04:00
parent 082b1353bc
commit 3a1b69a987
30 changed files with 428 additions and 1346 deletions

View File

@@ -60,7 +60,7 @@ func _on_button_exited(button: TextureButton):
# Update the global singleton for the given index
func update_global_texture_singleton(texture: Texture):
func update_global_texture_singleton(texture: String):
match Global.currentMemberSelected:
0:
Global.set_texture1(texture)
@@ -79,7 +79,8 @@ func _on_button_pressed(button: TextureButton, member: Dictionary):
## Print the name of the button
##print("Button pressed: ", button.name)
var selected_texture = button.texture_normal
var selected_texture = button.texture_normal.resource_path
print(selected_texture)
#var texture = button.texture_normal
# Logic to determine which target button to update (this can be based on user selection or some other logic)
# For this example, we'll update the first available slot
@@ -96,7 +97,7 @@ func _on_button_pressed(button: TextureButton, member: Dictionary):
Global.teamScreenVisible = true
Global.teamSelectionVisible = false
get_tree().change_scene_to_file("res://team.tscn")
get_tree().change_scene_to_file("res://Scenes/team.tscn")