Esempio n. 1
0
 public void Init()
 {
     show = true;
     myCursor.ChangeCursor("default");
     this.bitmapButtonLeft.ImageNormal = PicLoader.Read("ButtonBitmap", "PreButton.JPG");
     bitmapButtonLeft.NoUseDrawNine = true;
     this.bitmapButtonRight.ImageNormal = PicLoader.Read("ButtonBitmap", "NextButton.JPG");
     bitmapButtonRight.NoUseDrawNine = true;
     items = new MiniItemViewItem[cellCount];
     for (int i = 0; i < cellCount; i++)
     {
         items[i] = new MiniItemViewItem(i+1, 30 * (i % 2), i / 2 * 35);
     }
     cds = new int[cdCount];
     for (int i = 0; i < cellCount; i++)
     {
         cds[i] = 0;
     }
     RefreshList();
 }
Esempio n. 2
0
        }                                    //只有某一子类别的道具可以进入这个背包

        public void Init()
        {
            show = true;
            myCursor.ChangeCursor("default");
            this.bitmapButtonLeft.ImageNormal  = PicLoader.Read("ButtonBitmap", "PreButton.JPG");
            bitmapButtonLeft.NoUseDrawNine     = true;
            this.bitmapButtonRight.ImageNormal = PicLoader.Read("ButtonBitmap", "NextButton.JPG");
            bitmapButtonRight.NoUseDrawNine    = true;
            items = new MiniItemViewItem[cellCount];
            for (int i = 0; i < cellCount; i++)
            {
                items[i] = new MiniItemViewItem(i + 1, 30 * (i % 2), i / 2 * 35);
            }
            cds = new int[cdCount];
            for (int i = 0; i < cellCount; i++)
            {
                cds[i] = 0;
            }
            RefreshList();
        }