Beispiel #1
0
 public SoundEntryController(EntryChunkController entrychunkcontroller, SoundEntry soundentry) : base(entrychunkcontroller, soundentry)
 {
     this.soundentry       = soundentry;
     Node.Text             = string.Format("Sound Entry ({0})", soundentry.EIDString);
     Node.ImageKey         = "soundentry";
     Node.SelectedImageKey = "soundentry";
 }
Beispiel #2
0
 public WavebankEntryController(EntryChunkController entrychunkcontroller, WavebankEntry wavebankentry) : base(entrychunkcontroller, wavebankentry)
 {
     this.wavebankentry    = wavebankentry;
     Node.Text             = string.Format("Wavebank Entry ({0})", wavebankentry.EIDString);
     Node.ImageKey         = "wavebankentry";
     Node.SelectedImageKey = "wavebankentry";
 }
Beispiel #3
0
 public OldT17EntryController(EntryChunkController entrychunkcontroller, OldT17Entry oldt17entry) : base(entrychunkcontroller, oldt17entry)
 {
     this.oldt17entry      = oldt17entry;
     Node.Text             = string.Format("Old T17 Entry ({0})", oldt17entry.EIDString);
     Node.ImageKey         = "oldt17entry";
     Node.SelectedImageKey = "oldt17entry";
 }
Beispiel #4
0
 public SceneryEntryController(EntryChunkController entrychunkcontroller, SceneryEntry sceneryentry) : base(entrychunkcontroller, sceneryentry)
 {
     this.sceneryentry     = sceneryentry;
     Node.Text             = string.Format("Scenery Entry ({0})", sceneryentry.EIDString);
     Node.ImageKey         = "sceneryentry";
     Node.SelectedImageKey = "sceneryentry";
 }
Beispiel #5
0
 public DemoEntryController(EntryChunkController entrychunkcontroller, DemoEntry demoentry) : base(entrychunkcontroller, demoentry)
 {
     this.demoentry        = demoentry;
     Node.Text             = string.Format("Demo Entry ({0})", demoentry.EIDString);
     Node.ImageKey         = "demoentry";
     Node.SelectedImageKey = "demoentry";
 }
Beispiel #6
0
 public ModelEntryController(EntryChunkController entrychunkcontroller, ModelEntry modelentry) : base(entrychunkcontroller, modelentry)
 {
     this.modelentry       = modelentry;
     Node.Text             = string.Format("Model Entry ({0})", modelentry.EIDString);
     Node.ImageKey         = "modelentry";
     Node.SelectedImageKey = "modelentry";
 }
Beispiel #7
0
 public SpeechEntryController(EntryChunkController entrychunkcontroller, SpeechEntry speechentry) : base(entrychunkcontroller, speechentry)
 {
     this.speechentry      = speechentry;
     Node.Text             = string.Format("Speech Entry ({0})", speechentry.EIDString);
     Node.ImageKey         = "speechentry";
     Node.SelectedImageKey = "speechentry";
 }
