1
0
mirror of synced 2024-11-12 10:10:50 +01:00

Load bcres editor on node select

This commit is contained in:
KillzXGaming 2019-05-11 22:05:18 -04:00
parent d90e852e5e
commit 69f25781a1
3 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@ -66,6 +66,10 @@ namespace FirstPlugin
AddNodeGroup(BcresFile.Data.Particles, new BCRESGroupNode(BCRESGroupType.Particles));
}
public override void OnClick(TreeView treeview) {
LoadEditors(this, null);
}
private void AddNodeGroup<T>(ResDict<T> SubSections, BCRESGroupNode Folder)
where T : CtrObject, new()
{
@ -130,6 +134,9 @@ namespace FirstPlugin
}
editor.LoadTexture(((BcresTextureMapWrapper)Wrapper));
}
else if (Wrapper is BCRES) {
LoadPropertyGrid(((BCRES)Wrapper).BcresFile, bcresEditor, OnPropertyChanged);
}
else if (Wrapper is MTOBWrapper) {
LoadPropertyGrid(((MTOBWrapper)Wrapper).Material, bcresEditor, OnPropertyChanged);
}