Beispiel #1
0
        static void Main()
        {
            //Process.Start("CodeWalker.exe", "explorer");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new ExploreForm());

            GTAFolder.UpdateSettings();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        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();
        }
Beispiel #4
0
 private void FolderBrowseButton_Click(object sender, EventArgs e)
 {
     GTAFolder.UpdateGTAFolder(false);
     FolderTextBox.Text = GTAFolder.CurrentGTAFolder;
 }