Beispiel #8
0
 public MusicEntryController(EntryChunkController entrychunkcontroller, MusicEntry musicentry) : base(entrychunkcontroller, musicentry)
 {
     this.musicentry       = musicentry;
     Node.Text             = string.Format("Music Entry ({0})", musicentry.EIDString);
     Node.ImageKey         = "musicentry";
     Node.SelectedImageKey = "musicentry";
     if (musicentry.VH != null)
     {
         AddNode(new VHController(this, musicentry.VH));
     }
     foreach (SEQ seq in musicentry.SEP.SEQs)
     {
         AddNode(new SEQController(this, seq));
     }
     AddMenuSeparator();
     AddMenu("Import VH", Menu_Import_VH);
     AddMenu("Import SEQ", Menu_Import_SEQ);
     AddMenuSeparator();
     AddMenu("Export SEP", Menu_Export_SEP);
     AddMenuSeparator();
     AddMenu("Export Linked VH", Menu_Export_Linked_VH);
     AddMenu("Export Linked VB", Menu_Export_Linked_VB);
     AddMenu("Export Linked VAB", Menu_Export_Linked_VAB);
     AddMenu("Export Linked VAB as DLS", Menu_Export_Linked_VAB_DLS);
 }
 public MusicEntryController(EntryChunkController entrychunkcontroller,MusicEntry musicentry)
     : base(entrychunkcontroller,musicentry)
 {
     this.musicentry = musicentry;
     Node.Text = string.Format("Music Entry ({0})",musicentry.EIDString);
     Node.ImageKey = "musicentry";
     Node.SelectedImageKey = "musicentry";
     if (musicentry.VH != null)
     {
         AddNode(new VHController(this,musicentry.VH));
     }
     foreach (SEQ seq in musicentry.SEP.SEQs)
     {
         AddNode(new SEQController(this,seq));
     }
     AddMenuSeparator();
     AddMenu("Import VH",Menu_Import_VH);
     AddMenu("Import SEQ",Menu_Import_SEQ);
     AddMenuSeparator();
     AddMenu("Export SEP",Menu_Export_SEP);
     AddMenuSeparator();
     AddMenu("Export Linked VH",Menu_Export_Linked_VH);
     AddMenu("Export Linked VB",Menu_Export_Linked_VB);
     AddMenu("Export Linked VAB",Menu_Export_Linked_VAB);
     AddMenu("Export Linked VAB as DLS",Menu_Export_Linked_VAB_DLS);
 }
Beispiel #10
0
 public T21EntryController(EntryChunkController entrychunkcontroller, T21Entry t21entry) : base(entrychunkcontroller, t21entry)
 {
     this.t21entry         = t21entry;
     Node.Text             = string.Format("T21 Entry ({0})", t21entry.EIDString);
     Node.ImageKey         = "t21entry";
     Node.SelectedImageKey = "t21entry";
 }
 public SceneryEntryController(EntryChunkController entrychunkcontroller,SceneryEntry sceneryentry)
     : base(entrychunkcontroller,sceneryentry)
 {
     this.sceneryentry = sceneryentry;
     Node.Text = string.Format("Scenery Entry ({0})",sceneryentry.EIDString);
     Node.ImageKey = "sceneryentry";
     Node.SelectedImageKey = "sceneryentry";
 }
 public SoundEntryController(EntryChunkController entrychunkcontroller,SoundEntry soundentry)
     : base(entrychunkcontroller,soundentry)
 {
     this.soundentry = soundentry;
     Node.Text = string.Format("Sound Entry ({0})",soundentry.EIDString);
     Node.ImageKey = "soundentry";
     Node.SelectedImageKey = "soundentry";
 }
Beispiel #13
0
 public MysteryMultiItemEntryController(EntryChunkController entrychunkcontroller, MysteryMultiItemEntry mysteryentry) : base(entrychunkcontroller, mysteryentry)
 {
     this.mysteryentry = mysteryentry;
     foreach (byte[] item in mysteryentry.Items)
     {
         AddNode(new ItemController(this, item));
     }
 }
 public WavebankEntryController(EntryChunkController entrychunkcontroller,WavebankEntry wavebankentry)
     : base(entrychunkcontroller,wavebankentry)
 {
     this.wavebankentry = wavebankentry;
     Node.Text = string.Format("Wavebank Entry ({0})",wavebankentry.EIDString);
     Node.ImageKey = "wavebankentry";
     Node.SelectedImageKey = "wavebankentry";
 }
 public DemoEntryController(EntryChunkController entrychunkcontroller,DemoEntry demoentry)
     : base(entrychunkcontroller,demoentry)
 {
     this.demoentry = demoentry;
     Node.Text = string.Format("Demo Entry ({0})",demoentry.EIDString);
     Node.ImageKey = "demoentry";
     Node.SelectedImageKey = "demoentry";
 }
 public ModelEntryController(EntryChunkController entrychunkcontroller,ModelEntry modelentry)
     : base(entrychunkcontroller,modelentry)
 {
     this.modelentry = modelentry;
     Node.Text = string.Format("Model Entry ({0})",modelentry.EIDString);
     Node.ImageKey = "modelentry";
     Node.SelectedImageKey = "modelentry";
 }
 public OldT15EntryController(EntryChunkController entrychunkcontroller,OldT15Entry oldt15entry)
     : base(entrychunkcontroller,oldt15entry)
 {
     this.oldt15entry = oldt15entry;
     Node.Text = string.Format("Old T15 Entry ({0})",oldt15entry.EIDString);
     Node.ImageKey = "oldt15entry";
     Node.SelectedImageKey = "oldt15entry";
 }
