Save file functionality
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user