mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
silence warnings!
This commit is contained in:
@@ -169,7 +169,7 @@ class SongBox:
|
|||||||
self.history_wait = current_time
|
self.history_wait = current_time
|
||||||
if self.tja is None and self.texture_index != 17 and not audio.is_sound_playing('voice_enter'):
|
if self.tja is None and self.texture_index != 17 and not audio.is_sound_playing('voice_enter'):
|
||||||
audio.play_sound(f'genre_voice_{self.texture_index}', 'voice')
|
audio.play_sound(f'genre_voice_{self.texture_index}', 'voice')
|
||||||
elif not self.is_open and is_open_prev and audio.is_sound_playing(f'genre_voice_{self.texture_index}'):
|
elif not self.is_open and is_open_prev and self.texture_index != 17 and audio.is_sound_playing(f'genre_voice_{self.texture_index}'):
|
||||||
audio.stop_sound(f'genre_voice_{self.texture_index}')
|
audio.stop_sound(f'genre_voice_{self.texture_index}')
|
||||||
if self.tja_count is not None and self.tja_count > 0 and self.tja_count_text is None:
|
if self.tja_count is not None and self.tja_count > 0 and self.tja_count_text is None:
|
||||||
self.tja_count_text = OutlinedText(str(self.tja_count), 35, ray.WHITE, outline_thickness=5)#, horizontal_spacing=1.2)
|
self.tja_count_text = OutlinedText(str(self.tja_count), 35, ray.WHITE, outline_thickness=5)#, horizontal_spacing=1.2)
|
||||||
|
|||||||
@@ -881,7 +881,7 @@ class TJAParser:
|
|||||||
continue
|
continue
|
||||||
#Unrecognized commands will be skipped for now
|
#Unrecognized commands will be skipped for now
|
||||||
elif len(part) > 0 and not part[0].isdigit():
|
elif len(part) > 0 and not part[0].isdigit():
|
||||||
logger.warning(f"Unrecognized command: {part}")
|
logger.warning(f"Unrecognized command: {part} in TJA {self.file_path}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
ms_per_measure = get_ms_per_measure(bpm, time_signature)
|
ms_per_measure = get_ms_per_measure(bpm, time_signature)
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ class LoadScreen(Screen):
|
|||||||
logger.info("Navigator initialized")
|
logger.info("Navigator initialized")
|
||||||
|
|
||||||
def on_screen_start(self):
|
def on_screen_start(self):
|
||||||
super().on_screen_start()
|
tex.load_screen_textures(self.screen_name)
|
||||||
|
logger.info(f"Loaded textures for screen: {self.screen_name}")
|
||||||
self.loading_thread = threading.Thread(target=self._load_song_hashes)
|
self.loading_thread = threading.Thread(target=self._load_song_hashes)
|
||||||
self.loading_thread.daemon = True
|
self.loading_thread.daemon = True
|
||||||
self.loading_thread.start()
|
self.loading_thread.start()
|
||||||
|
|||||||
Reference in New Issue
Block a user