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");
        }
Ejemplo n.º 2
0
        protected override void IntitalizeControls()
        {
            myPropertyTitle.Text += "Graphcis Component";;

            myModelPanel = new GCP_ModelPanel(new Point(this.Location.X, this.Location.Y));

            myModelPanel.BindToPanel(this);

            myModelPanel.GetModelPath().GetButton().Click  += new System.EventHandler(this.ModelBrosweClick);
            myModelPanel.GetEffectPath().GetButton().Click += new System.EventHandler(this.EffectBrosweClick);

            myModelPanel.Show();

            myScale = new Vector3Component(new Point(Location.X, Location.Y + 60), new Size(275, 40), "Scale");
            myScale.AddTextChangeEvent(this.PanelDataChanged);
            myScale.BindToPanel(this);
            myScale.Show();
        }