Esempio n. 1
0
        public static void Initialize(ShapeCollection shapeCollectionEditing)
        {
            //ColorDisplay colorDisplay = new ColorDisplay(GuiManager.Cursor);
            //GuiManager.AddWindow(colorDisplay);

            ShapeManager.ShapeDrawingOrder      = ShapeDrawingOrder.OverEverything;
            ShapeManager.UseZTestingWhenDrawing = false;

            //Increase the number of particles available
            SpriteManager.AutoIncrementParticleCountValue = 500;
            SpriteManager.MaxParticleCount = 5000;

            if (shapeCollectionEditing == null)
            {
                mShapeCollection = new ShapeCollection();
            }

            mSceneCamera = new Camera(FlatRedBallServices.GlobalContentManager);

            mEditingLogic = new EditingLogic();

            mDebugText         = TextManager.AddText("Hello");
            mDebugText.Visible = false;
        }
Esempio n. 2
0
        public static void Initialize(ShapeCollection shapeCollectionEditing)
        {
            //ColorDisplay colorDisplay = new ColorDisplay(GuiManager.Cursor);
            //GuiManager.AddWindow(colorDisplay);

            ShapeManager.ShapeDrawingOrder = ShapeDrawingOrder.OverEverything;
            ShapeManager.UseZTestingWhenDrawing = false;

            //Increase the number of particles available
            SpriteManager.AutoIncrementParticleCountValue = 500;
            SpriteManager.MaxParticleCount = 5000;

            if (shapeCollectionEditing == null)
            {
                mShapeCollection = new ShapeCollection();
            }

            mSceneCamera = new Camera(FlatRedBallServices.GlobalContentManager);

            mEditingLogic = new EditingLogic();

            mDebugText = TextManager.AddText("Hello");
            mDebugText.Visible = false;
        }
Esempio n. 3
0
        public static void DeleteForNew()
        {
            #region Delete the referenced Polygons

            while (Polygons.Count != 0)
            {
                ShapeManager.Remove(Polygons[0]);
            }

            #endregion

            #region Delete the referenced AxisAlignedRectangles

            while (AxisAlignedRectangles.Count != 0)
            {
                ShapeManager.Remove(AxisAlignedRectangles[0]);
            }

            #endregion

            #region Delete the referenced AxisAlignedCubes

            while (AxisAlignedCubes.Count != 0)
            {
                ShapeManager.Remove(AxisAlignedCubes[0]);
            }

            #endregion

            #region Delete the referenced Circles

            while (Circles.Count != 0)
            {
                ShapeManager.Remove(Circles[Circles.Count - 1]);
            }

            #endregion

            #region Delete the referenced Spheres

            while (Spheres.Count != 0)
            {
                ShapeManager.Remove(Spheres[Spheres.Count - 1]);
            }

            #endregion

            #region Hide the Property Grids
            EditingLogic.DeselectAll();
            #endregion

            UnloadScene();

            LastLoadedPolygonList     = null;
            LastLoadedShapeCollection = null;

#if FRB_MDX
            GameForm.TitleText = "PolygonEditor - untitled file";
#else
            FlatRedBallServices.Game.Window.Title = "PolygonEditor Editing - untitled file";
#endif
        }