Esempio n. 1
0
        public static void SetAllNoteColors(Color?color0, Color?color1)
        {
            CNVColorManager.SetGlobalNoteColors(color0, color1);

            foreach (CNVColorManager cnvColorManager in _cnvColorManagers)
            {
                cnvColorManager.Reset();
            }
        }
Esempio n. 2
0
        public static void ResetAllNotesColors()
        {
            CNVColorManager.ResetGlobal();

            foreach (CNVColorManager cnvColorManager in _cnvColorManagers)
            {
                cnvColorManager.Reset();
            }
        }
Esempio n. 3
0
        /*
         * CNV ColorSO holders
         */

        internal static void CNVStart(ColorNoteVisuals cnv, NoteController nc)
        {
            ColorType noteType = nc.noteData.colorType;

            if (noteType == ColorType.ColorA || noteType == ColorType.ColorB)
            {
                CNVColorManager.CreateCNVColorManager(cnv, nc);
            }
        }
Esempio n. 4
0
        public static void SetAllNoteColors(Color?color0, Color?color1)
        {
            CNVColorManager.SetGlobalNoteColors(color0, color1);

            foreach (KeyValuePair <NoteController, CNVColorManager> cnvColorManager in _cnvColorManagers)
            {
                cnvColorManager.Value.Reset();
            }
        }
Esempio n. 5
0
        public static void ResetAllNotesColors()
        {
            CNVColorManager.ResetGlobal();

            foreach (KeyValuePair <NoteController, CNVColorManager> cnvColorManager in _cnvColorManagers)
            {
                cnvColorManager.Value.Reset();
            }
        }
Esempio n. 6
0
        internal static void ColorizeSaber(NoteController noteController, NoteCutInfo noteCutInfo)
        {
            if (ChromaController.DoColorizerSabers)
            {
                NoteData  noteData  = noteController.noteData;
                SaberType saberType = noteCutInfo.saberType;
                if ((int)noteData.colorType == (int)saberType)
                {
                    Color color = CNVColorManager.GetCNVColorManager(noteController).ColorForCNVManager();

                    SaberColorizer.SetSaberColor(saberType, color);
                }
            }
        }
Esempio n. 7
0
            internal static CNVColorManager CreateCNVColorManager(ColorNoteVisuals cnv, NoteController nc)
            {
                CNVColorManager cnvColorManager = GetCNVColorManager(nc);

                if (cnvColorManager != null)
                {
                    if (nc.noteData is CustomNoteData customNoteData)
                    {
                        cnvColorManager._noteData         = customNoteData;
                        customNoteData.customData._color0 = _globalColor[0];
                        customNoteData.customData._color1 = _globalColor[1];
                    }

                    return(null);
                }

                CNVColorManager cnvcm;

                cnvcm = new CNVColorManager(cnv, nc);
                _cnvColorManagers.Add(cnvcm);
                return(cnvcm);
            }
Esempio n. 8
0
 public static void SetActiveColors(this NoteController nc)
 {
     CNVColorManager.GetCNVColorManager(nc).SetActiveColors();
 }
Esempio n. 9
0
 public static void SetNoteColors(this NoteController cnv, Color?color0, Color?color1)
 {
     CNVColorManager.GetCNVColorManager(cnv)?.SetNoteColors(color0, color1);
 }
Esempio n. 10
0
 public static void Reset(this NoteController nc)
 {
     CNVColorManager.GetCNVColorManager(nc)?.Reset();
 }