Ejemplo n.º 1
0
        public async Task <inputdata> login(inputdata d)
        {
            d      = new inputdata();
            d.code = 20000;
            d.data = new Dictionary <string, object>();
            d.data.Add("token", "admin-token");

            return(await Task.FromResult(d));
        }
Ejemplo n.º 2
0
    public void Save(inputdata temp)
    {
        StartCoroutine(SaveToTrainFile(temp.keypath));
        // Creating First row of titles manually..
        string[] rowDataTemp = new string[7];
        rowDataTemp[0] = temp.name;
        rowDataTemp[1] = temp.url;
        rowDataTemp[2] = temp.keypath;
        rowDataTemp[3] = temp.latpath;
        rowDataTemp[4] = temp.lngpath;
        rowDataTemp[5] = temp.myclass;
        rowDataTemp[6] = "enable";
        data.Add(rowDataTemp);

        string[][] output = new string[data.Count][];

        for (int i = 0; i < output.Length; i++)
        {
            output[i] = data[i];
        }

        int    length    = output.GetLength(0);
        string delimiter = ",";

        StringBuilder sb = new StringBuilder();

        for (int index = 0; index < length; index++)
        {
            sb.AppendLine(string.Join(delimiter, output[index]));
        }

        string filePath = getPath();
        string text     = "";

        try
        {
            text = File.ReadAllText(filePath);
        }
        catch (Exception e)
        {
            Debug.Log("Don't have CSV file");
            text = "";
        }

        StreamWriter outStream = File.CreateText(filePath);

        outStream.Write(text + sb);
        outStream.Close();
    }
Ejemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form fm = new inputdata();

            fm.Owner         = this;
            fm.StartPosition = FormStartPosition.CenterScreen;
            if (!fm.IsDisposed)
            {
                fm.ShowDialog(this);
            }
            else
            {
                Application.Exit();
            }
        }
Ejemplo n.º 4
0
        public async Task <Dictionary <string, object> > getuserinfo(inputdata d)
        {
            var v = new Dictionary <string, object>();

            v.Add("roles", new string[] { "admin" });
            v.Add("introduction", "I am a super administrator");
            v.Add("avatar", "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
            v.Add("name", "'Super Admin");

            var x = new Dictionary <string, object>();

            x.Add("code", 20000);
            x.Add("data", v);

            return(await Task.FromResult(x));
        }
Ejemplo n.º 5
0
        private void Form1_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Space)
            {
                inputdata data = list[0] as inputdata;
                data.stat = 0;
            }
            else if (e.KeyCode == Keys.Right)
            {
                inputdata data = list[1] as inputdata;
                data.stat = 0;
            }

            else if (e.KeyCode == Keys.Left)
            {
                inputdata data = list[2] as inputdata;
                data.stat = 0;
            }

            else if (e.KeyCode == Keys.Up)
            {
                inputdata data = list[3] as inputdata;
                data.stat = 0;
            }

            else if (e.KeyCode == Keys.Down)
            {
                inputdata data = list[4] as inputdata;
                data.stat = 0;
            }
            else if (e.KeyCode == Keys.Z)
            {
                inputdata data = list[5] as inputdata;
                data.stat = 0;
            }
        }
Ejemplo n.º 6
0
        private void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            inputdata list0     = list[0] as inputdata;
            inputdata list1     = list[1] as inputdata;
            inputdata list2     = list[2] as inputdata;
            inputdata list3     = list[3] as inputdata;
            inputdata list4     = list[4] as inputdata;
            inputdata list5     = list[5] as inputdata;
            inputdata midlist0  = midlist[0] as inputdata;
            inputdata midlist1  = midlist[1] as inputdata;
            inputdata midlist2  = midlist[2] as inputdata;
            inputdata midlist3  = midlist[3] as inputdata;
            inputdata midlist4  = midlist[4] as inputdata;
            inputdata midlist5  = midlist[5] as inputdata;
            inputdata lastlist0 = lastlist[0] as inputdata;
            inputdata lastlist1 = lastlist[1] as inputdata;
            inputdata lastlist2 = lastlist[2] as inputdata;
            inputdata lastlist3 = lastlist[3] as inputdata;
            inputdata lastlist4 = lastlist[4] as inputdata;
            inputdata lastlist5 = lastlist[5] as inputdata;

            if (e.KeyCode == Keys.Space)//스페이스
            {
                inputdata temp = list[0] as inputdata;
                if (temp.key == e.KeyCode)
                {
                    if (temp.stat != 1)
                    {
                        temp.stat = 1;
                    }
                }
            }
            else if (e.KeyCode == Keys.Right)
            {
                inputdata temp = list[1] as inputdata;
                if (temp.key == e.KeyCode)
                {
                    if (temp.stat != 1)
                    {
                        temp.stat = 1;
                    }
                }
            }
            else if (e.KeyCode == Keys.Left)
            {
                inputdata temp = list[2] as inputdata;
                if (temp.key == e.KeyCode)
                {
                    if (temp.stat != 1)
                    {
                        temp.stat = 1;
                    }
                }
            }
            else if (e.KeyCode == Keys.Up)
            {
                inputdata temp = list[3] as inputdata;
                if (temp.key == e.KeyCode)
                {
                    if (temp.stat != 1)
                    {
                        temp.stat = 1;
                    }
                }
            }
            else if (e.KeyCode == Keys.Down)
            {
                inputdata temp = list[4] as inputdata;
                if (temp.key == e.KeyCode)
                {
                    if (temp.stat != 1)
                    {
                        temp.stat = 1;
                    }
                }
            }
            else if (e.KeyCode == Keys.Z)
            {
                inputdata temp = list[5] as inputdata;
                if (temp.key == e.KeyCode)
                {
                    if (temp.stat != 1)
                    {
                        temp.stat = 1;
                    }
                }
            }
            if ((midlist1 != list1) || (midlist2 != list2) || (midlist3 != list3) || (midlist4 != list4) || (midlist5 != list5)) //새로운 값이 입력되었을때
            {
                if (list1.stat + list2.stat + list3.stat + list4.stat >= 2)                                                      //키값이 2개 이상일때
                {
                    lastlist1 = midlist1;
                    lastlist2 = midlist2;
                    lastlist3 = midlist3;
                    lastlist4 = midlist4;
                    lastlist5 = midlist5;
                }
                else
                {
                    midlist1 = list1;
                    midlist2 = list2;
                    midlist3 = list3;
                    midlist4 = list4;
                    midlist5 = list5;
                }
            }
        }
