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); }
public CodeModelController(MainForm topform, CodeModel item, FileController targetFile) : base(topform, item, targetFile) { Data = item; }
public AnimationController(MainForm topform, Animation item, FileController targetFile) : base(topform, item, targetFile) { Data = item; //AddMenu("Open editor", Menu_OpenEditor); }
public AIPathController(MainForm topform, AIPath item, FileController targetFile) : base(topform, item, targetFile) { Data = item; }
public TriggerController(MainForm topform, Trigger item, FileController targetFile) : base(topform, item, targetFile) { Data = item; AddMenu("Open editor", Menu_OpenEditor); }
public InstanceController(MainForm topform, Instance item, FileController targetFile) : base(topform, item, targetFile) { Data = item; AddMenu("Open editor", Menu_OpenEditor); }
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); }
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); }
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); }
public CollisionSurfaceController(MainForm topform, CollisionSurface item, FileController targetFile) : base(topform, item, targetFile) { Data = item; }
public ChunkLinksController(MainForm topform, ChunkLinks item, FileController targetFile) : base(topform, item, targetFile) { Data = item; AddMenu("Open editor", Menu_OpenEditor); }
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; }
public ScriptController(MainForm topform, Script item, FileController targetFile) : base(topform, item, targetFile) { Data = item; //AddMenu("Open editor", Menu_OpenEditor); }
public MaterialController(MainForm topform, Material item, FileController targetFile) : base(topform, item, targetFile) { Data = item; }
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; }