Skip to content

Commit

Permalink
✨ Draw long/slide connector
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs0602 committed Jun 29, 2020
1 parent c3a4222 commit 9dd3438
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/src/main/java/com/kyhsgeekcode/dereinfo/FumenRenderer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class FumenRenderer(
val coord = calcPos(note)
realX = coord.first
realY = coord.second
if (note.isFlick()) {
if (note.isFlick() || note.isSlide() || note.isLong()) {
if (!note.nextNotes.isNullOrEmpty()) {
val nextNote = note.nextNotes[0]
val nextNoteCoord = calcPos(nextNote)
Expand All @@ -89,6 +89,9 @@ class FumenRenderer(
)
}
}
// if(note.isLong() || note.isSlide()) {
//
// }
if (note.sync) {
if (note.id < notes.size && notes[note.id].sync) {
val syncedNote = notes[note.id]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ class DereDatabaseHelper(context: Context) {
longnoteIDs[endpos] = idd
}
//롱노트 중도 아니었고 자신도 롱노트가 아니다
if ((mode == 1) and (flick == FlickMode.None)) {
else if ((mode == 1) and (flick == FlickMode.None)) {
prevID = 0
}
val theNote = Note(
Expand Down

0 comments on commit 9dd3438

Please sign in to comment.