コード例 #1
0
ファイル: SelectionManager.cs プロジェクト: jiailiuyan/Gum
        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;
        }
コード例 #2
0
        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);

            highlightManager = new HighlightManager(mUiLayer);
        }