Save on edit

This commit is contained in:
Rendo 2025-07-16 22:14:15 +05:00
commit f7d19bbae6
10 changed files with 86 additions and 68 deletions

View file

@ -19,6 +19,8 @@ public partial class AdventureResourceInspector : Node
[Export]
public Control editorContainer;
[Export]
public AdventureEditor adventureEditor;
public override void _Ready()
{
@ -106,6 +108,7 @@ public partial class AdventureResourceInspector : Node
editorContainer.AddChild(editor);
editor.SetEditedWave(heldResource.waves[GetWaveIndex(selected.GetParent())]);
editor.SaveCallback += adventureEditor.Save;
return;
}
else if (index == EVENTS)