Save on edit
This commit is contained in:
parent
19e16c62d7
commit
f7d19bbae6
10 changed files with 86 additions and 68 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue