Beispiel #1
0
        private void s1_Click(object sender, EventArgs e)
        {
            PictureBox a   = (PictureBox)sender;
            int        dqw = (a.Left - 6) / 53;
            int        rr  = 0;

            if ((a.Left - 6) / 53 == 5)
            {
                rr = total_monster.six;
            }
            else
            {
                rr = total_monster.team[rigtnowteam, dqw];
            }
            Image     q  = total_monster.monster[rr].im;
            int       b  = total_monster.monster[rr].blood;
            int       c  = total_monster.monster[rr].attack;
            int       d  = total_monster.monster[rr].recover;
            String    f  = total_monster.monster[rr].skillname2;
            String    g  = total_monster.monster[rr].skillname;
            int       h  = total_monster.monster[rr].cd;
            String    w  = total_monster.monster[rr].namem;
            int       t  = total_monster.monster[rr].attribute;
            String    qq = total_monster.monster[rr].leadern;
            String    ll = total_monster.monster[rr].leader;
            main_card A  = new main_card(q, b, c, d, f, g, h, w, t, qq, ll);

            A.ShowDialog();
        }
Beispiel #2
0
        private void pic_click(object sender, EventArgs e)
        {
            PictureBox a = (PictureBox)sender;

            if (choose)
            {
                if (i <= 4)
                {
                    r[i] = new Label();
                    if (a.BackColor == Color.Transparent)
                    {
                        a.BackColor    = Color.Aqua;
                        r[i].BackColor = Color.White;
                        r[i].Left      = a.Left;
                        r[i].Top       = a.Top;
                        r[i].Size      = new Size(10, 10);
                        r[i].Text     += "" + (i + 1);
                        card_panel.Controls.Add(r[i]);
                        r[i].BringToFront();
                        total_monster.team[rigtnowteam, i] = picn[Convert.ToInt32(a.Name)];
                        lo[i] = Convert.ToInt32(a.Name);
                        i++;
                    }
                }
            }
            else
            {
                Image     q  = total_monster.monster[picn[Convert.ToInt32(a.Name)]].im;
                int       b  = total_monster.monster[picn[Convert.ToInt32(a.Name)]].blood;
                int       c  = total_monster.monster[picn[Convert.ToInt32(a.Name)]].attack;
                int       d  = total_monster.monster[picn[Convert.ToInt32(a.Name)]].recover;
                String    f  = total_monster.monster[picn[Convert.ToInt32(a.Name)]].skillname2;
                String    g  = total_monster.monster[picn[Convert.ToInt32(a.Name)]].skillname;
                int       h  = total_monster.monster[picn[Convert.ToInt32(a.Name)]].cd;
                String    w  = total_monster.monster[picn[Convert.ToInt32(a.Name)]].namem;
                int       t  = total_monster.monster[picn[Convert.ToInt32(a.Name)]].attribute;
                String    qq = total_monster.monster[picn[Convert.ToInt32(a.Name)]].leadern;
                String    ll = total_monster.monster[picn[Convert.ToInt32(a.Name)]].leader;
                main_card A  = new main_card(q, b, c, d, f, g, h, w, t, qq, ll);
                A.ShowDialog();
            }

            if (i == 5)
            {
                b1.Enabled = true;
            }
        }
        private void p_Click(object sender, EventArgs e)
        {
            PictureBox a  = (PictureBox)sender;
            Image      q  = total_monster.monster[Convert.ToInt32(a.Name)].im;
            int        b  = total_monster.monster[Convert.ToInt32(a.Name)].blood;
            int        c  = total_monster.monster[Convert.ToInt32(a.Name)].attack;
            int        d  = total_monster.monster[Convert.ToInt32(a.Name)].recover;
            String     f  = total_monster.monster[Convert.ToInt32(a.Name)].skillname2;
            String     g  = total_monster.monster[Convert.ToInt32(a.Name)].skillname;
            int        h  = total_monster.monster[Convert.ToInt32(a.Name)].cd;
            String     w  = total_monster.monster[Convert.ToInt32(a.Name)].namem;
            int        y  = total_monster.monster[Convert.ToInt32(a.Name)].attribute;
            String     qq = total_monster.monster[Convert.ToInt32(a.Name)].leadern;
            String     ll = total_monster.monster[Convert.ToInt32(a.Name)].leader;
            main_card  A  = new main_card(q, b, c, d, f, g, h, w, y, qq, ll);

            A.ShowDialog();
        }