Example #1
0
        private void CameraSettings_Changed(object sender, EventArgs e)
        {
            CSharpUtilities.DLLImporter.NativeMethods.SetCameraZoomSpeed(myCameraSettingsSliders.GetXValue());
            CSharpUtilities.DLLImporter.NativeMethods.SetCameraMovementSpeed(myCameraSettingsSliders.GetYValue());
            CSharpUtilities.DLLImporter.NativeMethods.SetCameraRotationSpeed(myCameraSettingsSliders.GetZValue());

            float xValue = myCameraSettingsSliders.GetXValue();

            Properties.Settings.Default.DefaultSettingCameraZoom     = myCameraSettingsSliders.GetXValue();
            Properties.Settings.Default.DefaultSettingCameraMovement = myCameraSettingsSliders.GetYValue();
            Properties.Settings.Default.DefaultSettingCameraRotation = myCameraSettingsSliders.GetZValue();
            Properties.Settings.Default.Save();
        }
Example #2
0
        private void ManualObjectXRotation_Scroll(object sender, EventArgs e)
        {
            if (myEnableAutoRotation.Checked == true)
            {
                return;
            }

            CSharpUtilities.DLLImporter.NativeMethods.SetRotateObjectAtX(myObjectManualRotation.GetXValue());
        }
Example #3
0
 private void AutoRotation_Scroll(object sender, EventArgs e)
 {
     if (myEnableAutoRotation.Checked == false)
     {
         return;
     }
     CSharpUtilities.DLLImporter.NativeMethods.RotateObjectAtX(myObjectAutoRotation.GetXValue());
     CSharpUtilities.DLLImporter.NativeMethods.RotateObjectAtY(myObjectAutoRotation.GetYValue());
     CSharpUtilities.DLLImporter.NativeMethods.RotateObjectAtZ(myObjectAutoRotation.GetZValue());
 }
Example #4
0
 private void DirectionalLight_Scroll(object sender, EventArgs e)
 {
     CSharpUtilities.DLLImporter.NativeMethods.DirectionaLightRotateX(myDirectionalLightRotation.GetXValue());
     CSharpUtilities.DLLImporter.NativeMethods.DirectionaLightRotateY(myDirectionalLightRotation.GetZValue());
     CSharpUtilities.DLLImporter.NativeMethods.DirectionaLightRotateZ(myDirectionalLightRotation.GetYValue());
 }