Ejemplo n.º 1
0
 public MeshViewer(MeshController mesh, ref Form pform)
 {
     //initialize variables here
     this.mesh = mesh;
     zFar      = 50F;
     file      = mesh.MainFile;
     lighting  = true;
     wire      = false;
     Tag       = pform;
     InitVBO(1, true);
     pform.Text = "Loading mesh...";
     LoadMesh();
     pform.Text = "Initializing...";
 }
 public SectionController(MainForm topform, TwinsSection item, FileController targetFile) : base(topform)
 {
     MainFile = targetFile;
     Data     = item;
     AddMenu("Add item from raw data file", Menu_AddFromFile);
     if (item.Type != SectionType.Texture && item.Type != SectionType.TextureX &&
         item.Type != SectionType.Material && item.Type != SectionType.Mesh &&
         item.Type != SectionType.MeshX && item.Type != SectionType.Model &&
         item.Type != SectionType.ArmatureModel && item.Type != SectionType.ActorModel && item.Type != SectionType.ArmatureModelX &&
         item.Type != SectionType.StaticModel && item.Type != SectionType.SpecialModel &&
         item.Type != SectionType.Skydome && !(item is TwinsFile))
     {
         AddMenu("Re-order by ID (asc.)", Menu_ReOrderByID_Asc);
         if (item.Type == SectionType.ObjectInstance ||
             item.Type == SectionType.AIPosition ||
             item.Type == SectionType.AIPath ||
             item.Type == SectionType.Position ||
             item.Type == SectionType.Path ||
             item.Type == SectionType.Trigger)
         {
             AddMenu("Re-ID by order", Menu_ReIDByOrder);
             AddMenu("Open editor", Menu_OpenEditor);
         }
         else if (item.Type == SectionType.Instance)
         {
             AddMenu("Clear instance section", Menu_ClearInstanceSection);
             AddMenu("Fill instance section", Menu_FillInstanceSection);
         }
         else if (item.Type >= SectionType.SE && item.Type <= SectionType.SE_Jpn)
         {
             AddMenu("Extract extra data", Menu_ExtractExtraData);
         }
         else if (item.Type == SectionType.Script || item.Type == SectionType.ScriptDemo || item.Type == SectionType.ScriptX)
         {
             AddMenu("Open editor", Menu_OpenEditor);
         }
     }
     else if (item is TwinsFile f && f.Type == TwinsFile.FileType.RM2)
     {
         AddMenu("Add remaining instance sections", Menu_FileFillInstanceSections);
     }
Ejemplo n.º 3
0
 public CodeModelController(MainForm topform, CodeModel item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
 }
Ejemplo n.º 4
0
 public AnimationController(MainForm topform, Animation item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     //AddMenu("Open editor", Menu_OpenEditor);
 }
Ejemplo n.º 5
0
 public AIPathController(MainForm topform, AIPath item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
 }
Ejemplo n.º 6
0
 public TriggerController(MainForm topform, Trigger item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     AddMenu("Open editor", Menu_OpenEditor);
 }
Ejemplo n.º 7
0
 public InstanceController(MainForm topform, Instance item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     AddMenu("Open editor", Menu_OpenEditor);
 }
Ejemplo n.º 8
0
 public SpecialModelController(MainForm topform, SpecialModel item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     AddMenu("Open model viewer", Menu_OpenViewer);
 }
 public SkydomeController(MainForm topform, Skydome item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     AddMenu("Open skydome viewer", Menu_OpenViewer);
 }
Ejemplo n.º 10
0
 public ModelViewer(ModelController model, ref Form pform) : base(model.MainFile.MeshSection.GetItem <MeshController>(model.Data.MeshID), ref pform)
 {
     //initialize variables here
     this.model = model;
     file       = model.MainFile;
 }
 public ParticleDataController(MainForm topform, ParticleData item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     AddMenu("Open editor", Menu_OpenEditor);
 }
Ejemplo n.º 12
0
 public ActorModelController(MainForm topform, ActorModel item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     //AddMenu("Export mesh to PLY", Menu_ExportPLY);
     //AddMenu("Open model viewer", Menu_OpenViewer);
 }
Ejemplo n.º 13
0
 public CollisionSurfaceController(MainForm topform, CollisionSurface item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
 }
Ejemplo n.º 14
0
 public ChunkLinksController(MainForm topform, ChunkLinks item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     AddMenu("Open editor", Menu_OpenEditor);
 }
Ejemplo n.º 15
0
 public GraphicsInfoController(MainForm topform, GraphicsInfo item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
 }
 public DynamicSceneryDataController(MainForm topform, DynamicSceneryData item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
 }
Ejemplo n.º 17
0
 public ScriptController(MainForm topform, Script item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     //AddMenu("Open editor", Menu_OpenEditor);
 }
Ejemplo n.º 18
0
 public MaterialController(MainForm topform, Material item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
 }
Ejemplo n.º 19
0
 public ObjectController(MainForm topform, GameObject item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
     AddMenu("Open editor", Menu_OpenEditor);
 }
 public ArmatureModelXController(MainForm topform, ArmatureModelX item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
 }
 public InstaceTemplateDemoController(MainForm topform, InstanceTemplateDemo item, FileController targetFile) : base(topform, item, targetFile)
 {
     Data = item;
 }