public void Initialize() { IsActive = true; StartPoint = 0; StartPointText.text = LocaleManager.instance.GetLocaleText("creator_auto"); NoteSpeed = 1.0f; SpeedText.text = NoteSpeed.ToString("N1"); ScopeVal = 1.0f; ScopeText.text = (ScopeVal * 100).ToString("N0") + "%"; DivLine = 8; DivArrayIndex = 5; DivLineText.text = DivLine.ToString(); ViewSpecific = false; ViewSpecificBtn.targetGraphic.color = GlobalTheme.ThemeColor(); ViewSpecificBtn.gameObject.GetComponentInChildren <Text>().color = GlobalTheme.ThemeContrastColor(); RText.text = NoteColorR.ToString(); GText.text = NoteColorG.ToString(); BText.text = NoteColorB.ToString(); ColorPanel.color = new Color32(NoteColorR, NoteColorG, NoteColorB, 255); LevelSelect(LevelVal); ChangeLine(MaxLine); SelectNoteMode(0); SelectFlickMode(0); ChangeBeats(BeatVal); ChangeSize(1); PlaceModeChanged(0); Player.Clean(); MetadataMode = false; ShowMetadata(); }
public void ChangeColorG(int deltaVal) { if (deltaVal < 0) { if (NoteColorG + deltaVal >= 0) { NoteColorG += (byte)deltaVal; } else { NoteColorG = 0; } } else { if (NoteColorG + deltaVal <= 255) { NoteColorG += (byte)deltaVal; } else { NoteColorG = 255; } } GText.text = NoteColorG.ToString(); ColorPanel.color = new Color32(NoteColorR, NoteColorG, NoteColorB, 255); if (SelectedNote.Count > 0) { foreach (CreatorNote note in SelectedNote) { note.NoteColor = new Color32(NoteColorR, NoteColorG, NoteColorB, 255); note.ApplyColor(); } } }