Ejemplo n.º 1
0
        private void inspectorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InspectorForm Inspector = new InspectorForm();

            Inspector.MdiParent   = this;
            Inspector.WindowState = FormWindowState.Maximized;
            Inspector.Show(dockPanel1, DockState.Document);
        }
Ejemplo n.º 2
0
        private void GameEngine_Form_Load(object sender, EventArgs e)
        {
            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project");
            }

            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project\\Scenes"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project\\Scenes");
            }

            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project\\Shaders"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project\\Shaders");
            }

            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project\\Material"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project\\Material");
            }

            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project\\Cubemap(Skybox)"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project\\Cubemap(Skybox)");
            }

            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project\\Animation"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project\\Animation");
            }

            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project\\Animator"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project\\Animator");
            }

            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project\\Prefabs"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project\\Prefabs");
            }

            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project\\Procedural Skybox"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project\\Procedural Skybox");
            }

            if (!Directory.Exists(Environment.CurrentDirectory + "\\Project\\Files In Project\\Scripts"))
            {
                Directory.CreateDirectory(Environment.CurrentDirectory + "\\Project\\Files In Project\\Scripts");
            }

            this.MaximizeBox     = true;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
            this.MinimumSize     = new System.Drawing.Size(900, 550);

            IsMdiContainer = true;

            InspectorForm Inspector = new InspectorForm();

            Inspector.MdiParent   = this;
            Inspector.WindowState = FormWindowState.Maximized;
            Inspector.Show(dockPanel1, DockState.Document);

            gameModeToolStripMenuItem.Checked   = true;
            switchTo3DToolStripMenuItem.Checked = true;
            showGridToolStripMenuItem.Checked   = true;

            if (SceneButton)
            {
                EditorWindowToolStripMenuItem.Enabled = true;
                newWindowToolStripButton.Enabled      = true;
            }
            else if (!SceneButton)
            {
                EditorWindowToolStripMenuItem.Enabled = false;
                newWindowToolStripButton.Enabled      = false;
            }
        }