Skip to content

Commit

Permalink
Fix right timing track visiblity, note layout y calc
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Jun 6, 2024
1 parent e6c533b commit 0ff8cb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/chart/component/timing/TimingTrackContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ export class TimingTrackContainer
const track =
this.tracks.getChildByName<TimingTrack>(type) ??
this.createTrack(type, x)
track.visible = true
if (track.lastX != x) {
track.lastX = x
track.targetAlpha = i % 2 == 0 ? 0.1 : 0
Expand Down
2 changes: 1 addition & 1 deletion app/src/gui/widget/NoteLayoutWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class NoteLayoutWidget extends Widget {
}

private getYFromRange(chart: Chart, start: number, end: number) {
const lastBeat = chart.getNotedata().at(-1)!.beat
const lastBeat = getNoteEnd(chart.getNotedata().at(-1)!)
const lastSecond = chart.getSecondsFromBeat(lastBeat)
let t_startY = unlerp(0, lastBeat, start)
let t_endY = unlerp(0, lastBeat, end)
Expand Down

0 comments on commit 0ff8cb0

Please sign in to comment.