Added movement to DSL nodes to allow repositioning.

This commit is contained in:
2026-05-11 21:18:25 +02:00
parent 979595959b
commit 05d7df753f
20 changed files with 288 additions and 13 deletions
+9
View File
@@ -87,6 +87,15 @@ public partial class CodingWindow : PanelContainer
editorWindow.RemoveChild(editorDisplay);
editorDisplay.QueueFree();
};
editorDisplay.OnMoveNode += (int direction) =>
{
int targetIndex = Mathf.Clamp(
editorDisplay.GetIndex() + direction,
0,
editorWindow.GetChildCount() - 1
);
editorWindow.MoveChild(editorDisplay, targetIndex);
};
}
public void ClearWindow()