Beispiel #18
0
 public T20EntryController(EntryChunkController entrychunkcontroller,T20Entry t20entry)
     : base(entrychunkcontroller,t20entry)
 {
     this.t20entry = t20entry;
     Node.Text = string.Format("T20 Entry ({0})",t20entry.EIDString);
     Node.ImageKey = "t20entry";
     Node.SelectedImageKey = "t20entry";
 }
Beispiel #19
0
 public UnprocessedEntryController(EntryChunkController entrychunkcontroller, UnprocessedEntry unprocessedentry) : base(entrychunkcontroller, unprocessedentry)
 {
     this.unprocessedentry = unprocessedentry;
     Node.Text             = string.Format("Unprocessed T{0} Entry ({1})", unprocessedentry.Type, unprocessedentry.EIDString);
     Node.ImageKey         = "unprocessedentry";
     Node.SelectedImageKey = "unprocessedentry";
     AddMenu("Process Entry", Menu_Process_Entry);
 }
 public SpeechEntryController(EntryChunkController entrychunkcontroller,SpeechEntry speechentry)
     : base(entrychunkcontroller,speechentry)
 {
     this.speechentry = speechentry;
     Node.Text = string.Format("Speech Entry ({0})",speechentry.EIDString);
     Node.ImageKey = "speechentry";
     Node.SelectedImageKey = "speechentry";
 }
 public UnprocessedEntryController(EntryChunkController entrychunkcontroller,UnprocessedEntry unprocessedentry)
     : base(entrychunkcontroller,unprocessedentry)
 {
     this.unprocessedentry = unprocessedentry;
     Node.Text = string.Format("Unprocessed T{0} Entry ({1})",unprocessedentry.Type,unprocessedentry.EIDString);
     Node.ImageKey = "unprocessedentry";
     Node.SelectedImageKey = "unprocessedentry";
     AddMenu("Process Entry",Menu_Process_Entry);
 }
 public MysteryMultiItemEntryController(EntryChunkController entrychunkcontroller,MysteryMultiItemEntry mysteryentry)
     : base(entrychunkcontroller,mysteryentry)
 {
     this.mysteryentry = mysteryentry;
     foreach (byte[] item in mysteryentry.Items)
     {
         AddNode(new ItemController(this,item));
     }
 }
Beispiel #23
0
 public EntryController(EntryChunkController entrychunkcontroller, Entry entry)
 {
     this.entrychunkcontroller = entrychunkcontroller;
     this.entry = entry;
     AddMenu("Delete Entry", Menu_Delete_Entry);
     if (!(this is UnprocessedEntryController))
     {
         AddMenu("Unprocess Entry", Menu_Unprocess_Entry);
     }
 }
Beispiel #24
0
 public T4EntryController(EntryChunkController entrychunkcontroller, T4Entry t4entry) : base(entrychunkcontroller, t4entry)
 {
     this.t4entry          = t4entry;
     Node.Text             = string.Format("T4 Entry ({0})", t4entry.EIDString);
     Node.ImageKey         = "t4entry";
     Node.SelectedImageKey = "t4entry";
     foreach (T4Item t4item in t4entry.T4Items)
     {
         AddNode(new T4ItemController(this, t4item));
     }
 }
