public SelectionManager() { // We used to have this set to 2, but now that we have dotted lines, I just do a value of 0 mUiLayer = Renderer.Self.AddLayer(); mUiLayer.Name = "UI Layer"; mGraphicalOutline = new GraphicalOutline(mUiLayer); mOverlaySolidRectangle = new SolidRectangle(); mOverlaySolidRectangle.Color = Color.LightGreen; mOverlaySolidRectangle.Color.A = 100; mOverlaySolidRectangle.Visible = false; ShapeManager.Self.Add(mOverlaySolidRectangle, mUiLayer); mOverlaySprite = new Sprite(null); mOverlaySprite.BlendState = BlendState.Additive; mOverlaySprite.Visible = false; SpriteManager.Self.Add(mOverlaySprite, mUiLayer); mOverlayNineSlice = new NineSlice(); mOverlayNineSlice.BlendState = BlendState.Additive; mOverlayNineSlice.Visible = false; SpriteManager.Self.Add(mOverlayNineSlice, mUiLayer); mResizeHandles = new ResizeHandles(mUiLayer); mResizeHandles.ShowOrigin = true; mResizeHandles.Visible = false; }
public StandardWireframeEditor(Layer layer) { mResizeHandles = new ResizeHandles(layer); mResizeHandles.ShowOrigin = true; mResizeHandles.Visible = false; rotationHandle = new LineCircle(); rotationHandle.Color = Color.Yellow; ShapeManager.Self.Add(rotationHandle, layer); rotationHandle.Visible = false; }