Inventory management focused game written in Godot / C#
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
689 B

public partial class LoadSaveMenu : MarginContainer
{
const string SAVES_FOLDER = "user://saves/";
[Export] public FileDialog LoadFileDialog { get; set; }
[Export] public FileDialog SaveFileDialog { get; set; }
public override void _EnterTree()
{
DirAccess.MakeDirAbsolute(SAVES_FOLDER);
LoadFileDialog.RootSubfolder = SAVES_FOLDER;
SaveFileDialog.RootSubfolder = SAVES_FOLDER;
}
public void OnLoadPressed()
{
LoadFileDialog.Popup();
}
public void OnOverwriteSavePressed()
{
}
public void OnCreateSavePressed()
{
SaveFileDialog.Popup();
}
public void OnLoadFileDialogSelected(string path)
{
}
public void OnSaveFileDialogSelected(string path)
{
}
}