static void Main() { //Process.Start("CodeWalker.exe", "explorer"); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new ExploreForm()); GTAFolder.UpdateSettings(); }
private void OkButton_Click(object sender, EventArgs e) { if (!GTAFolder.ValidateGTAFolder(SelectedFolder, out string failReason)) { MessageBox.Show("The selected folder could not be used:\n\n" + failReason, "Invalid GTA Folder", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } Result = DialogResult.OK; Close(); }
private void Init() { //called from VehicleForm_Load if (!initedOk) { Close(); return; } MouseWheel += VehicleForm_MouseWheel; if (!GTAFolder.UpdateGTAFolder(true)) { Close(); return; } ShaderParamNames[] texsamplers = RenderableGeometry.GetTextureSamplerList(); foreach (var texsampler in texsamplers) { TextureSamplerComboBox.Items.Add(texsampler); } //TextureSamplerComboBox.SelectedIndex = 0;//LoadSettings will do this.. UpdateGridVerts(); GridSizeComboBox.SelectedIndex = 1; GridCountComboBox.SelectedIndex = 1; Input.Init(); Renderer.Start(); }
private void FolderBrowseButton_Click(object sender, EventArgs e) { GTAFolder.UpdateGTAFolder(false); FolderTextBox.Text = GTAFolder.CurrentGTAFolder; }