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); }
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))); }
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)); }
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 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); }
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); } }
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) { }
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) { }
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)); }
public GuitarPowerupList(TrackEditor owner) : base(owner) { }
public GuitarHammeronList(TrackEditor owner) : base(owner) { }
public GuitarTextEventList(TrackEditor owner) : base(owner) { }
public CopyChordList(TrackEditor owner) : base(owner) { }
public GuitarBigRockEndingList(TrackEditor owner) : base(owner) { }
public GuitarTrainerList(TrackEditor owner) : base(owner) { }
public MessageList(TrackEditor owner) { list = new List <GuitarMessage>(); this.owner = owner; }
public GuitarSlideList(TrackEditor owner) : base(owner) { }
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) { }