Exemplo n.º 1
0
        public GuitarTrack(TrackEditor owner, bool isPro)
        {
            this.owner = owner;
            this.IsPro = isPro;

            this.dirtyItems = DirtyItem.None;
        }
        public GuitarMessageList(TrackEditor owner)
        {
            this.owner    = owner;
            ChordNames    = new ChordNameList(owner);
            HandPositions = new GuitarHandPositionList(owner);
            TextEvents    = new GuitarTextEventList(owner);
            Trainers      = new GuitarTrainerList(owner);
            Chords        = new GuitarChordList(owner);
            Notes         = new GuitarNoteList(owner);

            Tempos         = new GuitarTempoList(owner);
            TimeSignatures = new GuitarTimeSignatureList(owner);

            Arpeggios            = new GuitarArpeggioList(owner);
            BigRockEndings       = new GuitarBigRockEndingList(owner);
            SingleStringTremelos = new GuitarSingleStringTremeloList(owner);
            MultiStringTremelos  = new GuitarMultiStringTremeloList(owner);

            Powerups = new GuitarPowerupList(owner);
            Solos    = new GuitarSoloList(owner);

            Slides      = new GuitarSlideList(owner);
            Hammerons   = new GuitarHammeronList(owner);
            ChordStrums = new ChordStrumList(owner);
        }
        public GuitarTrack(TrackEditor owner, bool isPro)
        {
            this.owner = owner;
            this.IsPro = isPro;

            this.dirtyItems = DirtyItem.None;
        }
Exemplo n.º 4
0
 void LoadTracks()
 {
     foreach (var t in song.tracks)
     {
         TrackEditor trackEditor = trackBuilder.AddTrack();
         trackEditor.LoadTrack(t);
     }
 }
        public Rectangle GetCurrentRect(TrackEditor editor)
        {
            var rect = editor.GetScreenRectFromMessage(Chord);

            return(new Rectangle(CurrentPoint,
                                 new Size(Utility.SelectorWidth,
                                          rect.Height)));
        }
Exemplo n.º 6
0
 public void Initialize(TrackEditor editor, AbstractTrack track)
 {
     this.editor = editor;
     this.Track  = track;
     this.rect.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, Track.GetTrackHeight());
     this.input.text = track.TrackName;
     Update();
 }
        public NoteGrid(TrackEditor editor)
        {
            timeUnits = new TimeUnit[] { TimeUnit.Whole, TimeUnit.Half, TimeUnit.Quarter, TimeUnit.Eight, TimeUnit.Sixteenth, TimeUnit.ThirtySecond, TimeUnit.SixtyFourth, TimeUnit.OneTwentyEigth };

            this.editor = editor;
            Points      = new List <GridPoint>();
            Build(GetTimeUnitFromGridScalar(editor.GridScalar));
        }
Exemplo n.º 8
0
    public TrackEditor AddTrack()
    {
        GameObject trackObject = Instantiate(trackPrefab);

        trackObject.GetComponent <TrackView>().isInEditing = true;
        TrackEditor trackEditor = trackObject.GetComponent <TrackEditor>();

        trackEditor.SetTrack(key);
        trackAdjuster.tracks.Add(trackObject.GetComponent <ObjectKeeper>());
        songEditor.trackEditors.Add(trackEditor);
        return(trackEditor);
    }
        public WebTabTrackProperties(Track track, TrackEditor editorPro)
        {
            this.Track = track;

            this.Scale = 1.0;
            this.Offset = 3.0;
            this.Import = true;

            Events = new CopyChordList(editorPro);
            editorPro.SetTrack(track, GuitarDifficulty.Expert);

            Events.AddRange(editorPro.Messages.Chords.ToList());
        }
        public WebTabTrackProperties(Track track, TrackEditor editorPro)
        {
            this.Track = track;

            this.Scale  = 1.0;
            this.Offset = 3.0;
            this.Import = true;

            Events = new CopyChordList(editorPro);
            editorPro.SetTrack(track, GuitarDifficulty.Expert);

            Events.AddRange(editorPro.Messages.Chords.ToList());
        }
