Cleaned up implementation, added variables to grab rest of osu data

This commit is contained in:
Valerio
2026-01-05 23:55:31 -05:00
parent 299ac2c47b
commit 2f2272947b
3 changed files with 144 additions and 11 deletions

View File

@@ -418,9 +418,9 @@ class Player:
###from libs.osz import OsuParser
def reset_chart(self):
myparse = OsuParser()
#notes, self.branch_m, self.branch_e, self.branch_n = self.tja.notes_to_position(self.difficulty)
notes = myparse.note_data_to_NoteList(myparse.read_osu_data(Path("./PNames.osu")))
myparse = OsuParser(Path("./PNames.osu"))
notes = myparse.osu_NoteList
self.branch_m, self.branch_e, self.branch_n = [], [], []
self.play_notes, self.draw_note_list, self.draw_bar_list = deque(apply_modifiers(notes, self.modifiers)[0]), deque(apply_modifiers(notes, self.modifiers)[1]), deque(apply_modifiers(notes, self.modifiers)[2])