Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions tool/Tiled2Unity/src/Tiled2UnityForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion tool/Tiled2Unity/src/Tiled2UnityForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial class Tiled2UnityForm : Form
private string[] args = null;
private TmxMap tmxMap = null;
private TiledMapExporter tmxExporter = null;

private List<string> warnings = new List<string>();
private List<string> errors = new List<string>();

Expand Down Expand Up @@ -348,6 +348,24 @@ private void richTextBoxOutput_LinkClicked(object sender, LinkClickedEventArgs e
System.Diagnostics.Process.Start(e.LinkText);
}

private void batchProcessToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenFileDialog dialog = new OpenFileDialog();
dialog.InitialDirectory = Properties.Settings.Default.LastOpenDirectory;
dialog.Title = "Open Tiled (*.tmx) File";
dialog.Filter = "TMX files (*.tmx)|*.tmx";
dialog.RestoreDirectory = true;
dialog.Multiselect = true;

if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
string path = this.textBoxExportFolder.Text;

foreach (var fileName in dialog.FileNames) {
OpenTmxFile(fileName);
this.tmxExporter.Export(path);
}
}
}
}
}

Expand Down