예제 #1
0
        public static void Save(ref List <FileRecognization> aFileRec, bool aToUOP)
        {
            Console.WriteLine("Saving .mul files");
            if (!Directory.Exists("Patched"))
            {
                Directory.CreateDirectory("Patched");
            }

            bool lArtsPacked = false;

            foreach (FileRecognization lValue in aFileRec)
            {
                switch (lValue)
                {
                case FileRecognization.Art:
                case FileRecognization.ArtLand:
                    if (lArtsPacked)
                    {
                        continue;
                    }
                    Art.Save("Patched");
                    lArtsPacked = true;
                    Console.WriteLine("MUL file of Arts saved!");
                    if (aToUOP)
                    {
                        Console.Write("UOP file of Arts packing...");
                        Utility.PackUOP(FileType.ArtLegacyMUL);
                        Console.WriteLine("UOP file of Arts created!");
                    }
                    break;

                case FileRecognization.Gump:
                    Gumps.Save("Patched");
                    Console.WriteLine("MUL file of Gumps saved!");
                    if (aToUOP)
                    {
                        Console.Write("UOP file of Gumps packing...");
                        Utility.PackUOP(FileType.GumpartLegacyMUL);
                        Console.WriteLine("UOP file of Gumps created!");
                    }
                    break;

                case FileRecognization.Texture:
                    Textures.Save("Packed");
                    Console.WriteLine("MUL file of Textures saved!");
                    break;
                }
            }
            Console.WriteLine("Patched files find in 'Patched' directory...");
        }
예제 #2
0
        private void OnClickSave(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Are you sure? Will take a while", "Save", MessageBoxButtons.YesNo,
                                                  MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);

            if (result != DialogResult.Yes)
            {
                return;
            }

            Cursor.Current = Cursors.WaitCursor;
            Gumps.Save(Options.OutputPath);
            Cursor.Current = Cursors.Default;
            MessageBox.Show($"Saved to {Options.OutputPath}", "Save", MessageBoxButtons.OK, MessageBoxIcon.Information,
                            MessageBoxDefaultButton.Button1);
            Options.ChangedUltimaClass["Gumps"] = false;
        }
예제 #3
0
파일: Gump.cs 프로젝트: m309/fiddler-plus
        private void OnClickSave(object sender, EventArgs e)
        {
            DialogResult result =
                MessageBox.Show("Are you sure? Will take a while", "Save",
                                MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);

            if (result == DialogResult.Yes)
            {
                Cursor.Current = Cursors.WaitCursor;
                Gumps.Save(AppDomain.CurrentDomain.SetupInformation.ApplicationBase);
                Cursor.Current = Cursors.Default;
                MessageBox.Show(
                    String.Format("Saved to {0}", AppDomain.CurrentDomain.SetupInformation.ApplicationBase),
                    "Save",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Information,
                    MessageBoxDefaultButton.Button1);
                Options.ChangedUltimaClass["Gumps"] = false;
            }
        }
예제 #4
0
        public static void Save(int aChoose)
        {
            Console.WriteLine("Saving .mul files");
            if (!Directory.Exists("Patched"))
            {
                Directory.CreateDirectory("Patched");
            }
            switch (aChoose)
            {
            case 1:
            case 11:
                Art.Save("Patched");
                break;

            case 2:
            case 22:
                Gumps.Save("Patched");
                break;

            case 3:
                Textures.Save("Patched");
                break;
            }
            Console.WriteLine("MUL files saved!");

            if (aChoose == 11 || aChoose == 22)
            {
                Console.WriteLine("Packing to .uop");
                if (aChoose == 11)
                {
                    Utility.PackUOP(FileType.ArtLegacyMUL);
                }
                else if (aChoose == 22)
                {
                    Utility.PackUOP(FileType.GumpartLegacyMUL);
                }
                Console.WriteLine("Packed!");
            }
            Console.WriteLine("Patched files find in 'Patched' directory...");
        }