public void PopulateItem(AK.Wwise.TreeView.TreeViewItem attachTo, string itemName, System.Collections.Generic.List <AkWwiseProjectData.AkInfoWorkUnit> workUnits) { var attachPoint = attachTo.AddItem(itemName, false, GetExpansionStatus("/" + RootItem.Header + "/" + itemName), new AkTreeInfo(WwiseObjectType.PhysicalFolder)); foreach (var wwu in workUnits) { foreach (var akInfo in wwu.List) { AddHandlerEvents(AddPathToTreeItem(attachPoint, akInfo)); } } AddHandlerEvents(attachPoint); }
public void PopulateItem(AK.Wwise.TreeView.TreeViewItem attachTo, string itemName, System.Collections.Generic.List <AkWwiseProjectData.GroupValWorkUnit> GroupWorkUnits) { var attachPoint = attachTo.AddItem(itemName, false, GetExpansionStatus("/" + RootItem.Header + "/" + itemName), new AkTreeInfo(WwiseObjectType.PhysicalFolder)); foreach (var wwu in GroupWorkUnits) { foreach (var group in wwu.List) { var groupItem = AddPathToTreeItem(attachPoint, group); AddHandlerEvents(groupItem); foreach (var child in group.values) { var item = groupItem.AddItem(child.Name, true, false, new AkTreeInfo(child.Guid, child.PathAndIcons[0].ObjectType)); AddHandlerEvents(item); } } } AddHandlerEvents(attachPoint); }
public void PopulateItem(AK.Wwise.TreeView.TreeViewItem attachTo, string itemName, System.Collections.Generic.List <AkWwiseProjectData.GroupValWorkUnit> GroupWorkUnits) { var attachPoint = attachTo.AddItem(itemName, false, GetExpansionStatus("/" + RootItem.Header + "/" + itemName), new AkTreeInfo(0, AkWwiseProjectData.WwiseObjectType.PHYSICALFOLDER)); foreach (var wwu in GroupWorkUnits) { foreach (var group in wwu.List) { var groupItem = AddPathToTreeItem(attachPoint, group); AddHandlerEvents(groupItem); for (var i = 0; i < group.values.Count; i++) { var item = groupItem.AddItem(group.values[i], true, false, new AkTreeInfo(group.valueIDs[i], group.ValueGuids[i].bytes, group.ValueIcons[i].ObjectType)); AddHandlerEvents(item); } } } AddHandlerEvents(attachPoint); }