コード例 #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();
        }
コード例 #2
0
        private void ManualObjectZRotation_Scroll(object sender, EventArgs e)
        {
            if (myEnableAutoRotation.Checked == true)
            {
                return;
            }

            CSharpUtilities.DLLImporter.NativeMethods.SetRotateObjectAtZ(myObjectManualRotation.GetZValue());
        }
コード例 #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());
 }
コード例 #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());
 }