- [GUI] Highlight nodes that are exportable as fbx.

- [GUI] Add option to toggle between selecting all subnodes or matching only (using `Alt` key).
This commit is contained in:
Razmoth
2024-02-27 14:59:31 +04:00
parent ab730462b1
commit 63b4464850
2 changed files with 15 additions and 4 deletions

View File

@@ -10,6 +10,10 @@ namespace AssetStudio.GUI
{
this.gameObject = gameObject;
Text = gameObject.m_Name;
if (gameObject.HasModel())
{
BackColor = System.Drawing.Color.LightBlue;
}
}
}
}

View File

@@ -609,9 +609,12 @@ namespace AssetStudio.GUI
foreach (var node in treeSrcResults)
{
var tempNode = node;
while (tempNode.Parent != null)
if (e.Alt)
{
tempNode = tempNode.Parent;
while (tempNode.Parent != null)
{
tempNode = tempNode.Parent;
}
}
tempNode.EnsureVisible();
tempNode.Checked = e.Control;
@@ -625,10 +628,14 @@ namespace AssetStudio.GUI
nextGObject = 0;
}
var node = treeSrcResults[nextGObject];
while (node.Parent != null)
if (e.Alt)
{
node = node.Parent;
while (node.Parent != null)
{
node = node.Parent;
}
}
node.EnsureVisible();
node.Checked = e.Control;
sceneTreeView.SelectedNode = treeSrcResults[nextGObject];