////////////////////////////////////////////////////////// // Rewrite Milkdrop Parameters public void reWrite() { // Initial .milk Parameters string[] parameters = { "[preset00]", "fDecay=" + decay.ToString(), "fGammaAdj=" + gamma.ToString(), "nWaveMode=" + waveMode.ToString(), "bAdditiveWaves=" + waveAdditive.ToString(), "bWaveDots=" + waveDots.ToString(), "bWaveThick=" + waveThick.ToString(), "bDarken=" + darken.ToString(), "bBrighten=" + brighten.ToString(), "bInvert=" + invert.ToString(), "bSolarize=" + solarize.ToString(), "bMotionVectorsOn=" + mVector.ToString(), "nMotionVectorsX=" + mVectorX.ToString(), "nMotionVectorsY=" + mVectorY.ToString(), "mv_l=" + mVectorLen.ToString(), "mv_r=" + mVectorR.ToString(), "mv_g=" + mVectorG.ToString(), "mv_b=" + mVectorB.ToString(), "mv_a=" + mVectorA.ToString(), "fVideoEchoAlpha=" + echoAlpha.ToString(), "nVideoEchoOrientation=" + echoOrient.ToString(), "fVideoEchoZoom=" + echoZoom.ToString(), "fWaveScale=" + waveScale.ToString(), "fWaveAlpha=" + waveAlpha.ToString(), "fWaveSmoothing=" + waveSmoothing.ToString(), "fWaveParam=" + waveParam.ToString(), "fModWaveAlphaStart=" + waveAlphaStart.ToString(), "fModWaveAlphaEnd=" + waveAlphaEnd.ToString(), "fWarpAnimSpeed=" + warpSpeed.ToString(), "fWarpScale=" + warpScale.ToString(), "zoomexp=1.000", "fShader=0.000", "zoom=" + zoom.ToString(), "rot=" + rot.ToString(), "cx=" + warpX.ToString(), "cy=" + warpY.ToString(), "dx=" + motionX.ToString(), "dy=" + motionY.ToString(), "sx=" + stretchX.ToString(), "sy=" + stretchY.ToString(), "warp=" + warp.ToString(), "sx=" + stretchX.ToString(), "sy=" + stretchY.ToString(), "wave_r=" + waveR.ToString(), "wave_g=" + waveG.ToString(), "wave_b=" + waveB.ToString(), "wave_x=" + waveX.ToString(), "wave_y=" + waveY.ToString(), "ob_size=" + oBorderSize.ToString(), "ob_r=" + oBR.ToString(), "ob_g=" + oBG.ToString(), "ob_b=" + oBB.ToString(), "ob_a=" + oBA.ToString(), "ib_size=" + iBorderSize.ToString(), "ib_r=" + iBR.ToString(), "ib_g=" + iBG.ToString(), "ib_b=" + iBB.ToString(), "ib_a=" + iBA.ToString() }; // Write Parameters To Active Preset string sourcePath = @"C:\Users\User\Desktop\Dev\milkdrop\active\"; string[] files = System.IO.Directory.GetFiles(sourcePath); string fileName = System.IO.Path.GetFileName(files[0]); string sourceFile = System.IO.Path.Combine(sourcePath, fileName); System.IO.File.WriteAllLines(sourceFile, parameters); shapeTabs.reWrite(); waveTabs.reWrite(); }
////////////////////////////////////// // Intensity TrackBar Value Changed public void intensityChanged(object sender, EventArgs e) { shape.settings[settingIndx].changeIntensity(Math.Abs(intensity.Value)); shapeTabs.reWrite(); }