Improve binary file exporting greatly.
Fixed version issues between swapping binarys from bfres sections. Fixed FMDL exports from crashing. Fixed FSCN and FBNV from not having a replace option
This commit is contained in:
parent
6464f9f5f8
commit
f4370ab63a
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -561,6 +561,12 @@ namespace Bfres.Structs
|
||||
Model mdl = new Model();
|
||||
mdl.Import(FileName, resFileNX);
|
||||
mdl.Name = Text;
|
||||
|
||||
Console.WriteLine(mdl.ShapeCount);
|
||||
Console.WriteLine(mdl.MaterialCount);
|
||||
Console.WriteLine(mdl.VertexBufferCount);
|
||||
Console.WriteLine(mdl.Skeleton.Bones.Count);
|
||||
|
||||
BfresSwitch.ReadModel(this, mdl);
|
||||
}
|
||||
IsEdited = true;
|
||||
|
@ -99,13 +99,11 @@ namespace Bfres.Structs
|
||||
}
|
||||
}
|
||||
|
||||
public FSCN(ResU.SceneAnim scn) { LoadAnim(scn); }
|
||||
public FSCN(SceneAnim scn) { LoadAnim(scn); }
|
||||
public FSCN(ResU.SceneAnim scn) { Initialize(); LoadAnim(scn); }
|
||||
public FSCN(SceneAnim scn) { Initialize(); LoadAnim(scn); }
|
||||
|
||||
private void LoadAnim(ResU.SceneAnim scn)
|
||||
{
|
||||
Initialize();
|
||||
|
||||
Text = scn.Name;
|
||||
|
||||
SceneAnimU = scn;
|
||||
@ -160,8 +158,20 @@ namespace Bfres.Structs
|
||||
public CameraAnim CameraAnim;
|
||||
public ResU.CameraAnim CameraAnimU;
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
CanRename = true;
|
||||
CanReplace = true;
|
||||
CanExport = true;
|
||||
CanDelete = true;
|
||||
|
||||
ContextMenuStrip = new ContextMenuStrip();
|
||||
}
|
||||
|
||||
public void LoadAnim(CameraAnim anim)
|
||||
{
|
||||
Initialize();
|
||||
|
||||
CameraAnim = anim;
|
||||
|
||||
Text = anim.Name;
|
||||
@ -193,6 +203,8 @@ namespace Bfres.Structs
|
||||
|
||||
public void LoadAnim(ResU.CameraAnim anim)
|
||||
{
|
||||
Initialize();
|
||||
|
||||
CameraAnimU = anim;
|
||||
|
||||
Text = anim.Name;
|
||||
@ -233,12 +245,24 @@ namespace Bfres.Structs
|
||||
|
||||
public class BfresLightAnim : LightAnimation
|
||||
{
|
||||
public void Initialize()
|
||||
{
|
||||
CanRename = true;
|
||||
CanReplace = true;
|
||||
CanExport = true;
|
||||
CanDelete = true;
|
||||
|
||||
ContextMenuStrip = new ContextMenuStrip();
|
||||
}
|
||||
|
||||
public void LoadAnim(LightAnim anim)
|
||||
{
|
||||
Initialize();
|
||||
Text = anim.Name;
|
||||
}
|
||||
public void LoadAnim(ResU.LightAnim anim)
|
||||
{
|
||||
Initialize();
|
||||
Text = anim.Name;
|
||||
}
|
||||
|
||||
@ -254,12 +278,24 @@ namespace Bfres.Structs
|
||||
|
||||
public class BfresFogAnim : FogAnimation
|
||||
{
|
||||
public void Initialize()
|
||||
{
|
||||
CanRename = true;
|
||||
CanReplace = true;
|
||||
CanExport = true;
|
||||
CanDelete = true;
|
||||
|
||||
ContextMenuStrip = new ContextMenuStrip();
|
||||
}
|
||||
|
||||
public void LoadAnim(FogAnim anim)
|
||||
{
|
||||
Initialize();
|
||||
Text = anim.Name;
|
||||
}
|
||||
public void LoadAnim(ResU.FogAnim anim)
|
||||
{
|
||||
Initialize();
|
||||
Text = anim.Name;
|
||||
}
|
||||
|
||||
|
@ -16,9 +16,19 @@ namespace Bfres.Structs
|
||||
public ResU.VisibilityAnim VisibilityAnimU;
|
||||
|
||||
public FVIS()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
ImageKey = "visibilityAnim";
|
||||
SelectedImageKey = "visibilityAnim";
|
||||
|
||||
CanRename = true;
|
||||
CanReplace = true;
|
||||
CanExport = true;
|
||||
CanDelete = true;
|
||||
}
|
||||
|
||||
public ResFile GetResFile() {
|
||||
@ -144,8 +154,8 @@ namespace Bfres.Structs
|
||||
}
|
||||
}
|
||||
|
||||
public FVIS(ResU.VisibilityAnim anim) { LoadAnim(anim); }
|
||||
public FVIS(VisibilityAnim anim) { LoadAnim(anim); }
|
||||
public FVIS(ResU.VisibilityAnim anim) { Initialize(); LoadAnim(anim); }
|
||||
public FVIS(VisibilityAnim anim) { Initialize(); LoadAnim(anim); }
|
||||
|
||||
private void LoadAnim(ResU.VisibilityAnim vis)
|
||||
{
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user