public override void BindToPanel(Panel aPanel)
        {
            aPanel.Controls.Add(myLabel);

            myMinValue.BindToPanel(aPanel);
            myMaxValue.BindToPanel(aPanel);
        }
Пример #2
0
 protected override void IntitalizeControls()
 {
     myNameText = new NumericTextComponent(new Point(Location.X, Location.Y + 10), new Size(245, 13), "Name", false);
     myNameText.GetTextBox().TextChanged += new EventHandler(this.NameTextBox_Changed);
     myNameText.BindToPanel(this);
     myNameText.Show();
 }
 protected override void IntitalizeControls()
 {
     myWeight = new NumericTextComponent(new Point(Location.X, Location.Y + 10), new Size(175, 13), "Weight");
     myWeight.AddTextChangeEvent(this.PanelDataChanged);
     myWeight.BindToPanel(this);
     myWeight.Show();
 }
        protected override void IntitalizeControls()
        {
            myType = new DropDownComponent(new Point(Location.X, Location.Y + 10), new Size(150, 13), "Type");
            myType.AddSelectedIndexChangeEvent(this.PanelDataChanged);
            myType.AddSelectedIndexChangeEvent(this.TypeChanged);
            myType.BindToPanel(this);
            myType.Show();

            myValue = new NumericTextComponent(new Point(Location.X, Location.Y + 40), new Size(100, 13), "Value");
            myValue.AddTextChangeEvent(this.PanelDataChanged);
            myValue.BindToPanel(this);
            myValue.Show();

            myTime = new NumericTextComponent(new Point(Location.X + 100, Location.Y + 40), new Size(100, 13), "Time");
            myTime.AddTextChangeEvent(this.PanelDataChanged);
            myTime.BindToPanel(this);
            myTime.Show();

            myWeaponUpgrade = new NumericTextComponent(new Point(Location.X, Location.Y + 40), new Size(200, 13), "Upgrade", false);
            myWeaponUpgrade.AddTextChangeEvent(this.PanelDataChanged);
            myWeaponUpgrade.BindToPanel(this);
            myWeaponUpgrade.Hide();

            myWeaponID = new NumericTextComponent(new Point(Location.X + 200, Location.Y + 40), new Size(70, 13), "ID");
            myWeaponID.AddTextChangeEvent(this.PanelDataChanged);
            myWeaponID.BindToPanel(this);
            myWeaponID.Hide();

            myType.AddItem("WeaponUpgrade");
            myType.AddItem("firerate");
            myType.AddItem("healthkit");
            myType.AddItem("homing");
            myType.AddItem("shield");
        }
Пример #5
0
        public override void BindToPanel(Panel aPanel)
        {
            aPanel.Controls.Add(myLabel);

            myXText.BindToPanel(aPanel);
            myYText.BindToPanel(aPanel);
            myZText.BindToPanel(aPanel);
        }
Пример #6
0
        protected override void IntitalizeControls()
        {
            myLifeTime = new NumericTextComponent(new Point(Location.X, Location.Y + 10), new Size(175, 13), "Life Time");
            myLifeTime.AddTextChangeEvent(this.PanelDataChanged);
            myLifeTime.BindToPanel(this);
            myLifeTime.Show();

            myDamage = new NumericTextComponent(new Point(Location.X, Location.Y + 30), new Size(175, 13), "Damage");
            myDamage.AddTextChangeEvent(this.PanelDataChanged);
            myDamage.BindToPanel(this);
            myDamage.Show();
        }
Пример #7
0
        protected override void IntitalizeControls()
        {
            mySpeed = new MinMaxComponent(new Point(Location.X, Location.Y + 10), new Size(Size.Width, 13), "Speed");
            mySpeed.AddTextChangeEvent(this.PanelDataChanged);
            mySpeed.BindToPanel(this);
            mySpeed.Show();

            myTimeToNextDecision = new MinMaxComponent(new Point(Location.X, Location.Y + 30), new Size(Size.Width, 13), "TimeToNextDecision");
            myTimeToNextDecision.AddTextChangeEvent(this.PanelDataChanged);
            myTimeToNextDecision.BindToPanel(this);
            myTimeToNextDecision.Show();

            myFollowEntity = new NumericTextComponent(new Point(Location.X, Location.Y + 50), new Size(275, 13), "Follow Entity", false);
            myFollowEntity.AddTextChangeEvent(this.PanelDataChanged);
            myFollowEntity.BindToPanel(this);
            myFollowEntity.Show();

            myAIMode = new DropDownComponent(new Point(Location.X, Location.Y + 70), new Size(150, 13), "AIMode");
            myAIMode.AddSelectedIndexChangeEvent(this.PanelDataChanged);
            myAIMode.BindToPanel(this);
            myAIMode.Show();

            myAiTurnRate = new NumericTextComponent(new Point(Location.X, Location.Y + 100), new Size(275, 13), "AITurnRate");
            myAiTurnRate.AddTextChangeEvent(this.PanelDataChanged);
            myAiTurnRate.BindToPanel(this);
            myAiTurnRate.Show();

            myAvoidanceLabel.Text = "Avoidance";
            myAvoidanceLabel.Location = new Point(Location.X, Location.Y + 120);
            myAvoidanceLabel.Size = new Size(100, 13);
            myAvoidanceLabel.Show();
            this.Controls.Add(myAvoidanceLabel);

            myAvoidanceDistance = new NumericTextComponent(new Point(Location.X, Location.Y + 140), new Size(150, 13), "Distance");
            myAvoidanceDistance.AddTextChangeEvent(this.PanelDataChanged);
            myAvoidanceDistance.BindToPanel(this);
            myAvoidanceDistance.Show();

            myAvoidanceOffset = new Vector3Component(new Point(Location.X, Location.Y + 160), new Size(275, 13), "Offset");
            myAvoidanceOffset.AddTextChangeEvent(this.PanelDataChanged);
            myAvoidanceOffset.BindToPanel(this);
            myAvoidanceOffset.Show();

            myAIMode.AddItem("Keep Distance");
            myAIMode.AddItem("Escape then return");
            myAIMode.AddItem("Kamikaze");
        }
        protected override void IntitalizeControls()
        {
            mySphereCollisionActive.Text = "Sphere Active";
            mySphereCollisionActive.RightToLeft = RightToLeft.Yes;
            mySphereCollisionActive.Location = new Point(Location.X - 58, Location.Y + 10);
            mySphereCollisionActive.Size = new Size(150, 20);

            mySphereCollisionActive.CheckStateChanged += new EventHandler(this.PanelDataChanged);

            this.Controls.Add(mySphereCollisionActive);
            mySphereCollisionActive.Show();

            mySphereRadius = new NumericTextComponent(new Point(Location.X, Location.Y + 40), new Size(245, 13), "Sphere Radius");
            mySphereRadius.AddTextChangeEvent(this.PanelDataChanged);
            mySphereRadius.BindToPanel(this);
            mySphereRadius.Show();
        }