Ejemplo n.º 7
0
            public static void move(Control moveit, ArrayList list, PictureBox[,] Bubbles)
            {
                for (int i = 0; i < list.Count; i++)
                {
                    inputdata temp  = list[i] as inputdata;
                    inputdata temp1 = list[1] as inputdata;
                    inputdata temp2 = list[2] as inputdata;
                    inputdata temp3 = list[3] as inputdata;
                    inputdata temp4 = list[4] as inputdata;
                    inputdata right = lastlist[1] as inputdata;
                    inputdata left  = lastlist[2] as inputdata;
                    inputdata up    = lastlist[3] as inputdata;
                    inputdata down  = lastlist[4] as inputdata;
                    if (temp.key == Keys.Space)
                    {
                        if (temp.stat == 1)
                        {
                            int x = hero.pb_hero.Location.X;
                            int y = hero.pb_hero.Location.Y;
                            Bubbles[x / 40, y / 40].Visible = true;
                        }
                    }


                    else if (temp.key == Keys.Right)
                    {
                        if (temp.stat == 1)
                        {
                            if (hero.pb_hero.Location.X / 40 >= 0 && hero.pb_hero.Location.X / 40 < 15)
                            {
                                if ((temp3.stat != up.stat) || (temp4.stat != down.stat))//수직처리
                                {
                                }
                                else if ((temp2.stat != left.stat))//왼쪽
                                {
                                    if (hero.pb_hero.Location.X / 40 > 0)
                                    {
                                        if (map[hero.pb_hero.Location.X / 40 - 1, hero.pb_hero.Location.Y / 40] != 0)//블럭이 있을경우
                                        {
                                        }
                                        else
                                        {
                                            if (hero.pb_hero.Location.X - hero.speed > 0)
                                            {
                                                hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                                hero.pb_hero.Image    = Properties.Resources.L;
                                            }
                                        }
                                    }
                                    else
                                    {
                                        if (hero.pb_hero.Location.X - hero.speed > 0)//블럭이 있을경우
                                        {
                                        }
                                        else
                                        {
                                            hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                            hero.pb_hero.Image    = Properties.Resources.L;
                                        }
                                    }
                                }
                                else
                                {
                                    if (map[hero.pb_hero.Location.X / 40 + 1, hero.pb_hero.Location.Y / 40] != 0)
                                    {
                                    }
                                    else
                                    {
                                        hero.pb_hero.Location = new Point(hero.pb_hero.Location.X + hero.speed, hero.pb_hero.Location.Y);
                                        hero.pb_hero.Image    = Properties.Resources.R;
                                    }
                                }
                            }
                            else
                            {
                                if ((temp3.stat != up.stat) || (temp4.stat != down.stat))//수직처리
                                {
                                }
                                else if ((temp2.stat != left.stat))//왼쪽
                                {
                                    hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                    hero.pb_hero.Image    = Properties.Resources.L;
                                }
                                else
                                {
                                    hero.pb_hero.Location = new Point(hero.pb_hero.Location.X + hero.speed, hero.pb_hero.Location.Y);
                                    hero.pb_hero.Image    = Properties.Resources.R;
                                }
                            }
                        }
                    }

                    else if (temp.key == Keys.Left)
                    {
                        if (temp.stat == 1)
                        {
                            if (hero.pb_hero.Location.X / 40 < 15 && hero.pb_hero.Location.X / 40 >= 0)
                            {
                                if ((temp3.stat != up.stat) || (temp4.stat != down.stat))//수직
                                {
                                }
                                else if ((temp1.stat != right.stat))//오른쪽
                                {
                                }
                                else
                                {
                                    if (hero.pb_hero.Location.X / 40 < 15 && hero.pb_hero.Location.X / 40 > 0)
                                    {
                                        if (map[hero.pb_hero.Location.X / 40 - 1, hero.pb_hero.Location.Y / 40] != 0)
                                        {
                                        }
                                        else
                                        {
                                            hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                            hero.pb_hero.Image    = Properties.Resources.L;
                                        }
                                    }
                                    else
                                    {
                                        if (map[hero.pb_hero.Location.X / 40, hero.pb_hero.Location.Y / 40] != 0)
                                        {
                                        }
                                        else
                                        {
                                            hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                            hero.pb_hero.Image    = Properties.Resources.L;
                                        }
                                    }
                                }
                            }
                            else
                            {
                                if ((temp3.stat != up.stat) || (temp4.stat != down.stat))//수직
                                {
                                }
                                else if ((temp1.stat != right.stat))//오른쪽
                                {
                                }
                                else
                                {
                                    hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                    hero.pb_hero.Image    = Properties.Resources.L;
                                }
                            }
                        }
                    }

                    else if (temp.key == Keys.Up)
                    {
                        if (temp.stat == 1)
                        {
                            if ((temp1.stat != right.stat))//오른쪽
                            {
                                if (hero.pb_hero.Location.Y / 40 > 0 && hero.pb_hero.Location.Y / 40 < 14 && hero.pb_hero.Location.X / 40 > 0 && hero.pb_hero.Location.X / 40 < 15)
                                {
                                    if (map[hero.pb_hero.Location.X / 40 + 1, hero.pb_hero.Location.Y / 40] != 0)
                                    {
                                    }
                                    else
                                    {
                                        hero.pb_hero.Location = new Point(hero.pb_hero.Location.X + hero.speed, hero.pb_hero.Location.Y);
                                        hero.pb_hero.Image    = Properties.Resources.R;
                                    }
                                }
                                else
                                {
                                    hero.pb_hero.Location = new Point(hero.pb_hero.Location.X + hero.speed, hero.pb_hero.Location.Y);
                                    hero.pb_hero.Image    = Properties.Resources.R;
                                }
                            }
                            else if ((temp2.stat != left.stat))//왼쪽
                            {
                                if (hero.pb_hero.Location.Y / 40 > 0 && hero.pb_hero.Location.Y / 40 < 14 && hero.pb_hero.Location.X / 40 > 0 && hero.pb_hero.Location.X / 40 < 15)
                                {
                                    if (map[hero.pb_hero.Location.X / 40 - 1, hero.pb_hero.Location.Y / 40] != 0)
                                    {
                                    }
                                    else
                                    {
                                        hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                        hero.pb_hero.Image    = Properties.Resources.L;
                                    }
                                }
                                else
                                {
                                    hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                    hero.pb_hero.Image    = Properties.Resources.L;
                                }
                            }
                            else if ((temp4.stat != down.stat))//반대
                            {
                            }
                            else
                            {
                                if (hero.pb_hero.Location.Y / 40 > 0 && hero.pb_hero.Location.Y / 40 < 14 && hero.pb_hero.Location.X / 40 > 0 && hero.pb_hero.Location.X / 40 < 15)
                                {
                                    if (map[hero.pb_hero.Location.X / 40, hero.pb_hero.Location.Y / 40 - 1] != 0)
                                    {
                                    }
                                    else
                                    {
                                        hero.pb_hero.Location = new Point(hero.pb_hero.Location.X, hero.pb_hero.Location.Y - hero.speed);
                                        hero.pb_hero.Image    = Properties.Resources.B;
                                    }
                                }
                                else
                                {
                                    hero.pb_hero.Location = new Point(hero.pb_hero.Location.X, hero.pb_hero.Location.Y - hero.speed);
                                    hero.pb_hero.Image    = Properties.Resources.B;
                                }
                            }
                        }
                        else
                        {
                            if ((temp1.stat != right.stat))//오른쪽
                            {
                                hero.pb_hero.Location = new Point(hero.pb_hero.Location.X + hero.speed, hero.pb_hero.Location.Y);
                                hero.pb_hero.Image    = Properties.Resources.R;
                            }
                            else if ((temp2.stat != left.stat))//왼쪽
                            {
                                hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                hero.pb_hero.Image    = Properties.Resources.L;
                            }
                            else if ((temp4.stat != down.stat))//반대
                            {
                            }
                            else
                            {
                                hero.pb_hero.Location = new Point(hero.pb_hero.Location.X, hero.pb_hero.Location.Y - hero.speed);
                                hero.pb_hero.Image    = Properties.Resources.B;
                            }
                        }
                    }

                    else if (temp.key == Keys.Down)
                    {
                        if (temp.stat == 1)
                        {
                            if ((temp1.stat != right.stat))//오른쪽
                            {
                                if (hero.pb_hero.Location.Y / 40 < 14 && hero.pb_hero.Location.Y / 40 > 0 && hero.pb_hero.Location.X / 40 > 0 && hero.pb_hero.Location.X / 40 < 15)
                                {
                                    if (map[hero.pb_hero.Location.X / 40 + 1, hero.pb_hero.Location.Y / 40] != 0)
                                    {
                                    }
                                    else
                                    {
                                        hero.pb_hero.Location = new Point(hero.pb_hero.Location.X + hero.speed, hero.pb_hero.Location.Y);
                                        hero.pb_hero.Image    = Properties.Resources.R;
                                    }
                                }
                                else
                                {
                                    hero.pb_hero.Location = new Point(hero.pb_hero.Location.X + hero.speed, hero.pb_hero.Location.Y);
                                    hero.pb_hero.Image    = Properties.Resources.R;
                                }
                            }
                            else if ((temp2.stat != left.stat))//왼쪽
                            {
                                if (hero.pb_hero.Location.Y / 40 < 14 && hero.pb_hero.Location.Y / 40 > 0 && hero.pb_hero.Location.X / 40 > 0 && hero.pb_hero.Location.X / 40 < 15)
                                {
                                    if (map[hero.pb_hero.Location.X / 40 - 1, hero.pb_hero.Location.Y / 40] != 0)
                                    {
                                    }
                                    else
                                    {
                                        hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                        hero.pb_hero.Image    = Properties.Resources.L;
                                    }
                                }
                                else
                                {
                                    hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                    hero.pb_hero.Image    = Properties.Resources.L;
                                }
                            }
                            else if ((temp3.stat != up.stat))//반대
                            {
                            }
                            else
                            {
                                if (hero.pb_hero.Location.Y / 40 < 14 && hero.pb_hero.Location.Y / 40 > 0 && hero.pb_hero.Location.X / 40 > 0 && hero.pb_hero.Location.X / 40 < 15)
                                {
                                    if (map[hero.pb_hero.Location.X / 40, hero.pb_hero.Location.Y / 40 + 1] != 0)
                                    {
                                    }
                                    else
                                    {
                                        hero.pb_hero.Location = new Point(hero.pb_hero.Location.X, hero.pb_hero.Location.Y + hero.speed);
                                        hero.pb_hero.Image    = Properties.Resources.F;
                                    }
                                }
                                else
                                {
                                    hero.pb_hero.Location = new Point(hero.pb_hero.Location.X, hero.pb_hero.Location.Y + hero.speed);
                                    hero.pb_hero.Image    = Properties.Resources.F;
                                }
                            }
                        }
                        else
                        {
                            if ((temp1.stat != right.stat))//오른쪽
                            {
                                hero.pb_hero.Location = new Point(hero.pb_hero.Location.X + hero.speed, hero.pb_hero.Location.Y);
                                hero.pb_hero.Image    = Properties.Resources.R;
                            }
                            else if ((temp2.stat != left.stat))//왼쪽
                            {
                                hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                                hero.pb_hero.Image    = Properties.Resources.L;
                            }
                            else if ((temp3.stat != up.stat))//반대
                            {
                            }
                            else
                            {
                                hero.pb_hero.Location = new Point(hero.pb_hero.Location.X, hero.pb_hero.Location.Y + hero.speed);
                                hero.pb_hero.Image    = Properties.Resources.F;
                            }
                        }
                    }
                    else if (temp.key == Keys.Z)
                    {
                        if (temp.stat == 1)
                        {
                            Console.Write("god");
                            int dev;
                            dev = check_Direction();
                            Thread thread_Dart = new Thread(shoot_Dart(dev));
                            thread_Dart.Start();
                        }
                        if (hero.pb_hero.Location.X < 0)//왼쪽으로 너무갔을때
                        {
                            hero.pb_hero.Location = new Point(hero.pb_hero.Location.X + hero.speed, hero.pb_hero.Location.Y);
                        }
                        else if (hero.pb_hero.Location.X > 584)//오른쪽으로 너무갔을때
                        {
                            hero.pb_hero.Location = new Point(hero.pb_hero.Location.X - hero.speed, hero.pb_hero.Location.Y);
                        }
                        else if (hero.pb_hero.Location.Y < 0)//위쪽으로 너무갔을때
                        {
                            hero.pb_hero.Location = new Point(hero.pb_hero.Location.X, hero.pb_hero.Location.Y + hero.speed);
                        }
                        else if (hero.pb_hero.Location.Y > 561)//아래쪽으로 너무 갔을때
                        {
                            hero.pb_hero.Location = new Point(hero.pb_hero.Location.X, hero.pb_hero.Location.Y - hero.speed);
                        }
                    }
                }
            }
