Пример #1
0
        public SectionOrange(MainForm mf)
        {
            oh          = new OrangeHelp();
            oh.TopLevel = false;
            mf.rw.Controls.Add(oh);

            staticSpeedX.Left  = 145;
            staticSpeedX.Top   = 47;
            staticSpeedY.Left  = 145;
            staticSpeedY.Top   = 125;
            dynamicSpeedX.Left = 145;
            dynamicSpeedX.Top  = 203;
            dynamicSpeedY.Left = 145;
            dynamicSpeedY.Top  = 281;
            //setX.Top = 362;
            //setX.Left = 125;
            //setY.Left = 125;
            //setY.Top = 440;

            SectionRed.setTextboxSize(staticSpeedX, 173, 21);
            SectionRed.setTextboxSize(staticSpeedY, 173, 21);
            SectionRed.setTextboxSize(dynamicSpeedX, 173, 21);
            SectionRed.setTextboxSize(dynamicSpeedY, 173, 21);
            //SectionRed.setTextboxSize(setX, 173, 21);
            //SectionRed.setTextboxSize(setY, 173, 21);

            staticSpeedX.Text  = "1";
            staticSpeedY.Text  = "1";
            dynamicSpeedX.Text = "0";
            dynamicSpeedY.Text = "0.01";

            ds = new PaintEventHandler(drawSection);
        }
Пример #2
0
        public SectionYellow()
        {
            SectionRed.setTextboxSize(widthBox, 173, 21);
            SectionRed.setTextboxSize(heightBox, 173, 21);

            widthBox.Left  = 85;
            widthBox.Top   = 180;
            heightBox.Left = 85;
            heightBox.Top  = 258;

            widthBox.Text  = "10";
            heightBox.Text = "10";

            ds = new PaintEventHandler(drawSection);

            collisionList.Items.AddRange(new object[] { "Rectangle", "Circle" });
            collisionList.SelectedIndex         = 0;
            collisionList.DropDownStyle         = ComboBoxStyle.DropDownList;
            collisionList.ForeColor             = Color.White;
            collisionList.BackColor             = Color.Black;
            collisionList.Left                  = 130;
            collisionList.Top                   = 104;
            collisionList.Size                  = new Size(83, 19);
            collisionList.SelectedIndexChanged += new EventHandler(changedList);
        }
Пример #3
0
        public SectionPurple()
        {
            ds = new PaintEventHandler(drawSection);

            resultBox               = new TextBox();
            resultBox.Multiline     = true;
            resultBox.ScrollBars    = ScrollBars.Both;
            resultBox.AcceptsReturn = true;
            resultBox.AcceptsTab    = true;
            resultBox.WordWrap      = false;
            resultBox.Text          = "Welcome!\r\r\ntest";

            copyButton      = new Button();
            copyButton.Left = 165;
            copyButton.Top  = 45;
            copyButton.Size = new Size(66, 21);
            copyButton.Text = "Copy";

            copyButton.Click += new EventHandler(copyText);

            SectionRed.setTextboxSize(resultBox, 372, 321);

            resultBox.Left = 9;
            resultBox.Top  = 70;
        }
Пример #4
0
        public SectionGreen()
        {
            ds = new PaintEventHandler(drawSection);

            imageBox = new TextBox();
            colorBox = new TextBox();

            SectionRed.setTextboxSize(imageBox, 173, 21);
            SectionRed.setTextboxSize(colorBox, 173, 21);
            imageBox.Left = 80;
            imageBox.Top  = 175;

            colorBox.Left = 80;
            colorBox.Top  = 272;

            imageBox.Text = "";
            colorBox.Text = "random";
        }
Пример #5
0
        public SectionCyan()
        {
            ds = new PaintEventHandler(drawSection);

            spawnRateBox      = new TextBox();
            spawnDelayBox     = new TextBox();
            deleteDistanceBox = new TextBox();

            SectionRed.setTextboxSize(spawnRateBox, 173, 21);
            SectionRed.setTextboxSize(spawnDelayBox, 173, 21);
            SectionRed.setTextboxSize(deleteDistanceBox, 173, 21);
            spawnRateBox.Left = 155;
            spawnRateBox.Top  = 119;

            spawnDelayBox.Left     = 155;
            spawnDelayBox.Top      = 197;
            deleteDistanceBox.Left = 155;
            deleteDistanceBox.Top  = 294;

            spawnRateBox.Text  = "100";
            spawnDelayBox.Text = "0";
        }
Пример #6
0
        public SectionBlue(MainForm mf)
        {
            oh          = new BlueHelp();
            oh.TopLevel = false;

            hmf = mf;

            directCodeBox.Left = 8;
            directCodeBox.Top  = 67;

            SectionRed.setTextboxSize(directCodeBox, 173, 21);

            directCodeBox.Multiline     = true;
            directCodeBox.ScrollBars    = ScrollBars.Both;
            directCodeBox.AcceptsReturn = true;
            directCodeBox.AcceptsTab    = true;
            directCodeBox.WordWrap      = true;

            ds = new PaintEventHandler(drawSection);

            blueBrush = new SolidBrush(Color.FromArgb(129, 129, 247));

            mf.rw.Controls.Add(oh);
        }
Пример #7
0
 void resized(object sender, EventArgs e)
 {
     moved(sender, e);
     SectionRed.setTextboxSize(directCodeBox, (short)(hmf.Width - 30), (short)(hmf.Height - 115));
 }