Exemple #1
0
    private void DrawScratch()
    {
        //スクラッチの向き描画
        foreach (ScratchChip sc in lstscratch)
        {
            int x, y, h, num;



            y = datacalc.realtimey(now.dot, sc.step);
            h = datacalc.JudgeLineY - y + _scratch_frame.height / 2;


            if (sc.data > 0)
            {
                x   = datacalc.realtimelinex(lr);
                num = 0;
            }
            else
            {
                x   = datacalc.realtimelinex(lr) + _scratch_frame.width;
                num = 1;
            }
            //判定までは赤表示
            if (sc.judge == EnumJudge.NOTYET || sc.judge == EnumJudge.BAD)
            {
                _scratch_frame_bad.Draw(x, y, num);
            }
            //判定ラインより上まで描画
            if (h > 0)
            {
                _scratch_frame.DrawUpperRect(x, y, num, h);
            }
        }
    }