public override void OnInit(ChartRoot chart, ChartNote note) { base.OnInit(chart, note); Fill.sortingOrder = Ring.sortingOrder + 1; SpriteMask.frontSortingOrder = note.id + 1; SpriteMask.backSortingOrder = note.id - 2; }
public void SpawnDragLine(ChartNote from, ChartNote to) { var dragLineView = Instantiate(DragLinePrefab, transform.parent).GetComponent <DragLineView>(); dragLineView.FromNote = from; dragLineView.ToNote = to; }
public override void OnInit(ChartRoot chart, ChartNote note) { Size = SimpleVisualOptions.Instance.GetSize(this); Ring.sortingOrder = (chart.note_list.Count - note.id) * 3; Fill.sortingOrder = Ring.sortingOrder - 1; }
public virtual void SpawnNote(ChartNote note) { GameNote gameNote; switch (note.type) { case NoteType.Click: gameNote = Instantiate(ClickNotePrefab, transform.parent).GetComponent <GameNote>(); break; case NoteType.Hold: gameNote = Instantiate(HoldNotePrefab, transform.parent).GetComponent <GameNote>(); break; case NoteType.LongHold: gameNote = Instantiate(LongHoldNotePrefab, transform.parent).GetComponent <GameNote>(); break; case NoteType.DragHead: gameNote = Instantiate(DragHeadNotePrefab, transform.parent).GetComponent <GameNote>(); break; case NoteType.DragChild: gameNote = Instantiate(DragChildNotePrefab, transform.parent).GetComponent <GameNote>(); break; case NoteType.Flick: gameNote = Instantiate(FlickNotePrefab, transform.parent).GetComponent <GameNote>(); break; default: gameNote = Instantiate(ClickNotePrefab, transform.parent).GetComponent <GameNote>(); break; } gameNote.Init(Chart.Root, note); GameNotes.Add(note.id, gameNote); // Generate note id holder if (this is StoryboardGame || PlayerPrefsExt.GetBool("note ids")) { var canvas = Instantiate(InfoCanvas, GameNotes[note.id].transform.Find("NoteFill")); canvas.GetComponentInChildren <Text>().text = "" + note.id; } }
GreatGradeWeight; // For ranked mode: weighted difference between the current timing and the perfect timing public void Init(ChartRoot chart, ChartNote note) { Chart = chart; Note = note; Page = Chart.page_list[Note.page_index]; TimeUntilStart = Note.start_time; TimeUntilEnd = Note.end_time; MaxMissThreshold = Mathf.Max(0.300f, 0.300f); // TODO: 0.300f? View.OnInit(chart, note); gameObject.transform.position = Note.position; if (Game.Play.IsRanked) { RankData = new RankedPlayData.Note(); RankData.id = note.id; // Game.RankedPlayData.notes.Add(RankData); // Removed in 1.5 } }
/// <summary> /// Initializes a new instance of the <see cref="ChartNoteBuilder" /> class. /// </summary> /// <param name="note">The note configuration.</param> public ChartNoteBuilder(ChartNote note) { this.note = note; }
public virtual void OnInit(ChartRoot chart, ChartNote note) { }
public override void OnInit(ChartRoot chart, ChartNote note) { base.OnInit(chart, note); Triangle.Note = note; TicksUntilHoldFx = MaxTicksBetweenHoldFx; }