Ejemplo n.º 1
0
        public setupA(BTN bT, BTN[] btn, BTN[] btn2, bool[] btnT, int chk)
        {
            btns     = btn;
            btns2    = btn2;
            chked    = chk;
            btnTitle = bT;

            btnsT = btnT;



            for (int i = 0; i < btns.Length; i++)
            {
                if (i == 0)
                {
                    zx = btnTitle.loc.X + btnTitle.img.Width;
                    zy = btnTitle.loc.Y;
                }
                else
                {
                    zx += btns[i - 1].img.Width;
                }

                btns[i].loc.X = zx;
                btns[i].loc.Y = zy;

                btns2[i].loc.X = zx;
                btns2[i].loc.Y = zy;
            }


            btnchked = new BTN(Game1.picballsort, new Vector2(btns[chked].loc.X, btns[chked].loc.Y));
        }