mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 23:12:59 +08:00
Audio explorer progress
This commit is contained in:
parent
80d175624f
commit
f669e62865
File diff suppressed because it is too large
Load Diff
@ -193,6 +193,13 @@ namespace CodeWalker.Tools
|
||||
|
||||
node.Tag = item;
|
||||
|
||||
|
||||
if ((item is Dat22Category) && (parentNode != null) && (!(parentNode.Tag is Dat22Category))) //don't bother expanding out categories, too spammy!
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var speech = GetUniqueHashes(item.GetSpeechHashes(), item);
|
||||
var synths = GetUniqueHashes(item.GetSynthHashes(), item);
|
||||
var mixers = GetUniqueHashes(item.GetMixerHashes(), item);
|
||||
@ -254,8 +261,23 @@ namespace CodeWalker.Tools
|
||||
|
||||
|
||||
if (parentNode == null)
|
||||
{
|
||||
var totnodes = node.GetNodeCount(true);
|
||||
if (totnodes > 100)
|
||||
{
|
||||
node.Expand();
|
||||
foreach (TreeNode cnode in node.Nodes)
|
||||
{
|
||||
foreach (TreeNode ccnode in cnode.Nodes)
|
||||
{
|
||||
ccnode.ExpandAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
node.ExpandAll();
|
||||
}
|
||||
HierarchyTreeView.SelectedNode = node;
|
||||
}
|
||||
|
||||
|
@ -1433,7 +1433,7 @@ namespace CodeWalker.World
|
||||
var streaminfs = new List<Dat54SimpleSound>();
|
||||
var streamlist = new List<AwcStream>();
|
||||
|
||||
foreach (var chan in strsnd.AudioTracks)
|
||||
foreach (var chan in strsnd.ChildSounds)
|
||||
{
|
||||
if (chan is Dat54SimpleSound chansnd)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user