Exemplo n.º 1
0
        public override void Init(int width, int height)
        {
            #region 智能修正面板元素数量
            //823,575 x=8,y=5
            int borderX = 823 - cardWidth * xCount;
            int borderY = 575 - cardHeight * yCount;

            xCount    = (width - borderX) * 8 / 10 / cardWidth; //0.8作为一个边缘因子
            yCount    = (height - borderY) * 9 / 10 / cardHeight;
            cardCount = xCount * yCount;

            Width  = xCount * cardWidth + borderX;
            Height = yCount * cardHeight + borderY;
            #endregion

            base.Init(width, height);
            show       = true;
            cards      = new List <int>();
            cardDetail = new CardDetail(this, cardWidth * xCount + 65, 35, cardHeight * yCount + 70);

            int baseY = cardHeight * yCount + 45;
            InitVirtualRegion(1, 65 + 10, baseY + 3);
            InitVirtualRegion(2, 65 + 70, baseY + 3);
            InitVirtualRegion(3, 65 + 130, baseY + 3);
            InitVirtualRegion(4, 65 + 190, baseY + 3);
            InitVirtualRegion(5, 65 + 250, baseY + 3);
            InitVirtualRegion(6, 65 + 310, baseY + 3);
            InitVirtualRegion(7, 65 + 370, baseY + 3);
            InitVirtualRegion(8, 65 + 430, baseY + 3);
            InitVirtualRegion(9, 65 + 490, baseY + 3);
            InitVirtualRegion(10, 65 + 550, baseY + 3);

            ChangeCards();
        }
Exemplo n.º 2
0
        internal override void Init(int width, int height)
        {
            #region 智能修正面板元素数量
            //823,575 x=8,y=5
            int borderX = 823 - cardWidth * xCount;
            int borderY = 575 - cardHeight * yCount;

            xCount = (width - borderX) * 8 / 10 / cardWidth; //0.8作为一个边缘因子
            yCount= (height - borderY) * 9 / 10 / cardHeight;
            cardCount = xCount*yCount;

            Width = xCount * cardWidth + borderX;
            Height = yCount * cardHeight + borderY;
            #endregion

            base.Init(width, height);
            show = true;
            cards = new List<int>();
            cardDetail = new CardDetail(this, cardWidth * xCount + 65, 35, cardHeight * yCount + 70);

            int baseY = cardHeight * yCount + 45;
            InitVirtualRegion(1, 65 + 10, baseY + 3);
            InitVirtualRegion(2, 65 + 70, baseY + 3);
            InitVirtualRegion(3, 65 + 130, baseY + 3);
            InitVirtualRegion(4, 65 + 190, baseY + 3);
            InitVirtualRegion(5, 65 + 250, baseY + 3);
            InitVirtualRegion(6, 65 + 310, baseY + 3);
            InitVirtualRegion(7, 65 + 370, baseY + 3);
            InitVirtualRegion(8, 65 + 430, baseY + 3);
            InitVirtualRegion(9, 65 + 490, baseY + 3);
            InitVirtualRegion(10, 65 + 550, baseY + 3);

            ChangeCards();
        }
Exemplo n.º 3
0
 public PeopleDeckViewForm()
 {
     InitializeComponent();
     this.bitmapButtonClose.ImageNormal = PicLoader.Read("ButtonBitmap", "CloseButton1.JPG");
     bitmapButtonClose.NoUseDrawNine    = true;
     this.bitmapButtonNext.ImageNormal  = PicLoader.Read("ButtonBitmap", "NextButton.JPG");
     bitmapButtonNext.NoUseDrawNine     = true;
     this.bitmapButtonPre.ImageNormal   = PicLoader.Read("ButtonBitmap", "PreButton.JPG");
     bitmapButtonPre.NoUseDrawNine      = true;
     tempImage              = new Bitmap(cardWidth * xCount, cardHeight * yCount);
     cardDetail             = new CardDetail(this, cardWidth * xCount + 65, 35, cardHeight * 7 + 105);
     nlClickLabel1.Location = new Point(70, cardHeight * yCount + 65);
     nlClickLabel1.Size     = new Size(cardWidth * xCount - 10, 70 + (7 - yCount) * cardHeight);
 }
Exemplo n.º 4
0
 public PeopleDeckViewForm()
 {
     InitializeComponent();
     this.bitmapButtonClose.ImageNormal = PicLoader.Read("ButtonBitmap", "CloseButton1.JPG");
     bitmapButtonClose.NoUseDrawNine = true;
     this.bitmapButtonNext.ImageNormal = PicLoader.Read("ButtonBitmap", "NextButton.JPG");
     bitmapButtonNext.NoUseDrawNine = true;
     this.bitmapButtonPre.ImageNormal = PicLoader.Read("ButtonBitmap", "PreButton.JPG");
     bitmapButtonPre.NoUseDrawNine = true;
     tempImage = new Bitmap(cardWidth * xCount, cardHeight*yCount);
     cardDetail = new CardDetail(this, cardWidth * xCount + 65, 35, cardHeight * 7 + 105);
     nlClickLabel1.Location = new Point(70, cardHeight * yCount + 65);
     nlClickLabel1.Size = new Size(cardWidth * xCount - 10, 70+(7-yCount)*cardHeight);
 }
