예제 #1
0
 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);
 }
예제 #2
0
        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();
        }
예제 #3
0
        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);
                }
            }
        }
예제 #4
0
        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);
            }
        }
예제 #5
0
        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;
        }
예제 #6
0
 public ResourceScriptWindow(Utilities.EditorWrapper wrapper)
 {
     InitializeComponent();
     this.Size    = Settings.Default.RScriptSize;
     this.wrapper = wrapper;
 }