示例#1
0
 public override void ModSettings()
 {
     Settings.AddCheckBox(this, Verbose);
     Settings.AddCheckBox(this, ShowTriggers);
     Settings.AddCheckBox(this, EnableSound);
     Settings.AddCheckBox(this, EnableBarrier);
     Settings.AddCheckBox(this, Breakable);
     Settings.AddButton(this, ApplySettings, "MSCLoader settings are absolute bollocks.");
 }
示例#2
0
 public override void ModSettings()
 {
     Settings.AddHeader(this, "CD player settings", new Color32(0, 128, 0, 255));
     Settings.AddText(this, "Disable distortion filter on satsuma amplifier speakers");
     Settings.AddCheckBox(this, bypassDis);
     Settings.AddText(this, "Respawn purchased stuff on kitchen table");
     Settings.AddButton(this, resetCds, new Color32(255, 66, 66, 255), new Color32(255, 86, 86, 255), new Color32(255, 106, 106, 255));
     Settings.AddHeader(this, "Internet radio settings", new Color32(0, 128, 0, 255));
     Settings.AddCheckBox(this, debugInfo);
     Settings.AddCheckBox(this, RDSsim);
     Settings.AddTextBox(this, channel3url, "Stream URL...");
     Settings.AddTextBox(this, channel4url, "Stream URL...");
 }
示例#3
0
 public override void ModSettings()
 {
     // All settings should be created here.
     // DO NOT put anything else here that settings.
     Settings.AddCheckBox(this, saveEmptyBottles);
     Settings.AddCheckBox(this, saveFilledBeercases);
     Settings.AddCheckBox(this, useFilledBeercases);
     Settings.AddCheckBox(this, useAdditionalStoreGfx);
     Settings.AddCheckBox(this, useCustomBottles);
     Settings.AddCheckBox(this, printStats);
     Settings.AddButton(this, clearEmptyBottles);
     Settings.AddHeader(this, "About");
     Settings.AddText(this, "Made by: ajanhallinta");
     Settings.AddText(this, "Thanks to: Toplessgun, piotrulos, zamp, eps, haverdaven (DD), Keippa & Zeron");
     Settings.AddText(this, "Save me from collecting bottles: https://www.paypal.me/ajanhallinta");
 }
        public override void ModSettings()
        {
            serverReachable = Helper.ServerReachable(host);
            Settings.AddCheckBox(this, showBoltSizeSetting);
            Settings.AddCheckBox(this, ignoreUpdatesSetting);
            Settings.AddHeader(this, $"Change version - Current: {Version}");

            if (!serverReachable)
            {
                Settings.AddText(this, "Server couldn't be reached");
                return;
            }

            List <string> filteredXVersions = new List <string>();

            try
            {
                string        responseJson  = Helper.MakeGetRequest(GetLastXReleasesUrl(5));
                List <string> lastXVersions = JsonConvert.DeserializeObject <LastXReleasesRespons>(responseJson).data;


                for (int i = 0; i < lastXVersions.Count; i++)
                {
                    string  version         = lastXVersions[i];
                    Version versionCheckObj = new Version(version);
                    if (versionCheckObj.CompareTo(new Version("2.1.0")) <= 0)
                    {
                        continue;
                    }
                    filteredXVersions.Add(version);
                }
            }
            catch (Exception ex)
            {
                ModConsole.Print(ex.Message);
            }


            if (filteredXVersions.Count == 0)
            {
                Settings.AddText(this, "No newer versions available or latest already installed");
            }
            else
            {
                Settings.AddText(this,
                                 "This will also disable the auto updater!\n" +
                                 "The checkbox will only update when closing the settings window!");

                for (int i = 0; i < filteredXVersions.Count; i++)
                {
                    string  version         = filteredXVersions[i];
                    Version versionCheckObj = new Version(version);
                    Action  buttonAction    = new Action(delegate()
                    {
                        InstallVersion(version, true);
                    });

                    Settings buttonSetting = new Settings($"changeVersion{version}", "Install version", buttonAction);

                    if (i == 0)
                    {
                        Settings.AddButton(this, buttonSetting, new Color32(43, 191, 38, 255), new Color32(75, 255, 69, 255), new Color32(0, 255, 0, 255), $"{version} (latest)");
                    }
                    else
                    {
                        Settings.AddButton(this, buttonSetting, version);
                    }
                }
            }
        }
示例#5
0
 public override void ModSettings()
 {
     Settings.AddCheckBox(this, otherAudioAutomaticImports);
     Settings.AddButton(this, importAudioFiles);
 }
示例#6
0
 public override void ModSettings()
 {
     Settings.AddButton(this, resetCds, "Respawn purchased cds on kitchen table");
 }
示例#7
0
 public override void ModSettings()
 {
     Settings.AddButton(this, WriteButton);
 }
 public override void ModSettings()
 {
     Settings.AddButton(this, resetpos_mod, "You can find them near the Fleetari repair shop.");
     Settings.AddButton(this, reset_mod, "Changes will occur after restarting the save");
     Keybind.Add(this, keyBoostOn);
 }