Load bcres editor on node select
This commit is contained in:
parent
d90e852e5e
commit
69f25781a1
Binary file not shown.
@ -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);
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user