More 0.9 bfres save fixes

This commit is contained in:
KillzXGaming 2019-06-29 19:12:49 -04:00
parent 20b248e1ea
commit 74cc67c055
7 changed files with 6 additions and 3 deletions

Binary file not shown.

View file

@ -181,7 +181,6 @@ namespace FirstPlugin
public PropertieGridData prop;
public BntxFile BinaryTexFile;
public string FileNameText;
public bool CanReplace;
public bool AllGLInitialized
@ -203,7 +202,7 @@ namespace FirstPlugin
IFileInfo.UseEditMenu = true;
CanSave = true;
FileNameText = FileName;
Text = FileName;
if (!IsLoadingArray)
LoadBNTXArray(ContainerArray, stream, this);
@ -446,7 +445,11 @@ namespace FirstPlugin
}
editor.Text = Text;
editor.Dock = DockStyle.Fill;
editor.LoadProperty(BinaryTexFile, OnPropertyChanged);
if (ContainerArray.Count > 0)
editor.LoadProperty(ContainerArray[0].BinaryTexFile, OnPropertyChanged);
else
editor.LoadProperty(BinaryTexFile, OnPropertyChanged);
}
public void OnPropertyChanged(){ Text = BinaryTexFile.Name; }