tested version with most of the final functionality. Still a few known issues, like dragging to a row that extends to multiple lines

This commit is contained in:
2024-04-24 18:18:03 -05:00
parent f67885d217
commit e25e7da40f
25 changed files with 568 additions and 56 deletions

View File

@@ -57,12 +57,14 @@ public static class ExtensionHelper
}
public static string GetUnusedRowId(this SceneTree tree)
{
var ids = tree.GetNodesInGroup("RowGroup").OfType<row>().Select(r => r.RowId).ToArray();
var ids = tree.GetNodesInGroup("RowGroup").OfType<row>().Select(r => r.RowId)
.ToList();
int i = 1;
while (true)
{
if (!ids.Contains(i.ToString()))
return i.ToString();
var s = i.ToString();
if (!ids.Contains(s))
return s;
i++;
}
}