Ejemplo n.º 8
0
        private void Form1_Load(object sender, EventArgs e)
        {
            System.Windows.Forms.Timer timer1 = new System.Windows.Forms.Timer();
            inputdata data = new inputdata();

            hero myhero = new hero(this);

            data      = new inputdata();//이거
            data.key  = Keys.Space;
            data.stat = 0;
            list.Add(data);

            data      = new inputdata();
            data.key  = Keys.Right;
            data.stat = 0;
            list.Add(data);

            data      = new inputdata();
            data.key  = Keys.Left;
            data.stat = 0;
            list.Add(data);

            data      = new inputdata();
            data.key  = Keys.Up;
            data.stat = 0;
            list.Add(data);

            data      = new inputdata();
            data.key  = Keys.Down;
            data.stat = 0;
            list.Add(data);

            data      = new inputdata();
            data.key  = Keys.Z;
            data.stat = 0;
            list.Add(data);

            data      = new inputdata();
            data.key  = Keys.Space;
            data.stat = 0;
            midlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Right;
            data.stat = 0;
            midlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Left;
            data.stat = 0;
            midlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Up;
            data.stat = 0;
            midlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Down;
            data.stat = 0;
            midlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Z;
            data.stat = 0;
            midlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Space;
            data.stat = 0;
            lastlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Right;
            data.stat = 0;
            lastlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Left;
            data.stat = 0;
            lastlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Up;
            data.stat = 0;
            lastlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Down;
            data.stat = 0;
            lastlist.Add(data);

            data      = new inputdata();
            data.key  = Keys.Z;
            data.stat = 0;
            lastlist.Add(data);

            timer1.Interval = 50;
            timer1.Start();
            timer1.Tick += new EventHandler(timer1_Tick);

            for (y = 0; y < 15; ++y)
            {
                for (x = 0; x < 15; ++x)
                {
                    if (map[y, x] == 1)
                    {
                        blocks[y, x]          = new PictureBox();//이거
                        blocks[y, x].SizeMode = PictureBoxSizeMode.StretchImage;
                        blocks[y, x].Location = new Point(y * 40, x * 40);
                        blocks[y, x].Width    = 40;
                        blocks[y, x].Height   = 40;
                        blocks[y, x].Image    = Properties.Resources.removeable;
                        blocks[y, x].Visible  = true;
                        this.Controls.Add(blocks[y, x]);
                    }
                    else if (map[y, x] == 2)
                    {
                        blocks[y, x]          = new PictureBox();
                        blocks[y, x].SizeMode = PictureBoxSizeMode.StretchImage;
                        blocks[y, x].Location = new Point(y * 40, x * 40);
                        blocks[y, x].Width    = 40;
                        blocks[y, x].Height   = 40;
                        blocks[y, x].Image    = Properties.Resources.seorap;
                        blocks[y, x].Visible  = true;
                        this.Controls.Add(blocks[y, x]);
                    }


                    Bubbles[y, x]          = new PictureBox();
                    Bubbles[y, x].SizeMode = PictureBoxSizeMode.StretchImage;
                    Bubbles[y, x].Location = new Point(y * 40, x * 40);
                    Bubbles[y, x].Width    = 40;
                    Bubbles[y, x].Height   = 40;
                    Bubbles[y, x].Image    = Properties.Resources.bubble;
                    Bubbles[y, x].Visible  = false;

                    floooor[y, x]          = new PictureBox();
                    floooor[y, x].SizeMode = PictureBoxSizeMode.StretchImage;
                    floooor[y, x].Location = new Point(y * 40, x * 40);
                    floooor[y, x].Width    = 40;
                    floooor[y, x].Height   = 40;
                    floooor[y, x].Image    = Properties.Resources.floor;
                    floooor[y, x].Visible  = true;

                    splash[y, x]          = new PictureBox();
                    splash[y, x].SizeMode = PictureBoxSizeMode.StretchImage;
                    splash[y, x].Location = new Point(y * 40, x * 40);
                    splash[y, x].Width    = 40;
                    splash[y, x].Height   = 40;
                    splash[y, x].Image    = Properties.Resources.water;
                    splash[y, x].Visible  = true;

                    this.Controls.Add(Bubbles[y, x]);
                    this.Controls.Add(floooor[y, x]);
                    this.Controls.Add(splash[y, x]);
                }
            }
        }
Ejemplo n.º 9
0
 public void addbutton()
 {
     addpanel.SetActive(true);
     temp = new inputdata();
 }