Beispiel #25
0
 public OldAnimationEntryController(EntryChunkController entrychunkcontroller, OldAnimationEntry oldanimationentry) : base(entrychunkcontroller, oldanimationentry)
 {
     this.oldanimationentry = oldanimationentry;
     Node.Text             = string.Format("Old Animation Entry ({0})", oldanimationentry.EIDString);
     Node.ImageKey         = "oldanimationentry";
     Node.SelectedImageKey = "oldanimationentry";
     foreach (OldFrame frame in oldanimationentry.Frames)
     {
         AddNode(new OldFrameController(this, frame));
     }
 }
Beispiel #26
0
 public T4EntryController(EntryChunkController entrychunkcontroller,T4Entry t4entry)
     : base(entrychunkcontroller,t4entry)
 {
     this.t4entry = t4entry;
     Node.Text = string.Format("T4 Entry ({0})",t4entry.EIDString);
     Node.ImageKey = "t4entry";
     Node.SelectedImageKey = "t4entry";
     foreach (T4Item t4item in t4entry.T4Items)
     {
         AddNode(new T4ItemController(this,t4item));
     }
 }
Beispiel #27
0
 public EntityEntryController(EntryChunkController entrychunkcontroller, EntityEntry entityentry) : base(entrychunkcontroller, entityentry)
 {
     this.entityentry      = entityentry;
     Node.Text             = string.Format("Entity Entry ({0})", entityentry.EIDString);
     Node.ImageKey         = "entityentry";
     Node.SelectedImageKey = "entityentry";
     AddNode(new ItemController(null, entityentry.Unknown1));
     AddNode(new ItemController(null, entityentry.Unknown2));
     foreach (Entity entity in entityentry.Entities)
     {
         AddNode(new EntityController(this, entity));
     }
 }
 public EntityEntryController(EntryChunkController entrychunkcontroller,EntityEntry entityentry)
     : base(entrychunkcontroller,entityentry)
 {
     this.entityentry = entityentry;
     Node.Text = string.Format("Entity Entry ({0})",entityentry.EIDString);
     Node.ImageKey = "entityentry";
     Node.SelectedImageKey = "entityentry";
     AddNode(new ItemController(null,entityentry.Unknown1));
     AddNode(new ItemController(null,entityentry.Unknown2));
     foreach (Entity entity in entityentry.Entities)
     {
         AddNode(new EntityController(this,entity));
     }
 }
Beispiel #29
0
 public OldSceneryEntryController(EntryChunkController entrychunkcontroller, OldSceneryEntry oldsceneryentry) : base(entrychunkcontroller, oldsceneryentry)
 {
     this.oldsceneryentry  = oldsceneryentry;
     Node.Text             = string.Format("Old Scenery Entry ({0})", oldsceneryentry.EIDString);
     Node.ImageKey         = "oldsceneryentry";
     Node.SelectedImageKey = "oldsceneryentry";
     if (oldsceneryentry.ExtraData != null)
     {
         AddNode(new ItemController(null, oldsceneryentry.ExtraData));
     }
     AddMenuSeparator();
     AddMenu("Export as OBJ", Menu_Export_OBJ);
     AddMenu("Export as COLLADA", Menu_Export_COLLADA);
 }
 public OldSceneryEntryController(EntryChunkController entrychunkcontroller,OldSceneryEntry oldsceneryentry)
     : base(entrychunkcontroller,oldsceneryentry)
 {
     this.oldsceneryentry = oldsceneryentry;
     Node.Text = string.Format("Old Scenery Entry ({0})",oldsceneryentry.EIDString);
     Node.ImageKey = "oldsceneryentry";
     Node.SelectedImageKey = "oldsceneryentry";
     if (oldsceneryentry.ExtraData != null)
     {
         AddNode(new ItemController(null,oldsceneryentry.ExtraData));
     }
     AddMenuSeparator();
     AddMenu("Export as OBJ",Menu_Export_OBJ);
     AddMenu("Export as COLLADA",Menu_Export_COLLADA);
 }
