Example #1
0
        public virtual void AddLine(int ID, CLine[] Line, int LineNr, int Player)
        {
            if (Line == null)
            {
                return;
            }

            int n = FindPlayerLine(ID);

            if (n == -1)
            {
                return;
            }

            if (LineNr == _PlayerNotes[n].LineNr)
            {
                return;
            }

            SPlayerNotes notes = _PlayerNotes[n];

            if (Line.Length == 0 || Line.Length <= LineNr)
            {
                return;
            }

            notes.Lines  = Line;
            notes.LineNr = LineNr;
            notes.GoldenStars.Clear();
            notes.Flares.Clear();
            notes.PerfectNoteEffect.Clear();

            _PlayerNotes.RemoveAt(n);
            _PlayerNotes.Add(notes);
        }
Example #2
0
        public virtual void SetAlpha(int ID, float Alpha)
        {
            int n = FindPlayerLine(ID);

            if (n == -1)
            {
                return;
            }

            SPlayerNotes pn = _PlayerNotes[n];

            pn.Alpha        = Alpha;
            _PlayerNotes[n] = pn;
        }
Example #3
0
        public virtual int AddPlayer(SRectF Rect, SColorF Color, int PlayerNr)
        {
            SPlayerNotes notes = new SPlayerNotes();

            notes.Rect               = Rect;
            notes.Color              = Color;
            notes.Alpha              = 1f;
            notes.ID                 = ++_ActID;
            notes.Lines              = null;
            notes.LineNr             = -1;
            notes.PlayerNr           = PlayerNr;
            notes.Timer              = new Stopwatch();
            notes.GoldenStars        = new List <CParticleEffect>();
            notes.Flares             = new List <CParticleEffect>();
            notes.PerfectNoteEffect  = new List <CParticleEffect>();
            notes.PerfectLineTwinkle = new List <CParticleEffect>();
            _PlayerNotes.Add(notes);

            return(notes.ID);
        }
Example #4
0
        public virtual int AddPlayer(SRectF Rect, SColorF Color, int PlayerNr)
        {
            SPlayerNotes notes = new SPlayerNotes();

            notes.Rect = Rect;
            notes.Color = Color;
            notes.Alpha = 1f;
            notes.ID = ++_ActID;
            notes.Lines = null;
            notes.LineNr = -1;
            notes.PlayerNr = PlayerNr;
            notes.Timer = new Stopwatch();
            notes.GoldenStars = new List<CParticleEffect>();
            notes.Flares = new List<CParticleEffect>();
            notes.PerfectNoteEffect = new List<CParticleEffect>();
            notes.PerfectLineTwinkle = new List<CParticleEffect>();
            _PlayerNotes.Add(notes);

            return notes.ID;
        }