Esempio n. 1
0
        public BatchExtractor(Color ButtonBackColor, Color ButtonTextColor)
        {
            InitializeComponent();
            Tools               = new NemoTools();
            Parser              = new DTAParser();
            inputFiles          = new List <string>();
            mMenuBackground     = menuStrip1.BackColor;
            menuStrip1.Renderer = new DarkRenderer();
            var formButtons = new List <Button> {
                btnRefresh, btnFolder, btnBegin, btnSelect, btnDeselect, btnConverter
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }

            //load last used directory if saved and still exists
            Log("Welcome to Batch Extractor");
            Log("Drag and drop the CON /LIVE file(s) here");
            Log("Or click 'Change Input Folder' to select the files");

            config = Application.StartupPath + "\\bin\\config\\extractor.config";
            if (!File.Exists(config))
            {
                return;
            }
            var sr   = new StreamReader(config);
            var line = sr.ReadLine();

            sr.Dispose();
            if (string.IsNullOrWhiteSpace(line))
            {
                Tools.DeleteFile(config);
            }
            else if (line != "" && Directory.Exists(line))
            {
                Log("");
                Log("Loaded last directory used: " + line);
                txtFolder.Text = line;
            }
            else
            {
                Tools.DeleteFile(config);
            }
            if (string.IsNullOrWhiteSpace(txtFolder.Text))
            {
                Log("Ready to begin");
            }
        }
Esempio n. 2
0
        public ProUpgradeBundler(Color ButtonBackColor, Color ButtonTextColor)
        {
            InitializeComponent();

            Tools              = new NemoTools();
            Parser             = new DTAParser();
            SongInstruments    = new List <string>();
            UpgradeInstruments = new List <string>();
            UpgradeMidis       = new List <string>();
            upgradeID          = NA;
            songID             = NA;
            song_int_name      = NA;
            upgrade_int_name   = NA;

            var formButtons = new List <Button> {
                btnReset, btnBundle
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }

            var bundlerFolder = Application.StartupPath + "\\bundler\\";

            if (!Directory.Exists(bundlerFolder))
            {
                Directory.CreateDirectory(bundlerFolder);
            }
            temp_folder = bundlerFolder + "temp\\";
            if (!Directory.Exists(temp_folder))
            {
                Directory.CreateDirectory(temp_folder);
            }
        }
