Exemple #1
0
        public void Draw(DXItemCell cell, int index)
        {
            if (InterfaceLibrary == null)
            {
                return;
            }

            if (cell.Item != null)
            {
                return;
            }

            Size s = InterfaceLibrary.GetSize(index);
            int  x = (cell.Size.Width - s.Width) / 2 + cell.DisplayArea.X;
            int  y = (cell.Size.Height - s.Height) / 2 + cell.DisplayArea.Y;

            InterfaceLibrary.Draw(index, x, y, Color.White, false, 0.2F, ImageType.Image);
        }