Ejemplo n.º 1
0
 public void Load(System.IO.Stream stream)
 {
     CanSave = true;
     beaFile = new BezelEngineArchive(stream);
     foreach (var file in beaFile.FileList.Values)
     {
         files.Add(SetupFileEntry(file));
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public void Reset()
 {
     if (scneEditor != null)
     {
         scneEditor.Dispose();
     }
     scneEditor = null;
     beaFile    = null;
     panel1.Controls.Clear();
     GC.Collect();
 }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
        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();
        }
Ejemplo n.º 6
0
        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;
        }
Ejemplo n.º 7
0
        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;
        }