Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public void ChangeColorB(int deltaVal)
        {
            if (deltaVal < 0)
            {
                if (NoteColorB + deltaVal >= 0)
                {
                    NoteColorB += (byte)deltaVal;
                }
                else
                {
                    NoteColorB = 0;
                }
            }
            else
            {
                if (NoteColorB + deltaVal <= 255)
                {
                    NoteColorB += (byte)deltaVal;
                }
                else
                {
                    NoteColorB = 255;
                }
            }
            BText.text       = NoteColorB.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();
                }
            }
        }