public void glControl_KeyDown(object sender, PreviewKeyDownEventArgs e) { ActionKey.KeyDown(e); Program.Camera.KeyDown(); Selection.KeyDown(); SavedAction.KeyDown(); }
public static void Clear() { Program.main.Clear(); Drawable.Drawables.Clear(); Mesh.Meshes.Clear(); Asteroid.Asteroids.Clear(); Pebble.Pebbles.Clear(); Point.Points.Clear(); DustCloud.DustClouds.Clear(); Cloud.Clouds.Clear(); Sphere.Spheres.Clear(); Squadron.Squadrons.Clear(); Salvage.Salvages.Clear(); Camera.Cameras.Clear(); SOBGroup.SOBGroups.Clear(); Problem.Problems.Clear(); Program.main.UpdateProblems(); SavedAction.ClearHistory(); Path = ""; Map.MapDimensions = new Vector3(20000, 20000, 20000); Map.FogActive = true; Map.FogStart = 100; Map.FogEnd = 20000; Map.FogColor = new Vector4(0.38f, 0.21f, 0.06f, 1); Map.FogType = "linear"; Map.FogDensity = 0.15f; Map.GlareIntensity = 0; Map.ShadowColor = new Vector4(0, 0, 0, 1); Map.SensorsManagerCameraMin = 10000; Map.SensorsManagerCameraMax = 55000; Map.MusicDefault = "sound/music/ambient/amb_01"; Map.MusicBattle = "sound/music/battle/battle_01"; Map.MaxPlayers = 2; Map.Description = ""; Renderer.BackgroundColor = new Vector3(0.05f); Selection.CreateGizmos(); Selection.Selected.Clear(); Background.CreateSkybox(); Renderer.InvalidateMeshData(); }
public static void RedoLast() { if (Undone.Count > 0) { SavedAction action = Undone[Undone.Count - 1]; Undone.RemoveAt(Undone.Count - 1); action.Do(true); Saved.Add(action); } else { SystemSounds.Beep.Play(); } }
public static void UndoLast() { if (Saved.Count > 0) { SavedAction action = Saved[Saved.Count - 1]; Saved.RemoveAt(Saved.Count - 1); action.Undo(); Undone.Add(action); } else { SystemSounds.Beep.Play(); } }