Esempio n. 3
0
        public AdvancedArtConverter(string Folder, Color ButtonBackColor, Color ButtonTextColor)
        {
            InitializeComponent();

            Tools = new NemoTools {
                TextureSize = 512
            };

            var formButtons = new List <Button> {
                btnRefresh, btnFolder, btnToPS3, btnFromPS3, btnToWii, btnFromWii, btnToXbox, btnFromXbox
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }

            Log("Welcome to Advanced Art Converter");
            Log("Drag and drop the file(s) to be converted here");
            Log("Or click 'Change Input Folder' to select the files");
            Log("Ready to begin");

            //folder sent via command line is more important
            var pngDir = Folder != "" ? Folder : "";

            //load last used directory if saved and still exists
            config = Application.StartupPath + "\\bin\\config\\art.config";
            if (string.IsNullOrWhiteSpace(pngDir))
            {
                if (File.Exists(config))
                {
                    var sr   = new StreamReader(config);
                    var line = sr.ReadLine();
                    sr.Dispose();
                    if (string.IsNullOrWhiteSpace(line))
                    {
                        Tools.DeleteFile(config);
                    }
                    else if (line != "" && Directory.Exists(line))
                    {
                        Log("Loaded last directory used");
                        pngDir = line;
                    }
                    else
                    {
                        Tools.DeleteFile(config);
                    }
                }
            }
            txtFolder.Text = pngDir;
            imgCounter     = 0;

            wimgt = Application.StartupPath + "\\bin\\wimgt.exe";
            if (File.Exists(wimgt))
            {
                return;
            }
            MessageBox.Show("Can't find wimgt.exe ... I won't be able to convert Wii files without it",
                            "Missing Executable", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            tabWii.Enabled = false;
        }
Esempio n. 4
0
        public SaveFileImageEditor(Color ButtonBackColor, Color ButtonTextColor)
        {
            InitializeComponent();

            wimgt        = Application.StartupPath + "\\bin\\wimgt.exe";
            EditorFolder = Application.StartupPath + "\\editor\\";
            if (!Directory.Exists(EditorFolder))
            {
                Directory.CreateDirectory(EditorFolder);
            }
            Tools = new NemoTools();

            for (var i = 1; i < 6; i++)
            {
                if (File.Exists(Application.StartupPath + "\\res\\bg" + i + ".png"))
                {
                    cboBackgrounds.Items.Add("Background " + i);
                }
            }
            cboBackgrounds.SelectedIndex = 0;

            picCharacter.AllowDrop = true;
            picArt.AllowDrop       = true;

            var formButtons = new List <Button> {
                btnExportArt, btnExportChar, btnReplaceArt, btnReplaceChar, btnRename
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }

            Tools.CurrentFolder     = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            console                 = "";
            Tools.SaveFileCharNames = new List <string>();
            Log("Welcome to the Save File Image Editor");
            Log("Click 'File' -> 'Open file' to select a save game file");
            Log("Or drag and drop it anywhere on this form");
            Log("Ready");
        }
Esempio n. 5
0
        public CONCreator(Color ButtonBackColor, Color ButtonTextColor)
        {
            InitializeComponent();

            Tools = new NemoTools();
            var y = new List <PackageType>();

            picContent.AllowDrop = true;
            picPackage.AllowDrop = true;

            btnCreate.BackColor = ButtonBackColor;
            btnCreate.ForeColor = ButtonTextColor;
            btnCreate.FlatAppearance.MouseOverBackColor = btnCreate.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(btnCreate.BackColor);

            moggs    = new List <string>();
            xsession = new CreateSTFS();
            var x = (PackageType[])Enum.GetValues(typeof(PackageType));

            y.AddRange(x);
            node1.DataKey            = (ushort)0xFFFF;
            node1.NodeClick         += xReturn_NodeClick;
            folderTree.SelectedIndex = 0;

            cboGameID.SelectedIndex = 2;
            toolTip1.SetToolTip(picContent, "Click here to select the Content Image (visible in here)");
            toolTip1.SetToolTip(picPackage, "Click here to select the Package Image (visible in the Xbox dashboard)");
            toolTip1.SetToolTip(btnCreate, "Click here to create the song package");
            toolTip1.SetToolTip(radioCON, "Click here for use with retail consoles");
            toolTip1.SetToolTip(radioLIVE, "Click here for use with modded consoles");
            toolTip1.SetToolTip(txtDisplay, "Enter a title for your pack (visible in the Xbox dashboard)");
            toolTip1.SetToolTip(txtDescription, "Enter a description for your pack (visible in here)");
            toolTip1.SetToolTip(folderTree, "Add folders here");
            toolTip1.SetToolTip(fileList, "Add files here");
            toolTip1.SetToolTip(groupBox1, "Choose the format for your pack - default is CON");
            AddFolder("songs");
        }
Esempio n. 6
0
        public FileIndexer(Color ButtonBackColor, Color ButtonTextColor)
        {
            InitializeComponent();
            Tools         = new NemoTools();
            Parser        = new DTAParser();
            Songs         = new List <SongIndex>();
            FilteredSongs = new List <SongIndex>();
            config        = Application.StartupPath + "\\bin\\config\\indexer.config";
            LoadConfig();
            var indexFolder = Application.StartupPath + "\\bin\\indexer\\";

            if (!Directory.Exists(indexFolder))
            {
                Directory.CreateDirectory(indexFolder);
            }
            Index = indexFolder + "index.c3";
            var formButtons = new List <Button> {
                btnBuild, btnClear, btnDelete, btnNew, btnClearSearch
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }
        }
Esempio n. 7
0
        public RBAConverter(Color ButtonBackColor, Color ButtonTextColor, string inputfolder = "")
        {
            InitializeComponent();
            Tools          = new NemoTools();
            Parser         = new DTAParser();
            FilesToConvert = new List <string>();
            var formButtons = new List <Button> {
                btnRefresh, btnFolder, btnBegin
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }
            config        = Application.StartupPath + "\\bin\\config\\rbaconverter.config";
            StartupFolder = inputfolder;
        }
Esempio n. 8
0
        public SetlistDetails(Form xParent, Color ButtonBackColor, Color ButtonTextColor)
        {
            var setlist = xParent;

            InitializeComponent();

            Tools  = new NemoTools();
            Parser = new DTAParser();
            Stats  = new List <ListViewItem>();

            Left       = setlist.Left + ((setlist.Width - Width) / 2);
            Top        = setlist.Top + ((setlist.Height - Height) / 2);
            ControlBox = false;

            var formButtons = new List <Button> {
                btnExport, btnClose
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }
        }
Esempio n. 9
0
        public PhaseShiftConverter(Color ButtonBackColor, Color ButtonTextColor)
        {
            InitializeComponent();

            //initialize
            Song   = new PhaseShiftSong();
            Tools  = new NemoTools();
            Parser = new DTAParser();

            inputFiles = new List <string>();
            inputDir   = Application.StartupPath + "\\phaseshift\\";
            if (!Directory.Exists(inputDir))
            {
                Directory.CreateDirectory(inputDir);
            }

            var formButtons = new List <Button> {
                btnReset, btnRefresh, btnFolder, btnBegin
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }

            rar = Application.StartupPath + "\\bin\\rar.exe";
            if (!File.Exists(rar))
            {
                MessageBox.Show("Can't find rar.exe ... I won't be able to create RAR files for your songs without it",
                                "Missing Executable", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                chkRAR.Checked = false;
                chkRAR.Enabled = false;
            }

            toolTip1.SetToolTip(btnBegin, "Click to begin process");
            toolTip1.SetToolTip(btnFolder, "Click to select the input folder");
            toolTip1.SetToolTip(btnRefresh, "Click to refresh if the contents of the folder have changed");
            toolTip1.SetToolTip(txtFolder, "This is the working directory");
            toolTip1.SetToolTip(lstLog, "This is the application log. Right click to export");
        }
Esempio n. 10
0
        public VideoPreparer(Color ButtonBackColor, Color ButtonTextColor)
        {
            InitializeComponent();

            inputFiles = new List <string>();
            Tools      = new NemoTools();
            Parser     = new DTAParser();
            inputDir   = Application.StartupPath + "\\videoprep_input\\";

            groupBox1.AllowDrop = true;

            tempFolder = Application.StartupPath + "\\videoprep_temp\\";
            Tools.DeleteFolder(tempFolder, true);

            toolTip1.SetToolTip(btnBegin, "Click to begin process");
            toolTip1.SetToolTip(btnFolder, "Click to select the input folder");
            toolTip1.SetToolTip(btnRefresh, "Click to refresh if the contents of the folder have changed");
            toolTip1.SetToolTip(txtFolder, "This is the working directory");
            toolTip1.SetToolTip(txtTitle, "Enter a title for your pack (visible in the Xbox dashboard)");
            toolTip1.SetToolTip(lstLog, "This is the application log. Right click to export");

            nextFriday = DateTime.Today;
            while (nextFriday.DayOfWeek != DayOfWeek.Friday)
            {
                nextFriday = nextFriday.AddDays(1D);
            }

            var month = "0" + nextFriday.Month;

            month = month.Substring(month.Length - 2, 2);
            var day = "0" + nextFriday.Day;

            day      = day.Substring(day.Length - 2, 2);
            PackDate = month + "/" + day + "/" + nextFriday.Year.ToString(CultureInfo.InvariantCulture).Substring(2, 2);

            var formButtons = new List <Button> {
                btnFolder, btnRefresh, btnReset, btnView, btnBegin
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }

            if (!Directory.Exists(tempFolder))
            {
                Directory.CreateDirectory(tempFolder);
            }
        }
Esempio n. 11
0
        public CONExplorer(Color ButtonBackColor, Color ButtonTextColor, bool runningshortcut = false)
        {
            CheckForIllegalCrossThreadCalls = true;
            InitializeComponent();
            mMenuBackground            = contextMenuStrip1.BackColor;
            contextMenuStrip1.Renderer = new DarkRenderer();

            picContent.AllowDrop = true;
            picPackage.AllowDrop = true;
            btnDTA.AllowDrop     = true;
            btnMIDI.AllowDrop    = true;
            btnMOGG.AllowDrop    = true;
            btnPNG.AllowDrop     = true;

            Tools             = new NemoTools();
            Parser            = new DTAParser();
            isRunningShortcut = runningshortcut;

            var formButtons = new List <Button> {
                btnExtract, btnSave, btnVisualize
            };

            foreach (var button in formButtons)
            {
                button.BackColor = ButtonBackColor;
                button.ForeColor = ButtonTextColor;
                button.FlatAppearance.MouseOverBackColor = button.BackColor == Color.Transparent ? Color.FromArgb(127, Color.AliceBlue.R, Color.AliceBlue.G, Color.AliceBlue.B) : Tools.LightenColor(button.BackColor);
            }

            toolTip1.SetToolTip(picContent, "Click here to select the Content Image (visible in here)");
            toolTip1.SetToolTip(picPackage, "Click here to select the Package Image (visible in the Xbox dashboard)");
            toolTip1.SetToolTip(radioCON, "Click to save as CON when rebuilding");
            toolTip1.SetToolTip(radioLIVE, "Click to save as LIVE when rebuilding");
            toolTip1.SetToolTip(btnExtract, "Click to extract the whole CON file");
            toolTip1.SetToolTip(btnSave, "Click to sign and rebuild CON file");
            toolTip1.SetToolTip(txtTitle, "Package Title (optional)");
            toolTip1.SetToolTip(txtDescription, "Package Description (optional)");
            toolTip1.SetToolTip(btnVisualize, "Click to open in Visualizer");
        }