Esempio n. 1
0
 private SmallDialog_NewTiles_Gfx(MImgsManager imgManagerT, TileGfxContainer tileGfxManagerT)
 {
     InitializeComponent();
     imgManager     = imgManagerT;
     tileGfxManager = tileGfxManagerT;
     initParams();
 }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 6
0
 public TileGfxElement(TileGfxContainer tileGfxManagerT)
     : base(tileGfxManagerT)
 {
     tileGfxContainer = tileGfxManagerT;
 }