Ejemplo n.º 1
0
    /// <summary>
    /// 判定文字表示エフェクトの追加
    /// </summary>
    /// <param name="judge"></param>
    /// <param name="lr"></param>
    /// <param name="zoom"></param>
    public static void AddJudge(EnumJudge judge, int lr, double zoom)
    {
        EffectJudge deleffect = null;

        foreach (EffectBase e in effectlist)
        {
            if (e is EffectJudge ej)
            {
                zoom      = ej.Zoom + 0.2;
                deleffect = ej;
            }
        }
        if (deleffect != null)
        {
            effectlist.Remove(deleffect);
        }
        effectlist.Add(new EffectJudge(judge, lr, zoom));
    }
Ejemplo n.º 2
0
    public static void SetDrawObjects()
    {
        // 画像の読み込み
        DrawObject scr     = new DrawObject("scr.png", DrawObject.EnumAlign.RIGHTCENTER, 2, 1);    //スクラッチの左右向き緑
        DrawObject scrbad  = new DrawObject("scrbad.png", DrawObject.EnumAlign.RIGHTCENTER, 2, 1); //スクラッチの左右向き緑
        DrawObject scrcore = new DrawObject("scrcore.png", DrawObject.EnumAlign.CENTERCENTER);     //スクラッチの左右向き緑
        DrawObject bar     = new DrawObject("bar.png", DrawObject.EnumAlign.CENTERBOTTOM);
        DrawObject baroff  = new DrawObject("baroff.png", DrawObject.EnumAlign.CENTERBOTTOM);

        DrawObject disk    = new DrawObject("disk.png", DrawObject.EnumAlign.CENTERCENTER);
        DrawObject light   = new DrawObject("disklight.png", DrawObject.EnumAlign.CENTERCENTER);
        DrawObject NGXMark = new DrawObject("xDisk.png", DrawObject.EnumAlign.CENTERCENTER);

        DrawObject disklightl = new DrawObject("disklightl.png", DrawObject.EnumAlign.CENTERCENTER);
        DrawObject disklightr = new DrawObject("disklightr.png", DrawObject.EnumAlign.CENTERCENTER);

        DrawObject cutinL = new DrawObject("cutinL.png", DrawObject.EnumAlign.CENTERBOTTOM);
        DrawObject cutinR = new DrawObject("cutinR.png", DrawObject.EnumAlign.CENTERBOTTOM);

        DrawObject diskshadowL = new DrawObject("diskshadowL.png", DrawObject.EnumAlign.CENTERBOTTOM, 1, 2); //アクティブ皿の裏ののびーる赤と紫
        DrawObject diskshadowR = new DrawObject("diskshadowR.png", DrawObject.EnumAlign.CENTERBOTTOM, 1, 2); //アクティブ皿の裏ののびーる赤と紫

        DrawObject barL = new DrawObject("playlinel.png", DrawObject.EnumAlign.CENTERBOTTOM);
        DrawObject barR = new DrawObject("playliner.png", DrawObject.EnumAlign.CENTERBOTTOM);

        DrawObject cue  = new DrawObject("cue.png", DrawObject.EnumAlign.CENTERCENTER, 1, 36);
        DrawObject cueL = new DrawObject("cueL.png", DrawObject.EnumAlign.CENTERCENTER, 1, 37);
        DrawObject cueR = new DrawObject("cueR.png", DrawObject.EnumAlign.CENTERCENTER, 1, 37);

        DrawObject fader  = new DrawObject("fader.png", DrawObject.EnumAlign.CENTERBOTTOM);
        DrawObject faderC = new DrawObject("faderC.png", DrawObject.EnumAlign.CENTERBOTTOM);
        DrawObject faderL = new DrawObject("faderL.png", DrawObject.EnumAlign.CENTERBOTTOM);
        DrawObject faderR = new DrawObject("faderR.png", DrawObject.EnumAlign.CENTERBOTTOM);

        DrawObject particle = new DrawObject("star.png", DrawObject.EnumAlign.CENTERCENTER, 1, 3);

        DrawObject frame   = new DrawObject("frame.png", DrawObject.EnumAlign.LEFTTOP);
        DrawObject rainbow = new DrawObject("Rainbow.png", DrawObject.EnumAlign.LEFTTOP, 1, 8);

        DrawObject barBeat    = new DrawObject("barBeat.png", DrawObject.EnumAlign.LEFTTOP);
        DrawObject barMeasure = new DrawObject("barMeasure.png", DrawObject.EnumAlign.LEFTTOP);

        DrawObject COOL    = new DrawObject("!!!COOL!!!.png", DrawObject.EnumAlign.CENTERCENTER);
        DrawObject PERFECT = new DrawObject("PERFECT.png", DrawObject.EnumAlign.CENTERCENTER);
        DrawObject GREAT   = new DrawObject("GREAT.png", DrawObject.EnumAlign.CENTERCENTER);
        DrawObject GOOD    = new DrawObject("GOOD.png", DrawObject.EnumAlign.CENTERCENTER);
        DrawObject BAD     = new DrawObject("BAD.png", DrawObject.EnumAlign.CENTERCENTER);

        DiscQueCutData.SetDrawObject(disk, cue, null, light, NGXMark);
        DiscQueCutData.SetLDrawObject(cueL, diskshadowL, cutinL, barL);
        DiscQueCutData.SetRDrawObject(cueR, diskshadowR, cutinR, barR);
        ScratchUnit.SetDrawObject(scr, scrbad, scrcore, bar, baroff);

        EffectParticle.SetDrawObject(particle);
        EffectJudge.SetDrawObject(COOL, PERFECT, GREAT, GOOD, BAD);
        EffectRecord.SetDrawObject(disklightl, disklightr);

        drawfader.setdrawobject(fader, faderC, faderL, faderR);
        DrawLowFrame.SetDrawObject(frame, rainbow);
        DrawBeatline.SetDrawObject(barBeat, barMeasure);
    }