Added gen3 score method check in score history draw function

This commit is contained in:
Valerio
2025-12-20 10:46:54 -05:00
parent ed8b8fb185
commit deb4df343f
2 changed files with 13 additions and 5 deletions

BIN
libs/audio/audio.o Normal file

Binary file not shown.

View File

@@ -8,7 +8,7 @@ from typing import Optional, Union
from raylib import SHADER_UNIFORM_FLOAT, SHADER_UNIFORM_VEC3 from raylib import SHADER_UNIFORM_FLOAT, SHADER_UNIFORM_VEC3
from libs.audio import audio from libs.audio import audio
from libs.animation import Animation, MoveAnimation 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.tja import TJAParser, test_encodings
from libs.texture import tex from libs.texture import tex
from libs.utils import OutlinedText, get_current_ms, global_data from libs.utils import OutlinedText, get_current_ms, global_data
@@ -809,10 +809,18 @@ class ScoreHistory:
def draw_long(self): def draw_long(self):
tex.draw_texture('leaderboard','background_2') tex.draw_texture('leaderboard','background_2')
tex.draw_texture('leaderboard','title', index=self.long) tex.draw_texture('leaderboard','title', index=self.long)
if self.curr_difficulty == Difficulty.URA:
tex.draw_texture('leaderboard', 'shinuchi_ura', index=self.long) match global_data.config["general"]["score_method"]:
else: case ScoreMethod.SHINUCHI:
tex.draw_texture('leaderboard', 'shinuchi', 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)
case ScoreMethod.GEN3:
if self.curr_difficulty == Difficulty.URA:
tex.draw_texture('leaderboard', index=self.long)
else:
tex.draw_texture('leaderboard', index=self.long)
tex.draw_texture('leaderboard', 'pts', color=ray.WHITE, 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) tex.draw_texture('leaderboard', 'difficulty', frame=self.curr_difficulty, index=self.long)