Пример #1
0
        /*private void StatusUpdate()
         * {
         *  if (Directory.Exists(BlepOut.ModFolder + @"Language") || Directory.Exists(BlepOut.PluginsFolder + @"Language"))
         *  {
         *      labelSTATUS_COMMOD.Text = "Language pack detected";
         *  }
         *  else
         *  {
         *      labelSTATUS_COMMOD.Text = "None found";
         *  }
         *
         *  if (Directory.Exists(BlepOut.ModFolder + @"CustomResources"))
         *  {
         *      labelSTATUS_CRS.Text = "CRS folder found";
         *  }
         *  else
         *  {
         *      labelSTATUS_CRS.Text = "None detected";
         *  }
         *
         *  if (File.Exists(BlepOut.RootPath + @"\edtSetup.json"))
         *  {
         *      labelSTATUS_EDT.Text = "EDT config found";
         *  }
         *
         *  else
         *  {
         *      labelSTATUS_EDT.Text = "Not enabled";
         *  }
         *
         *
         * }*/
        private void FetchStuff()
        {
            Debug.WriteLine("Fetching jsons and stuff.");
            CRSlist.Items.Clear();
            regmodlist.Clear();
            if (Directory.Exists(CRSpath))
            {
                string[] CRcts = Directory.GetDirectories(CRSpath);
                foreach (string path in CRcts)
                {
                    regmodlist.Add(new RegModData(path));
                }
                foreach (RegModData rmd in regmodlist)
                {
                    CRSlist.Items.Add(rmd);
                }
            }
            labelCRSCTR.Text = CRSlist.Items.Count.ToString();
            EDTCFGDATA.loadJo();

            if (Directory.Exists(langinplugins))
            {
                labelCOMMODSTATUS.Text  = "Everything seems fine.";
                labelCOMMODDETAILS.Text = "Language folder is in the correct spot.";
                buttonMM2P.Visible      = false;
            }
            else if (Directory.Exists(langinmods))
            {
                labelCOMMODSTATUS.Text  = "Language folder is in the wrong spot!";
                labelCOMMODDETAILS.Text = @"Translation patch files have been found inside Mods but not Plugins. Press the button below to order BOI to move translation patch to RainWorld\BepInEx\plugins, or move it manually if you want it enabled.";
                buttonMM2P.Visible      = true;
            }
            else
            {
                labelCOMMODSTATUS.Text  = "Nothing found.";
                labelCOMMODDETAILS.Text = string.Empty;

                buttonMM2P.Visible = false;
            }
        }
Пример #2
0
 private void DrawEDTpage()
 {
     readytoapply = false;
     EDTCFGDATA.loadJo();
     if (EDTCFGDATA.jo == null)
     {
         tableLayoutPanel10.Enabled = false;
     }
     else
     {
         tableLayoutPanel10.Enabled      = true;
         textBoxEDT_STARTMAP.Text        = EDTCFGDATA.startmap;
         checkBoxEDT_QUICKSTART.Checked  = (bool)EDTCFGDATA.skiptitle;
         textBoxEDT_CHARSELECT.Text      = (EDTCFGDATA.forcechar == null) ? string.Empty : EDTCFGDATA.forcechar.ToString();
         checkBoxEDT_DISABLERAIN.Checked = (bool)EDTCFGDATA.norain;
         checkBoxEDT_EDT.Checked         = (bool)EDTCFGDATA.devtools;
         TextBoxEDT_CHEATKARMA.Text      = (EDTCFGDATA.cheatkarma == null) ? string.Empty : EDTCFGDATA.cheatkarma.ToString();
         checkBoxEDT_MAPREVEAL.Checked   = (bool)EDTCFGDATA.revealmap;
         checkBoxEDT_FORCEGLOW.Checked   = (bool)EDTCFGDATA.forcelight;
         checkBoxEDT_BAKE.Checked        = (bool)EDTCFGDATA.bake;
         checkBoxEDT_ENCRYPT.Checked     = (bool)EDTCFGDATA.encrypt;
     }
     readytoapply = true;
 }
Пример #3
0
 private void DrawEDTpage()
 {
     readytoapply = false;
     EDTCFGDATA.loadJo();
     if (EDTCFGDATA.cfg == null)
     {
         tableLayoutPanel10.Enabled = false;
     }
     else
     {
         tableLayoutPanel10.Enabled      = true;
         textBoxEDT_STARTMAP.Text        = EDTCFGDATA.cfg.start_map;
         checkBoxEDT_QUICKSTART.Checked  = EDTCFGDATA.cfg.skip_title;
         textBoxEDT_CHARSELECT.Text      = EDTCFGDATA.cfg.force_selected_character.ToString();
         checkBoxEDT_DISABLERAIN.Checked = EDTCFGDATA.cfg.no_rain;
         checkBoxEDT_EDT.Checked         = EDTCFGDATA.cfg.devtools;
         TextBoxEDT_CHEATKARMA.Text      = EDTCFGDATA.cfg.cheat_karma.ToString();
         checkBoxEDT_MAPREVEAL.Checked   = (bool)EDTCFGDATA.cfg.reveal_map;
         checkBoxEDT_FORCEGLOW.Checked   = (bool)EDTCFGDATA.cfg.force_light;
         checkBoxEDT_BAKE.Checked        = (bool)EDTCFGDATA.cfg.bake;
         checkBoxEDT_ENCRYPT.Checked     = (bool)EDTCFGDATA.cfg.encrypt;
     }
     readytoapply = true;
 }