Added movement to DSL nodes to allow repositioning.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user