public void UpdateMapSheet() { MapTable mt = DC.I.MapTableList[DC.I.MapTableIndex]; for (int x = 0; x < mt.Width; x++) { for (int y = 0; y < mt.Height; y++) { TileImage tile = mt.Table[y][x].Tile; Image image; if (this.MapSheet[x, y].Selected) { image = tile.SelectedImage.ImageData; } else { image = tile.NormalImage.ImageData; } if (this.MapSheet[x, y].Value != image) { this.MapSheet[x, y].Value = image; } } } }
public void LoadMapSheet() { MapTable mt = DC.I.MapTableList[DC.I.MapTableIndex]; Tools.ResizeTileSheet(this.MapSheet, mt.Height, mt.Width); this.UpdateMapSheet(); }