Exemplo n.º 11
0
        public void SetControl(Control ctrl, TrackEditor editorPro)
        {
            this.EditorPro = editorPro;
            if (currentControl != null)
            {
                if (Controls.Contains(currentControl))
                {
                    Controls.Remove(currentControl);
                }
                currentControl = null;
            }

            currentControl = ctrl;

            Controls.Add(currentControl);
            ctrl.Parent     = this;
            this.ClientSize = new Size(currentControl.Width, currentControl.Height);
        }
Exemplo n.º 12
0
    public void Awake()
    {
        if (instance != null && instance != this)
        {
            Debug.LogWarning("Duplicate instance of TrackEditor found! Now deleting...");
            Destroy(gameObject);
        }

        if (instance == null)
        {
            instance = this;
        }

        Debug.Assert(directions != null, this);
        foreach (var dir in directions)
        {
            Debug.Assert(dir != null, this);
        }
    }
Exemplo n.º 13
0
 public TransformationList(TrackEditor parent, ProjectData.TrackTransformation.TransformType type, Vector2 pos)
 {
     this.type   = type;
     this.pos    = pos;
     this.parent = parent;
     if (type == ProjectData.TrackTransformation.TransformType.MOVE)
     {
         transList = parent.data.move;
     }
     else if (type == ProjectData.TrackTransformation.TransformType.SCALE)
     {
         transList = parent.data.scale;
     }
     else
     {
         transList = parent.data.colorChange;
     }
     transUIElems  = new TransformationItem[TRANS_PER_PAGE];
     transSelected = -1;
     pageLabel     = new FLabel("Raleway16", "Page");
     titleLabel    = new FLabel("Raleway24", "Keyframes:");
 }
 public ChordNameList(TrackEditor owner) : base(owner)
 {
 }
 public GuitarNoteList(TrackEditor owner) : base(owner)
 {
 }
Exemplo n.º 16
0
 public GuitarTempoList(TrackEditor owner)
     : base(owner)
 {
 }
 public GuitarHandPositionList(TrackEditor owner)
     : base(owner)
 {
 }
 void TrackEditor_OnLoadTrack(TrackEditor editor, Sequence seq, Track t)
 {
     editor.Refresh();
     //LogDebugEvent("onloadtrack " + (t == null ? "" : t.Name));
 }
 public GuitarChordList(TrackEditor owner) : base(owner)
 {
 }
Exemplo n.º 20
0
 public GuitarSingleStringTremeloList(TrackEditor owner) : base(owner)
 {
 }
            public Rectangle GetCurrentRect(TrackEditor editor)
            {
                var rect = editor.GetScreenRectFromMessage(Chord);

                return new Rectangle(CurrentPoint,
                    new Size(Utility.SelectorWidth,
                         rect.Height));
            }
Exemplo n.º 22
0
 public GuitarPowerupList(TrackEditor owner) : base(owner)
 {
 }
Exemplo n.º 23
0
 public GuitarHammeronList(TrackEditor owner) : base(owner)
 {
 }
 public GuitarTextEventList(TrackEditor owner) : base(owner)
 {
 }
 public CopyChordList(TrackEditor owner)
     : base(owner)
 {
 }
Exemplo n.º 26
0
 public GuitarBigRockEndingList(TrackEditor owner) : base(owner)
 {
 }
 public GuitarTrainerList(TrackEditor owner) : base(owner)
 {
 }
 public MessageList(TrackEditor owner)
 {
     list       = new List <GuitarMessage>();
     this.owner = owner;
 }
Exemplo n.º 29
0
 public GuitarSlideList(TrackEditor owner) : base(owner)
 {
 }
Exemplo n.º 30
0
 public GuitarTimeSignatureList(TrackEditor owner) : base(owner)
 {
 }
 public ChordStrumList(TrackEditor owner) : base(owner)
 {
 }
 public SpecializedMessageList(TrackEditor owner)
 {
     messages   = new List <T>();
     this.Owner = owner;
 }
 public GuitarArpeggioList(TrackEditor owner) : base(owner)
 {
 }
 public GuitarSoloList(TrackEditor owner) : base(owner)
 {
 }