public EntityViewWindow(Utilities.EditorWrapper wrapper) { InitializeComponent(); this.wrapper = wrapper; this.Size = Settings.Default.EntityViewSize; //Forms.EntityFlowContainerObjects.AddComponentEntry addComponentEntry1 = new Forms.EntityFlowContainerObjects.AddComponentEntry(); //addComponentEntry1.Width = Settings.Default.EntityFlowContWidth; //entityComponents.Controls.Add(addComponentEntry1); }
public FileRegisterWindow(Utilities.EditorWrapper wrapper) { InitializeComponent(); if (Settings.Default.EditorMainSize != null) { this.Size = Settings.Default.FileRegSize; } UpdateUnused.Start(); this.wrapper = wrapper; wrapper.ChangeEvent += new Utilities.EditorChangeEventHandler(Changed); ReadFiles(); }
public SceneViewWindow(Utilities.EditorWrapper wrapper) { InitializeComponent(); this.wrapper = wrapper; wrapper.ChangeEvent += new Utilities.EditorChangeEventHandler(Changed); wrapper.SavedEvent += new Utilities.EditorSavedEventHandler(Saved); if (Settings.Default.EditorMainSize != null) { this.Size = Settings.Default.SceneViewSize; } splitContainer.SplitterDistance = Settings.Default.SceneViewSplitDistance; FixNodeHighlight(scenesTree); FixNodeHighlight(sceneTree); List <LoaderFile> scenes; var result = wrapper.binaryLoader.GetFilesOfType("Scene", out scenes); if (result.IsError()) { result.ShowError(MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { List <LoaderFile> cleared = new List <LoaderFile>(scenes); foreach (LoaderFile file in scenes) { var inscene = wrapper.managers.sceneManager.GetChildResourcesOfSceneResource(file.guid); foreach (UInt32 guid in inscene) { foreach (LoaderFile file2 in cleared) { if (file2.guid == guid) { cleared.Remove(file2); break; } } } } foreach (LoaderFile file in cleared) { var node = new TreeNode(); CreateSceneNode(file, node, scenes); scenesTree.Nodes.Add(node); } } }
public ResourceHandlerWindow(Utilities.EditorWrapper wrapper) { InitializeComponent(); this.Size = Settings.Default.RHWSize; this.wrapper = wrapper; var files = new List <LoaderFile>(); wrapper.binaryLoader.GetFilesOfType("Passthrough", out files); foreach (LoaderFile f in files) { var nt = new Type(f.guid_str, true); handledTypes.Items.Add(nt); } }
public EditorMainWindow() { InitializeComponent(); wrapper = new Utilities.EditorWrapper(); if (Settings.Default.EditorMainSize != null) { this.Size = Settings.Default.EditorMainSize; } wrapper.fileRegisterWindow.MdiParent = this; wrapper.fileRegisterWindow.FormClosing += new System.Windows.Forms.FormClosingEventHandler(fileRegisterWindowClosing); wrapper.entityViewWindow.MdiParent = this; wrapper.entityViewWindow.FormClosing += new System.Windows.Forms.FormClosingEventHandler(EntityViewWindowClosing); wrapper.sceneViewWindow.MdiParent = this; wrapper.sceneViewWindow.FormClosing += new System.Windows.Forms.FormClosingEventHandler(sceneViewWindowClosing); wrapper.renderWindow.MdiParent = this; wrapper.renderWindow.FormClosing += new System.Windows.Forms.FormClosingEventHandler(renderWindowClosing); wrapper.resourceHandlerWindow.MdiParent = this; wrapper.resourceHandlerWindow.FormClosing += new System.Windows.Forms.FormClosingEventHandler(rhWindowClosing); wrapper.resourceScriptWindow.MdiParent = this; wrapper.resourceScriptWindow.FormClosing += new System.Windows.Forms.FormClosingEventHandler(rScriptWClosing); toolStripItem_FileReg.Checked = Settings.Default.FileRegVisible; toolStripItem_SceneView.Checked = Settings.Default.SceneViewVisible; toolStripItem_EntityView.Checked = Settings.Default.EntityViewVisible; renderWindowToolStripMenuItem.Checked = Settings.Default.RenderWindowVis; resourceHandlerToolStripMenuItem.Checked = Settings.Default.RHWVis; rScriptW.Checked = Settings.Default.RScriptVis; }
public ResourceScriptWindow(Utilities.EditorWrapper wrapper) { InitializeComponent(); this.Size = Settings.Default.RScriptSize; this.wrapper = wrapper; }