public void Load(System.IO.Stream stream) { CanSave = true; beaFile = new BezelEngineArchive(stream); foreach (var file in beaFile.FileList.Values) { files.Add(SetupFileEntry(file)); } }
public void Load() { IsActive = true; CanSave = true; beaFile = new BezelEngineArchive(new MemoryStream(Data)); EditorRoot = new RootNode(Path.GetFileName(FileName), this); TreeNode root = EditorRoot; FillTreeNodes(root, beaFile.FileList); }
public void Reset() { if (scneEditor != null) { scneEditor.Dispose(); } scneEditor = null; beaFile = null; panel1.Controls.Clear(); GC.Collect(); }
public void LoadFile(BezelEngineArchive beaFile, bool IsCompressed) { treeView1.Nodes.Clear(); hexBox1.ByteProvider = null; Compressed = IsCompressed; FolderEntry root = new FolderEntry("Root"); FillTreeNodes(root, beaFile.FileList); treeView1.Nodes.Add(root); treeView1.Sort(); }
public void LoadBezelEngineArchive(byte[] data, string FileName = "", bool Compressed = false) { beaFile = new BezelEngineArchive(new MemoryStream(data)); scneEditor = new SCNE_Editor(); scneEditor.Dock = DockStyle.Fill; scneEditor.LoadFile(beaFile, Compressed); scneEditor.Text = Path.GetFileName(FileName); panel1.Controls.Add(scneEditor); BtnExtract.Visible = true; BtnRePack.Visible = true; scneEditor.Show(); }
public void Load(System.IO.Stream stream) { Text = FileName; CanSave = true; beaFile = new BezelEngineArchive(stream); FillTreeNodes(this, beaFile.FileList); ContextMenuStrip = new STContextMenuStrip(); ContextMenuStrip.Items.Add(new STToolStipMenuItem("Save", null, Save, Keys.Control | Keys.S)); ContextMenuStrip.Items.Add(new STToolStripSeparator()); ContextMenuStrip.Items.Add(new STToolStipMenuItem("Preview Window", null, PreviewWindow, Keys.Control | Keys.P)); ContextMenuStrip.Items.Add(new STToolStripSeparator()); ContextMenuStrip.Items.Add(new STToolStipMenuItem("Export All", null, ExportAll, Keys.Control | Keys.E)); CanDelete = true; }
public void Load(System.IO.Stream stream) { Text = FileName; CanSave = true; beaFile = new BezelEngineArchive(stream); FillTreeNodes(this, beaFile.FileList); ContextMenu = new ContextMenu(); MenuItem save = new MenuItem("Save"); ContextMenu.MenuItems.Add(save); save.Click += Save; MenuItem previewFiles = new MenuItem("Preview Window"); ContextMenu.MenuItems.Add(previewFiles); previewFiles.Click += PreviewWindow; MenuItem exportAll = new MenuItem("Export All"); ContextMenu.MenuItems.Add(exportAll); exportAll.Click += ExportAll; }