mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
minor bug fixes
This commit is contained in:
@@ -24,7 +24,7 @@ right_don = [17]
|
|||||||
right_kat = [12]
|
right_kat = [12]
|
||||||
|
|
||||||
[audio]
|
[audio]
|
||||||
device_type = "Windows WASAPI"
|
device_type = "ALSA"
|
||||||
buffer_size = 64
|
buffer_size = 64
|
||||||
sample_rate = -1
|
sample_rate = -1
|
||||||
exclusive = false
|
exclusive = false
|
||||||
|
|||||||
@@ -85,9 +85,9 @@ class ResultScreen:
|
|||||||
|
|
||||||
def update_score_animation(self):
|
def update_score_animation(self):
|
||||||
if self.is_skipped:
|
if self.is_skipped:
|
||||||
setattr(self, self.update_list[self.update_index][0], self.update_list[self.update_index][1])
|
|
||||||
if self.update_index == len(self.update_list) - 1:
|
if self.update_index == len(self.update_list) - 1:
|
||||||
return
|
return
|
||||||
|
setattr(self, self.update_list[self.update_index][0], self.update_list[self.update_index][1])
|
||||||
self.update_index += 1
|
self.update_index += 1
|
||||||
elif self.score_delay is not None:
|
elif self.score_delay is not None:
|
||||||
if get_current_ms() > self.score_delay:
|
if get_current_ms() > self.score_delay:
|
||||||
@@ -379,6 +379,8 @@ class ScoreAnimator:
|
|||||||
def next_score(self) -> str:
|
def next_score(self) -> str:
|
||||||
if self.digit_index == -1:
|
if self.digit_index == -1:
|
||||||
self.is_finished = True
|
self.is_finished = True
|
||||||
|
if self.target_score == '0':
|
||||||
|
return '0'
|
||||||
return str(int(''.join([str(item[0]) for item in self.current_score_list])))
|
return str(int(''.join([str(item[0]) for item in self.current_score_list])))
|
||||||
curr_digit, counter = self.current_score_list[self.digit_index]
|
curr_digit, counter = self.current_score_list[self.digit_index]
|
||||||
if counter < 9:
|
if counter < 9:
|
||||||
|
|||||||
@@ -436,7 +436,6 @@ class SongSelectScreen:
|
|||||||
|
|
||||||
if self.navigator.genre_bg is not None and self.state == State.BROWSING:
|
if self.navigator.genre_bg is not None and self.state == State.BROWSING:
|
||||||
self.navigator.genre_bg.draw(95)
|
self.navigator.genre_bg.draw(95)
|
||||||
self.ura_switch_animation.draw()
|
|
||||||
|
|
||||||
for item in self.navigator.items:
|
for item in self.navigator.items:
|
||||||
box = item.box
|
box = item.box
|
||||||
@@ -448,6 +447,8 @@ class SongSelectScreen:
|
|||||||
|
|
||||||
tex.draw_texture('global', 'footer')
|
tex.draw_texture('global', 'footer')
|
||||||
|
|
||||||
|
self.ura_switch_animation.draw()
|
||||||
|
|
||||||
if self.state == State.BROWSING and self.navigator.items != []:
|
if self.state == State.BROWSING and self.navigator.items != []:
|
||||||
self.navigator.get_current_item().box.draw_score_history()
|
self.navigator.get_current_item().box.draw_score_history()
|
||||||
if self.diff_sort_selector is not None:
|
if self.diff_sort_selector is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user