public CustomiseGame() { // ovo sam mogla i pametnije, tipa da sam stavila na vrijeme textbox na vrh, ali // ovako bih morala sve labele pomicati /*MessageBox.Show("You need 8 - 10 shapes and at least 3 of them have to be standard shapes!\nPress" + * " OK to continue");*/ InitializeComponent(); this.BackColor = Color.CornflowerBlue; // the first standard shape setLabel(groupBox1, label1, 20, 41); setLabel(groupBox1, label2, 42, 41); setLabel(groupBox1, label3, 64, 41); // the second standard shape setLabel(groupBox1, label4, 144, 41); setLabel(groupBox1, label5, 144, 63); setLabel(groupBox1, label6, 144, 85); setLabel(groupBox1, label7, 166, 85); // the third standard shape setLabel(groupBox1, label8, 104, 41); setLabel(groupBox1, label9, 104, 63); setLabel(groupBox1, label10, 104, 85); setLabel(groupBox1, label11, 82, 85); // the fourth standard shape setLabel(groupBox1, label12, 206, 41); setLabel(groupBox1, label13, 228, 41); setLabel(groupBox1, label14, 206, 63); setLabel(groupBox1, label15, 228, 63); // the fifth standard shape setLabel(groupBox1, label16, 268, 41); setLabel(groupBox1, label17, 290, 41); setLabel(groupBox1, label18, 290, 63); setLabel(groupBox1, label19, 312, 63); // the sixth standard shape setLabel(groupBox1, label20, 352, 63); setLabel(groupBox1, label21, 374, 63); setLabel(groupBox1, label22, 396, 63); setLabel(groupBox1, label23, 374, 41); // the seventh standard shape setLabel(groupBox1, label24, 436, 63); setLabel(groupBox1, label25, 458, 63); setLabel(groupBox1, label26, 458, 41); setLabel(groupBox1, label27, 480, 41); // set checkboxes setCheckBox(checkbox1, 42, 115); setCheckBox(checkbox2, 93, 115); setCheckBox(checkbox3, 155, 115); setCheckBox(checkbox4, 217, 115); setCheckBox(checkbox5, 290, 115); setCheckBox(checkbox6, 374, 115); setCheckBox(checkbox7, 458, 115); // add button to groupbox buttonContinue.BackColor = Color.DarkBlue; buttonContinue.ForeColor = Color.White; buttonContinue.Text = "Continue"; buttonContinue.Size = new Size(60, 30); buttonContinue.Click += new EventHandler(buttonContinue_Click); groupBox1.Controls.Add(buttonContinue); buttonContinue.Location = new Point(228, 160); buttonContinue.Show(); //---------- // groupBox 2 //---------- // add labels to draw shapes groupBox2.Enabled = false; setLabel(groupBox2, label28, 436, 41); label28.Click += new EventHandler(labelClicked); setLabel(groupBox2, label29, 458, 41); label29.Click += new EventHandler(labelClicked); setLabel(groupBox2, label30, 480, 41); label30.Click += new EventHandler(labelClicked); setLabel(groupBox2, label31, 436, 63); label31.Click += new EventHandler(labelClicked); setLabel(groupBox2, label32, 458, 63); label32.Click += new EventHandler(labelClicked); setLabel(groupBox2, label33, 480, 63); label33.Click += new EventHandler(labelClicked); setLabel(groupBox2, label34, 436, 85); label34.Click += new EventHandler(labelClicked); setLabel(groupBox2, label35, 458, 85); label35.Click += new EventHandler(labelClicked); setLabel(groupBox2, label36, 480, 85); label36.Click += new EventHandler(labelClicked); // button to add a new shape addingButton.BackColor = Color.DarkBlue; addingButton.ForeColor = Color.White; addingButton.Size = new Size(62, 20); groupBox2.Controls.Add(addingButton); addingButton.Location = new Point(436, 120); addingButton.Text = "Add"; addingButton.Click += new EventHandler(addingButtonClicked); // groupBox4 addObstacles.Size = new Size(150, 20); addObstacles.Text = "Add obstacles"; //addObstacles.TextAlign = ContentAlignment.TopCenter; groupBox4.Controls.Add(addObstacles); addObstacles.Location = new Point(100, 50); addGoldenPoints.Size = new Size(150, 20); addGoldenPoints.Text = "Add golden points"; groupBox4.Controls.Add(addGoldenPoints); addGoldenPoints.Location = new Point(300, 50); /*addParallelGame.Size = new Size(150, 20); * addParallelGame.Text = "Add Parallel Game"; * groupBox4.Controls.Add(addParallelGame); * addParallelGame.Location = new Point(350, 50);*/ // button to start the game play.BackColor = Color.DarkBlue; play.ForeColor = Color.White; play.Size = new Size(542, 40); this.Controls.Add(play); play.Location = new Point(1, 516); play.Text = "Play"; play.Enabled = false; play.Click += new EventHandler(playButtonClicked); // text box with explanations groupBox2.Controls.Add(explanationsBox); explanationsBox.Multiline = true; explanationsBox.BorderStyle = BorderStyle.None; explanationsBox.Font = new Font("Microsoft San Serif", 12); explanationsBox.Location = new Point(50, 50); explanationsBox.Enabled = false; explanationsBox.Size = new Size(300, 60); }