Beispiel #31
0
 public override bool Move(Controller newcontroller, bool commit)
 {
     if (newcontroller is EntryChunkController)
     {
         if (commit)
         {
             entrychunkcontroller.EntryChunk.Entries.Remove(entry);
             Node.Remove();
             entrychunkcontroller = (EntryChunkController)newcontroller;
             entrychunkcontroller.EntryChunk.Entries.Add(entry);
             entrychunkcontroller.Node.Nodes.Add(Node);
         }
         return(true);
     }
     else
     {
         return(base.Move(newcontroller, commit));
     }
 }
Beispiel #32
0
 public OldMusicEntryController(EntryChunkController entrychunkcontroller, OldMusicEntry oldmusicentry) : base(entrychunkcontroller, oldmusicentry)
 {
     this.oldmusicentry    = oldmusicentry;
     Node.Text             = string.Format("Old Music Entry ({0})", oldmusicentry.EIDString);
     Node.ImageKey         = "oldmusicentry";
     Node.SelectedImageKey = "oldmusicentry";
     AddNode(new OldVHController(this, oldmusicentry.VH));
     foreach (SEQ seq in oldmusicentry.SEP.SEQs)
     {
         AddNode(new OldSEQController(this, seq));
     }
     AddMenuSeparator();
     AddMenu("Import SEQ", Menu_Import_SEQ);
     AddMenuSeparator();
     AddMenu("Export SEP", Menu_Export_SEP);
     AddMenuSeparator();
     AddMenu("Export Linked VB", Menu_Export_Linked_VB);
     AddMenu("Export Linked VAB", Menu_Export_Linked_VAB);
     AddMenu("Export Linked VAB as DLS", Menu_Export_Linked_VAB_DLS);
 }
 public OldMusicEntryController(EntryChunkController entrychunkcontroller,OldMusicEntry oldmusicentry)
     : base(entrychunkcontroller,oldmusicentry)
 {
     this.oldmusicentry = oldmusicentry;
     Node.Text = string.Format("Old Music Entry ({0})",oldmusicentry.EIDString);
     Node.ImageKey = "oldmusicentry";
     Node.SelectedImageKey = "oldmusicentry";
     AddNode(new OldVHController(this,oldmusicentry.VH));
     foreach (SEQ seq in oldmusicentry.SEP.SEQs)
     {
         AddNode(new OldSEQController(this,seq));
     }
     AddMenuSeparator();
     AddMenu("Import SEQ",Menu_Import_SEQ);
     AddMenuSeparator();
     AddMenu("Export SEP",Menu_Export_SEP);
     AddMenuSeparator();
     AddMenu("Export Linked VB",Menu_Export_Linked_VB);
     AddMenu("Export Linked VAB",Menu_Export_Linked_VAB);
     AddMenu("Export Linked VAB as DLS",Menu_Export_Linked_VAB_DLS);
 }
Beispiel #34
0
        private void Menu_Process_Entry()
        {
            Entry processedentry;

            try
            {
                processedentry = unprocessedentry.Process(EntryChunkController.NSFController.GameVersion);
            }
            catch (LoadAbortedException)
            {
                return;
            }
            int index = EntryChunkController.EntryChunk.Entries.IndexOf(unprocessedentry);

            EntryChunkController.EntryChunk.Entries[index] = processedentry;
            EntryController processedentrycontroller = EntryChunkController.CreateEntryController(processedentry);

            EntryChunkController.InsertNode(index, processedentrycontroller);
            if (Node.IsSelected)
            {
                Node.TreeView.SelectedNode = processedentrycontroller.Node;
            }
            Dispose();
        }
Beispiel #35
0
 public MysteryUniItemEntryController(EntryChunkController entrychunkcontroller, MysteryUniItemEntry mysteryentry) : base(entrychunkcontroller, mysteryentry)
 {
     this.mysteryentry = mysteryentry;
 }
 public MysteryUniItemEntryController(EntryChunkController entrychunkcontroller,MysteryUniItemEntry mysteryentry)
     : base(entrychunkcontroller,mysteryentry)
 {
     this.mysteryentry = mysteryentry;
 }