//////////////////////////////////////////////////////ГРАНИЦА ФУНКЦИИ////////////////////////////////////////////////////////////// private void button_ModInstall_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) { fileUnpack(listBox1.SelectedItem.ToString()); if (listBox1.SelectedItem.ToString().ToLower().Contains("frostfall") || listBox1.SelectedItem.ToString().ToLower().Contains("disablefasttravel")) { FuncMisc.wideScreenMods(); } } else { MessageBox.Show(noFileSelect); } }
// ------------------------------------------------ BORDER OF FUNCTION ---------------------------------------------------------- // private void button_Install_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) { fileUnpack(listBox1.SelectedItem.ToString()); if (listBox1.SelectedItem.ToString().IndexOf("frostfall", StringComparison.OrdinalIgnoreCase) >= 0 || listBox1.SelectedItem.ToString().IndexOf("disablefasttravel", StringComparison.OrdinalIgnoreCase) >= 0) { FuncMisc.wideScreenMods(); } } else { MessageBox.Show(textNoFileSelect); } }
private void setAspectRatioFiles() { if (comboBoxResolutionTAB.SelectedIndex != -1) { double[] arlist = new double[] { 1.3, 1.4, 1.7, 1.8, 2.5 }; double ar = (double)screenListW[comboBoxResolutionTAB.SelectedIndex] / screenListH[comboBoxResolutionTAB.SelectedIndex]; int arl = FuncParser.intRead(FormMain.pathLauncherINI, "General", "AspectRatio"); for (int i = 0; i < arlist.Length; i++) { if (ar <= arlist[i]) { if (arl != i) { FuncMisc.unpackRAR(FormMain.pathLauncherFolder + @"CPFiles\System\AR(" + i.ToString() + ").rar"); FuncParser.iniWrite(FormMain.pathLauncherINI, "General", "AspectRatio", i.ToString()); FuncMisc.wideScreenMods(); } break; } } } }