static void Main(String[] args)
 {
     if (args.Length == 4)
     {
         Application.SetCompatibleTextRenderingDefault(false);
         MainIO main = new MainIO(true);
         main.readMapFile(args[0]);
         main.createRegionPatchFile(args[1], args[2], args[3], true, true, true, true, true, true);
         main.close();
     }
     else
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run(new Form1());
     }
 }
Beispiel #2
0
        void btnSave_Click(object sender, EventArgs e)
        {
            string prKey = (sender as Button).Tag as string;

            SaveFileDialog sfd = new SaveFileDialog();

            sfd.Filter   = "Lua Dateien (*.lua)|*.lua|Alle Dateien (*.*)|*.*";
            sfd.FileName = prKey.ToLower() + ".lua";
            if (sfd.ShowDialog() != DialogResult.OK)
            {
                return;
            }


            bool entities = cbEntities.Checked, textures = cbTextures.Checked, heights = cbHeights.Checked, vertexColors = cbVertexColors.Checked, waterTypes = cbWaterTypes.Checked, waterLevels = cbWaterLevels.Checked;

            main.createRegionPatchFile(prKey, sfd.FileName, prKey, entities, textures, heights, vertexColors, waterTypes, waterLevels);
        }