Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Greavesy1899 committed May 8, 2024
1 parent 26ca47f commit 27886dc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Mafia2Libs/Forms/CutsceneEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,23 @@ private void AddCutsceneToTreeView(CutsceneLoader.Cutscene Cutscene)
CutsceneParent.Nodes.Add(AssetsParent);
}

if(Cutscene.VehicleContent != null)
{
var Assets = Cutscene.VehicleContent;
TreeNode AssetsParent = new TreeNode("Vehicle Content: (GCR Data)");

for(int i = 0; i < Assets.Length; i++)
{
var Asset = Assets[i];
TreeNode AssetNode = new TreeNode(string.Format("Asset: {0}", i));
AssetNode.Tag = Asset;

AssetsParent.Nodes.Add(AssetNode);
}

CutsceneParent.Nodes.Add(AssetsParent);
}

TreeView_Cutscene.Nodes.Add(CutsceneParent);
}

Expand Down

0 comments on commit 27886dc

Please sign in to comment.