示例#1
0
        private void buttonOK_Click(object sender, EventArgs e)
        {
            // Save the changed settings
            EditorSceneSettings newSettings = EditorApp.Scene.Settings.Clone() as EditorSceneSettings;

            newSettings.ScreenCaptureSettings = _settings;
            EditorManager.Actions.Add(new SceneSettingsChangedAction(EditorApp.Scene.Settings, newSettings));

            DialogResult = DialogResult.OK;
        }
示例#2
0
 public static string GetLightingCfgFile(EditorSceneSettings settings)
 {
     EditorScene scene = EditorManager.Scene as EditorScene;
       if (!settings.UseDefaultvLuxSettingsFile && !string.IsNullOrEmpty(settings.VLuxSettingsFile))
       {
     return Path.Combine(scene.LayerDirectoryName, settings.VLuxSettingsFile);
       }
       else
       {
     return Path.Combine(scene.LayerDirectoryName, "lighting.cfg");
       }
 }
        public static string GetLightingCfgFile(EditorSceneSettings settings)
        {
            EditorScene scene = EditorManager.Scene as EditorScene;

            if (!settings.UseDefaultvLuxSettingsFile && !string.IsNullOrEmpty(settings.VLuxSettingsFile))
            {
                return(Path.Combine(scene.LayerDirectoryName, settings.VLuxSettingsFile));
            }
            else
            {
                return(Path.Combine(scene.LayerDirectoryName, "lighting.cfg"));
            }
        }
 protected SceneSettingsChangedAction(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _oldSettings = (EditorSceneSettings)info.GetValue("_oldSettings", typeof(EditorSceneSettings));
       _newSettings = (EditorSceneSettings)info.GetValue("_newSettings", typeof(EditorSceneSettings));
 }
 /// <summary>
 /// Action Constructor.
 /// </summary>
 /// <param name="oldSettings">old settings in the scene</param>
 /// <param name="newSettings">new settings to be set on the scene</param>
 public SceneSettingsChangedAction(EditorSceneSettings oldSettings, EditorSceneSettings newSettings)
 {
     _oldSettings = oldSettings;
       _newSettings = newSettings;
 }
示例#6
0
 protected SceneSettingsChangedAction(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _oldSettings = (EditorSceneSettings)info.GetValue("_oldSettings", typeof(EditorSceneSettings));
     _newSettings = (EditorSceneSettings)info.GetValue("_newSettings", typeof(EditorSceneSettings));
 }
示例#7
0
 /// <summary>
 /// Action Constructor.
 /// </summary>
 /// <param name="oldSettings">old settings in the scene</param>
 /// <param name="newSettings">new settings to be set on the scene</param>
 public SceneSettingsChangedAction(EditorSceneSettings oldSettings, EditorSceneSettings newSettings)
 {
     _oldSettings = oldSettings;
     _newSettings = newSettings;
 }