private SmallDialog_NewTiles_Gfx(MImgsManager imgManagerT, TileGfxContainer tileGfxManagerT) { InitializeComponent(); imgManager = imgManagerT; tileGfxManager = tileGfxManagerT; initParams(); }
//自动生成图片方格 public static int generateTiles(MImgsManager imgManagerT, TileGfxContainer tileGfxManagerT) { number = 0; SmallDialog_NewTiles_Gfx dialog = new SmallDialog_NewTiles_Gfx(imgManagerT, tileGfxManagerT); dialog.ShowDialog(); return(number); }
public TileGfxElement Clone(TileGfxContainer clipsManager) { TileGfxElement newInstance = new TileGfxElement(clipsManager); newInstance.copyBase(this); newInstance.transFlag = transFlag; newInstance.xInContainer = xInContainer; newInstance.yInContainer = yInContainer; return(newInstance); }
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); }
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); }
public TileGfxElement(TileGfxContainer tileGfxManagerT) : base(tileGfxManagerT) { tileGfxContainer = tileGfxManagerT; }