示例#1
0
 private SmallDialog_NewTiles_Gfx(MImgsManager imgManagerT, TileGfxContainer tileGfxManagerT)
 {
     InitializeComponent();
     imgManager     = imgManagerT;
     tileGfxManager = tileGfxManagerT;
     initParams();
 }
示例#2
0
        //自动生成图片方格
        public static int generateTiles(MImgsManager imgManagerT, TileGfxContainer tileGfxManagerT)
        {
            number = 0;
            SmallDialog_NewTiles_Gfx dialog = new SmallDialog_NewTiles_Gfx(imgManagerT, tileGfxManagerT);

            dialog.ShowDialog();
            return(number);
        }
示例#3
0
        public TileGfxElement Clone(TileGfxContainer clipsManager)
        {
            TileGfxElement newInstance = new TileGfxElement(clipsManager);

            newInstance.copyBase(this);
            newInstance.transFlag    = transFlag;
            newInstance.xInContainer = xInContainer;
            newInstance.yInContainer = yInContainer;
            return(newInstance);
        }
示例#4
0
        public TileGfxContainer clone()
        {
            TileGfxContainer newInstance = new TileGfxContainer((TileGfxManager)parent, name);

            for (int i = 0; i < Count(); i++)
            {
                TileGfxElement baseClip    = (TileGfxElement)this[i];
                TileGfxElement newBaseClip = baseClip.Clone(newInstance);
                newInstance.Add(newBaseClip);
            }
            return(newInstance);
        }
示例#5
0
        public TileGfxContainer cloneForExceport(MapsManager mapsManager, MImgsManager imagesManager)
        {
            TileGfxContainer newInstance = new TileGfxContainer((TileGfxManager)parent, name);

            for (int i = 0; i < Count(); i++)
            {
                TileGfxElement baseClip    = (TileGfxElement)this[i];
                TileGfxElement newBaseClip = baseClip.Clone(newInstance);
                newBaseClip.imageElement = imagesManager[newBaseClip.imageElement.GetID()];
                newInstance.Add(newBaseClip);
            }
            return(newInstance);
        }
示例#6
0
 public TileGfxElement(TileGfxContainer tileGfxManagerT)
     : base(tileGfxManagerT)
 {
     tileGfxContainer = tileGfxManagerT;
 }