public static void SetAllNoteColors(Color?color0, Color?color1) { CNVColorManager.SetGlobalNoteColors(color0, color1); foreach (CNVColorManager cnvColorManager in _cnvColorManagers) { cnvColorManager.Reset(); } }
public static void ResetAllNotesColors() { CNVColorManager.ResetGlobal(); foreach (CNVColorManager cnvColorManager in _cnvColorManagers) { cnvColorManager.Reset(); } }
/* * 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); } }
public static void SetAllNoteColors(Color?color0, Color?color1) { CNVColorManager.SetGlobalNoteColors(color0, color1); foreach (KeyValuePair <NoteController, CNVColorManager> cnvColorManager in _cnvColorManagers) { cnvColorManager.Value.Reset(); } }
public static void ResetAllNotesColors() { CNVColorManager.ResetGlobal(); foreach (KeyValuePair <NoteController, CNVColorManager> cnvColorManager in _cnvColorManagers) { cnvColorManager.Value.Reset(); } }
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); } } }
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); }
public static void SetActiveColors(this NoteController nc) { CNVColorManager.GetCNVColorManager(nc).SetActiveColors(); }
public static void SetNoteColors(this NoteController cnv, Color?color0, Color?color1) { CNVColorManager.GetCNVColorManager(cnv)?.SetNoteColors(color0, color1); }
public static void Reset(this NoteController nc) { CNVColorManager.GetCNVColorManager(nc)?.Reset(); }