private static void CreatePropertyGrids() { #region Camera PropertyGrid mCameraPropertyGrid = new CameraPropertyGrid(GuiManager.Cursor); GuiManager.AddWindow(mCameraPropertyGrid); mCameraPropertyGrid.SelectedObject = SpriteManager.Camera; mCameraPropertyGrid.X = mCameraPropertyGrid.ScaleX; mCameraPropertyGrid.Y = 40; mCameraPropertyGrid.UndoInstructions = UndoManager.Instructions; mCameraPropertyGrid.Name = "Camera"; mCameraPropertyGrid.Visible = false; #endregion #region Scene Camera PropertyGrid mSceneCameraPropertyGrid = new CameraBoundsPropertyGrid(EditorData.BoundsCamera); // This doesn't get added to the GuiManager because it was created before the pattern was established that PropertyGrids don't add themselves. mSceneCameraPropertyGrid.Visible = false; mSceneCameraPropertyGrid.UndoInstructions = UndoManager.Instructions; mSceneCameraPropertyGrid.Name = "Camera Bounds"; #endregion #region EditorPropertiesGrid mEditorPropertiesGrid = new EditorPropertiesGrid(); mEditorPropertiesGrid.Visible = false; #endregion #region LineGrid PropertyGrid mLineGridPropertyGrid = new LineGridPropertyGrid(EditorData.LineGrid); mLineGridPropertyGrid.Visible = false; #endregion }
private static void CreatePropertyGrids() { #region Camera PropertyGrid mCameraPropertyGrid = new CameraPropertyGrid(GuiManager.Cursor); GuiManager.AddWindow(mCameraPropertyGrid); mCameraPropertyGrid.SelectedObject = SpriteManager.Camera; mCameraPropertyGrid.X = mCameraPropertyGrid.ScaleX; mCameraPropertyGrid.Y = 40; mCameraPropertyGrid.UndoInstructions = UndoManager.Instructions; mCameraPropertyGrid.Name = "Camera"; mCameraPropertyGrid.Visible = false; #endregion #region Scene Camera PropertyGrid mSceneCameraPropertyGrid = new CameraBoundsPropertyGrid(EditorData.BoundsCamera); // This doesn't get added to the GuiManager because it was created before the pattern was established that PropertyGrids don't add themselves. mSceneCameraPropertyGrid.Visible = false; mSceneCameraPropertyGrid.UndoInstructions = UndoManager.Instructions; mSceneCameraPropertyGrid.Name = "Camera Bounds"; #endregion #region EditorPropertiesGrid mEditorPropertiesGrid = new EditorPropertiesGrid(); mEditorPropertiesGrid.Visible = false; #endregion #region LineGrid PropertyGrid mLineGridPropertyGrid = new LineGridPropertyGrid(EditorData.LineGrid); mLineGridPropertyGrid.Visible = false; #endregion }