Beispiel #1
0
        private static void ProcessChipsetConversion()
        {
            FileInfo inputFileInfo = new FileInfo(_commandLineOptions.InputPaths.First());

            if (!inputFileInfo.Exists)
            {
                Console.WriteLine("Input file does not exists.");
                Environment.Exit(1);
            }

            RPGMaker2000ChipsetConverter converter = new RPGMaker2000ChipsetConverter();
            RPGMakerXPTileset            tileset   = converter.ToRPGMakerXpTileset(inputFileInfo.FullName);

            tileset.SaveAll(Path.GetFileNameWithoutExtension(inputFileInfo.FullName), ".");
        }
Beispiel #2
0
        private static void ProcessChipsetConversion()
        {
            FileInfo inputFileInfo = new FileInfo(_commandLineOptions.InputPaths.First());

            if (!inputFileInfo.Exists)
            {
                Console.WriteLine("Input file does not exists.");
                Environment.Exit(1);
            }

            RPGMaker2000ChipsetConverter converter = new RPGMaker2000ChipsetConverter();
            RPGMakerXPTileset tileset = converter.ToRPGMakerXpTileset(inputFileInfo.FullName);

            tileset.SaveAll(Path.GetFileNameWithoutExtension(inputFileInfo.FullName), ".");
        }
Beispiel #3
0
        private void chipsetConvertButton_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(chipsetPathTextBox.Text) || String.IsNullOrEmpty(tilesetOutputDirectoryTextBox.Text))
            {
                return;
            }

            if (!File.Exists(chipsetPathTextBox.Text) || !Directory.Exists(tilesetOutputDirectoryTextBox.Text))
            {
                return;
            }

            FileInfo inputFileInfo = new FileInfo(chipsetPathTextBox.Text);

            RPGMaker2000ChipsetConverter converter = new RPGMaker2000ChipsetConverter();
            RPGMakerXPTileset            tileset   = converter.ToRPGMakerXpTileset(chipsetPathTextBox.Text);

            tileset.SaveAll(Path.GetFileNameWithoutExtension(inputFileInfo.FullName), tilesetOutputDirectoryTextBox.Text);

            MessageBox.Show("Conversion successful!", "Conversion successful!", MessageBoxButtons.OK,
                            MessageBoxIcon.Information);
        }
Beispiel #4
0
        private void chipsetConvertButton_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(chipsetPathTextBox.Text) || String.IsNullOrEmpty(tilesetOutputDirectoryTextBox.Text))
            {
                return;
            }

            if (!File.Exists(chipsetPathTextBox.Text) || !Directory.Exists(tilesetOutputDirectoryTextBox.Text))
            {
                return;
            }

            FileInfo inputFileInfo = new FileInfo(chipsetPathTextBox.Text);

            RPGMaker2000ChipsetConverter converter = new RPGMaker2000ChipsetConverter();
            RPGMakerXPTileset tileset = converter.ToRPGMakerXpTileset(chipsetPathTextBox.Text);

            tileset.SaveAll(Path.GetFileNameWithoutExtension(inputFileInfo.FullName), tilesetOutputDirectoryTextBox.Text);

            MessageBox.Show("Conversion successful!", "Conversion successful!", MessageBoxButtons.OK,
                MessageBoxIcon.Information);
        }