diff --git a/.gitignore b/.gitignore index 75c1436..799e80f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ libaudio.dll libaudio.dylib scores.db scores_gen3.db +./libs/audio/audio.o diff --git a/libs/file_navigator.py b/libs/file_navigator.py index 0facfd8..faccef7 100644 --- a/libs/file_navigator.py +++ b/libs/file_navigator.py @@ -9,7 +9,7 @@ from typing import Optional, Union from raylib import SHADER_UNIFORM_VEC3 from libs.audio import audio from libs.animation import Animation, MoveAnimation -from libs.global_data import Crown, Difficulty +from libs.global_data import Crown, Difficulty, ScoreMethod from libs.tja import TJAParser, test_encodings from libs.texture import tex from libs.utils import OutlinedText, get_current_ms, global_data @@ -853,10 +853,18 @@ class ScoreHistory: def draw_long(self): tex.draw_texture('leaderboard','background_2') tex.draw_texture('leaderboard','title', index=self.long) - if self.curr_difficulty == Difficulty.URA: - tex.draw_texture('leaderboard', 'shinuchi_ura', index=self.long) - else: - tex.draw_texture('leaderboard', 'shinuchi', index=self.long) + + match global_data.config["general"]["score_method"]: + case ScoreMethod.SHINUCHI: + if self.curr_difficulty == Difficulty.URA: + tex.draw_texture('leaderboard', 'shinuchi_ura', index=self.long) + else: + tex.draw_texture('leaderboard', 'shinuchi', index=self.long) + case ScoreMethod.GEN3: + if self.curr_difficulty == Difficulty.URA: + tex.draw_texture('leaderboard', 'normal', index=self.long) + else: + tex.draw_texture('leaderboard', 'normal', index=self.long) tex.draw_texture('leaderboard', 'pts', color=ray.WHITE, index=self.long) tex.draw_texture('leaderboard', 'difficulty', frame=self.curr_difficulty, index=self.long)