Exemplo n.º 5
0
        private string itemDesStr = ""; //显示在下方的道具说明

        public DropItemViewerForm()
        {
            InitializeComponent();
            this.bitmapButtonClose.ImageNormal = PicLoader.Read("ButtonBitmap", "CloseButton1.JPG");
            bitmapButtonClose.NoUseDrawNine = true;
            this.bitmapButtonNext.ImageNormal = PicLoader.Read("ButtonBitmap", "NextButton.JPG");
            bitmapButtonNext.NoUseDrawNine = true;
            this.bitmapButtonPre.ImageNormal = PicLoader.Read("ButtonBitmap", "PreButton.JPG");
            bitmapButtonPre.NoUseDrawNine = true;
            tempImage = new Bitmap(cardWidth*xCount, cardHeight*yCount);

            cardDetail = new CardDetail(this, cardWidth * xCount + 65, 35, cardHeight * yCount + 93);
            nlClickLabel1.Location = new Point(75, cardHeight * yCount + 100);
            nlClickLabel1.Size = new Size(cardWidth * xCount - 20, 23);
        }
Exemplo n.º 6
0
        private string itemDesStr = ""; //显示在下方的道具说明

        public DropItemViewerForm()
        {
            InitializeComponent();
            this.bitmapButtonClose.ImageNormal = PicLoader.Read("ButtonBitmap", "CloseButton1.JPG");
            bitmapButtonClose.NoUseDrawNine    = true;
            this.bitmapButtonNext.ImageNormal  = PicLoader.Read("ButtonBitmap", "NextButton.JPG");
            bitmapButtonNext.NoUseDrawNine     = true;
            this.bitmapButtonPre.ImageNormal   = PicLoader.Read("ButtonBitmap", "PreButton.JPG");
            bitmapButtonPre.NoUseDrawNine      = true;
            tempImage = new Bitmap(cardWidth * xCount, cardHeight * yCount);

            cardDetail             = new CardDetail(this, cardWidth * xCount + 65, 35, cardHeight * yCount + 93);
            nlClickLabel1.Location = new Point(75, cardHeight * yCount + 100);
            nlClickLabel1.Size     = new Size(cardWidth * xCount - 20, 23);
        }
Exemplo n.º 7
0
        public override void Init(int width, int height)
        {
            #region 智能修正面板元素数量
            //823,575 x=8,y=5
            int borderX = 823 - cardWidth * xCount;
            int borderY = 575 - cardHeight * yCount;

            xCount    = (width - borderX) * 8 / 10 / cardWidth; //0.8作为一个边缘因子
            yCount    = (height - borderY) * 9 / 10 / cardHeight;
            cardCount = xCount * yCount;

            Width  = xCount * cardWidth + borderX;
            Height = yCount * cardHeight + borderY;
            #endregion

            base.Init(width, height);
            show  = true;
            cards = new List <int>();
            comboBoxCatalog.SelectedIndex = 0;
            cardDetail = new CardDetail(this, cardWidth * xCount + 65, 35, cardHeight * yCount + 70);
            ChangeCards();
        }
Exemplo n.º 8
0
        internal override void Init(int width, int height)
        {
            #region 智能修正面板元素数量
            int borderX = 783 - cardWidth * xCount;
            int borderY = 585 - cardHeight * yCount;

            xCount = (width - borderX) * 7 / 10 / cardWidth; //0.8作为一个边缘因子
            yCount = (height - borderY) * 8 / 10 / cardHeight;
            cardCount = xCount * yCount;

            Width = xCount * cardWidth + borderX;
            Height = yCount * cardHeight + borderY + 63;//63是下方说明栏跨度
            #endregion

            base.Init(width, height);
            show = true;

            cardDetail = new CardDetail(this, cardWidth * xCount + 65, 35, cardHeight * yCount + 93 + cardHeight);
            nlClickLabel1.Location = new Point(75, cardHeight * yCount + 100 + cardHeight);
            nlClickLabel1.Size = new Size(cardWidth * xCount - 20, 63);

            SetupType();
            ChangeCards();
        }
Exemplo n.º 9
0
        public override void Init(int width, int height)
        {
            #region 智能修正面板元素数量
            int borderX = 783 - cardWidth * xCount;
            int borderY = 585 - cardHeight * yCount;

            xCount    = (width - borderX) * 7 / 10 / cardWidth; //0.8作为一个边缘因子
            yCount    = (height - borderY) * 8 / 10 / cardHeight;
            cardCount = xCount * yCount;

            Width  = xCount * cardWidth + borderX;
            Height = yCount * cardHeight + borderY + 63;//63是下方说明栏跨度
            #endregion

            base.Init(width, height);
            show = true;

            cardDetail             = new CardDetail(this, cardWidth * xCount + 65, 35, cardHeight * yCount + 93 + cardHeight);
            nlClickLabel1.Location = new Point(75, cardHeight * yCount + 100 + cardHeight);
            nlClickLabel1.Size     = new Size(cardWidth * xCount - 20, 63);

            SetupType();
            ChangeCards();
        }