Added RPF Explorer .yed, .yfd, .yld generic support

This commit is contained in:
dexy
2019-11-22 00:34:27 +11:00
Unverified
parent 4e64c324cf
commit 0f7f35d28b
13 changed files with 3149 additions and 1 deletions
+58
View File
@@ -0,0 +1,58 @@
using CodeWalker.GameFiles;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CodeWalker.Forms
{
public partial class GenericForm : Form
{
private string fileName;
public string FileName
{
get { return fileName; }
set
{
fileName = value;
UpdateFormTitle();
}
}
public string FilePath { get; set; }
ExploreForm ExploreForm;
object CurrentFile;
public GenericForm(ExploreForm exploreForm)
{
ExploreForm = exploreForm;
InitializeComponent();
}
public void LoadFile(object file, RpfFileEntry fileEntry)
{
CurrentFile = file;
DetailsPropertyGrid.SelectedObject = file;
fileName = fileEntry?.Name;
UpdateFormTitle();
}
private void UpdateFormTitle()
{
Text = fileName + " - File Inspector - CodeWalker by dexyfex";
}
}
}