示例#1
0
        private void cbCrashSoundEffect_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (cbCrashSoundEffect.SelectedIndex)
            {
            case 0:
                var PlatesHdFiles = Directory.GetFiles(RTC_Core.rtcDir + "\\ASSETS\\PLATESHD");
                RTC_NetCoreSettings.loadedSounds = PlatesHdFiles.Select(it => new SoundPlayer(it)).ToArray();
                break;

            case 1:
                RTC_NetCoreSettings.loadedSounds = new SoundPlayer[] { new SoundPlayer(RTC_Core.rtcDir + "\\ASSETS\\crash.wav") };
                break;

            case 2:
                RTC_NetCoreSettings.loadedSounds = null;
                break;

            case 3:
                var CrashSoundsFiles = Directory.GetFiles(RTC_Core.rtcDir + "\\ASSETS\\CRASHSOUNDS");
                RTC_NetCoreSettings.loadedSounds = CrashSoundsFiles.Select(it => new SoundPlayer(it)).ToArray();
                break;
            }

            RTC_Params.SetParam("CRASHSOUND", cbCrashSoundEffect.SelectedIndex.ToString());
        }
示例#2
0
        private void RTC_Form_Load(object sender, EventArgs e)
        {
            btnLogo.Text = "    Version " + RTC_Core.RtcVersion;


            if (!RTC_Params.IsParamSet("DISCLAIMER_READ"))
            {
                MessageBox.Show(File.ReadAllText(RTC_Core.rtcDir + "\\LICENSES\\DISCLAIMER.TXT").Replace("[ver]", RTC_Core.RtcVersion), "RTC", MessageBoxButtons.OK, MessageBoxIcon.Information);
                RTC_Params.SetParam("DISCLAIMER_READ");
            }

            RTC_Core.CheckForProblematicProcesses();

            if (RTC_Core.isStandalone)
            {
                GhostBoxInvisible(btnEasyMode);
                GhostBoxInvisible(btnEngineConfig);
                GhostBoxInvisible(btnGlitchHarvester);
                GhostBoxInvisible(btnStockpilePlayer);
                GhostBoxInvisible(btnRTCMultiplayer);
                GhostBoxInvisible(btnManualBlast);
                GhostBoxInvisible(btnAutoCorrupt);
                GhostBoxInvisible(pnCrashProtection);
            }
            else
            {
                btnEngineConfig_Click(sender, e);
                pnCrashProtectionUnavailable.Visible = true;
            }
        }
示例#3
0
        private void cbAllowCrossCoreCorruption_CheckedChanged(object sender, EventArgs e)
        {
            if (cbAllowCrossCoreCorruption.Checked)
            {
                RTC_Params.SetParam("ALLOW_CROSS_CORE_CORRUPTION");
            }
            else
            {
                RTC_Params.RemoveParam("ALLOW_CROSS_CORE_CORRUPTION");
            }

            RTC_Core.AllowCrossCoreCorruption = cbAllowCrossCoreCorruption.Checked;
        }
示例#4
0
        private void cbDisableBizhawkOSD_CheckedChanged(object sender, EventArgs e)
        {
            if (cbDisableBizhawkOSD.Checked)
            {
                RTC_Params.RemoveParam("ENABLE_BIZHAWK_OSD");
            }
            else
            {
                RTC_Params.SetParam("ENABLE_BIZHAWK_OSD");
            }

            RTC_Core.SendCommandToBizhawk(new RTC_Command(CommandType.BIZHAWK_SET_OSDDISABLED)
            {
                objectValue = cbDisableBizhawkOSD.Checked
            });
        }