コード例 #1
0
        public override void Draw()
        {
            text.Draw();
            bkgLineWindow.Draw();

            if (displayState == DisplayState.Opened)
            {   //custom draw for int4 handle
                Rectangle locRec = new Rectangle(
                    handle.X, handle.Y, handle.W, handle.H);
                Assets.SB.Draw(Assets.recTex,
                               locRec, Assets.ForegroundColor * 1.0f);

                //custom draw for click line too
                locRec = new Rectangle(
                    clickLine.X, clickLine.Y, clickLine.W, clickLine.H);
                Assets.SB.Draw(Assets.recTex,
                               locRec, Assets.ForegroundColor * clickLineAlpha);
            }
            //draw hitbox (debug only)
            //Rectangle hitRec = new Rectangle(
            //    hitbox.X, hitbox.Y, hitbox.W, hitbox.H);
            //Data.SB.Draw(Data.lineTexture,
            //    hitRec, Data.Color_Orange6_Neon * 0.2f);
        }
コード例 #2
0
 public override void Draw()
 {
     window.Draw(); text.Draw();
 }