extends PanelContainer @onready var auto_save_slot = $MarginContainer/VBoxContainer/AutoSaveSlot @onready var back = $MarginContainer/VBoxContainer/Back var load_slot = [] # Called when the node enters the scene tree for the first time. func _ready() -> void: load_slot.resize(Globals.save_slot_count + 1) #Resizes save_slot #Connecting signals back.pressed.connect(func(): self.hide() if UI.in_title_screen: UI.masks.mask.hide() ) #Sets up save_slot array for i in range(1, Globals.save_slot_count + 1): #Goes from 1 to 4 var slot_path = "MarginContainer/VBoxContainer/LoadSlot" + str(i) load_slot[i] = get_node(slot_path)