Beispiel #1
0
        public EntityEditorForm()
        {
            InitializeComponent();

            this.Text = "Entity Editor v.1.0";

            openEntityFile.InitialDirectory = myCurrentEntityFolderPath;
            DL_Debug.GetInstance.Init("EntityEditorLog");

            myDataFolderPath = StringUtilities.GetDataFolderPath(myCurrentEntityFolderPath);

            if (myCurrentEntityFolderPath == "")
            {
                myCurrentEntityFolderPath = Directory.GetCurrentDirectory();
                Properties.Settings.Default.DefaultEntityFolderPath = myCurrentEntityFolderPath;
                Properties.Settings.Default.Save();
            }

            Point panelLocation = new Point(10, 10);
            Size  panelSize     = new Size(500, 800);

            myAddComponentPanel             = new Panels.AddComponentPanel(panelLocation, panelSize, this);
            myAIComponentPanel              = new Panels.AIComponentPanel(panelLocation, panelSize, this);
            myBulletComponentPanel          = new Panels.BulletComponentPanel(panelLocation, panelSize, this);
            myCollisionComponentPanel       = new Panels.CollisionComponentPanel(panelLocation, panelSize, this);
            myGraphicsComponentPanel        = new Panels.GraphicsComponentPanel(panelLocation, panelSize, this);
            myHealthComponentPanel          = new Panels.HealthComponentPanel(panelLocation, panelSize, this);
            myShootingComponentPanel        = new Panels.ShootingComponentPanel(panelLocation, panelSize, this);
            mySoundComponentPanel           = new Panels.SoundComponentPanel(panelLocation, panelSize, this);
            myStreakComponentPanel          = new Panels.StreakEmitterComponentPanel(panelLocation, panelSize, this);
            myParticleEmitterComponentPanel = new Panels.ParticleEmitterComponentPanel(panelLocation, panelSize, this);
            myPhysicsComponentPanel         = new Panels.PhysicsComponentPanel(panelLocation, panelSize, this);
            myPowerUpComponentPanel         = new Panels.PowerUpComponentPanel(panelLocation, panelSize, this);
            myRenameEntityPanel             = new Panels.RenamePanel(panelLocation, panelSize, this);

            PropertyPanel.Controls.Add(myAddComponentPanel);
            PropertyPanel.Controls.Add(myAIComponentPanel);
            PropertyPanel.Controls.Add(myBulletComponentPanel);
            PropertyPanel.Controls.Add(myCollisionComponentPanel);
            PropertyPanel.Controls.Add(myGraphicsComponentPanel);
            PropertyPanel.Controls.Add(myHealthComponentPanel);
            PropertyPanel.Controls.Add(myShootingComponentPanel);
            PropertyPanel.Controls.Add(mySoundComponentPanel);
            PropertyPanel.Controls.Add(myStreakComponentPanel);
            PropertyPanel.Controls.Add(myParticleEmitterComponentPanel);
            PropertyPanel.Controls.Add(myPhysicsComponentPanel);
            PropertyPanel.Controls.Add(myPowerUpComponentPanel);
            PropertyPanel.Controls.Add(myRenameEntityPanel);

            HidePanels();
        }
Beispiel #2
0
        public EntityEditorForm()
        {
            InitializeComponent();

            this.Text = "Entity Editor v.1.0";

            openEntityFile.InitialDirectory = myCurrentEntityFolderPath;
            DL_Debug.GetInstance.Init("EntityEditorLog");

            myDataFolderPath = StringUtilities.GetDataFolderPath(myCurrentEntityFolderPath);

            if (myCurrentEntityFolderPath == "")
            {
                myCurrentEntityFolderPath = Directory.GetCurrentDirectory();
                Properties.Settings.Default.DefaultEntityFolderPath = myCurrentEntityFolderPath;
                Properties.Settings.Default.Save();
            }

            Point panelLocation = new Point(10, 10);
            Size panelSize = new Size(500, 800);

            myAddComponentPanel = new Panels.AddComponentPanel(panelLocation, panelSize, this);
            myAIComponentPanel = new Panels.AIComponentPanel(panelLocation, panelSize, this);
            myBulletComponentPanel = new Panels.BulletComponentPanel(panelLocation, panelSize, this);
            myCollisionComponentPanel = new Panels.CollisionComponentPanel(panelLocation, panelSize, this);
            myGraphicsComponentPanel = new Panels.GraphicsComponentPanel(panelLocation, panelSize, this);
            myHealthComponentPanel = new Panels.HealthComponentPanel(panelLocation, panelSize, this);
            myShootingComponentPanel = new Panels.ShootingComponentPanel(panelLocation, panelSize, this);
            mySoundComponentPanel = new Panels.SoundComponentPanel(panelLocation, panelSize, this);
            myStreakComponentPanel = new Panels.StreakEmitterComponentPanel(panelLocation, panelSize, this);
            myParticleEmitterComponentPanel = new Panels.ParticleEmitterComponentPanel(panelLocation, panelSize, this);
            myPhysicsComponentPanel = new Panels.PhysicsComponentPanel(panelLocation, panelSize, this);
            myPowerUpComponentPanel = new Panels.PowerUpComponentPanel(panelLocation, panelSize, this);
            myRenameEntityPanel = new Panels.RenamePanel(panelLocation, panelSize, this);

            PropertyPanel.Controls.Add(myAddComponentPanel);
            PropertyPanel.Controls.Add(myAIComponentPanel);
            PropertyPanel.Controls.Add(myBulletComponentPanel);
            PropertyPanel.Controls.Add(myCollisionComponentPanel);
            PropertyPanel.Controls.Add(myGraphicsComponentPanel);
            PropertyPanel.Controls.Add(myHealthComponentPanel);
            PropertyPanel.Controls.Add(myShootingComponentPanel);
            PropertyPanel.Controls.Add(mySoundComponentPanel);
            PropertyPanel.Controls.Add(myStreakComponentPanel);
            PropertyPanel.Controls.Add(myParticleEmitterComponentPanel);
            PropertyPanel.Controls.Add(myPhysicsComponentPanel);
            PropertyPanel.Controls.Add(myPowerUpComponentPanel);
            PropertyPanel.Controls.Add(myRenameEntityPanel);

            HidePanels();
        }