mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
Merge pull request #181 from magickale/gen3-scoring
Score card, score method check
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ libaudio.dll
|
|||||||
libaudio.dylib
|
libaudio.dylib
|
||||||
scores.db
|
scores.db
|
||||||
scores_gen3.db
|
scores_gen3.db
|
||||||
|
./libs/audio/audio.o
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ from typing import Optional, Union
|
|||||||
from raylib import SHADER_UNIFORM_VEC3
|
from raylib import 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
|
||||||
@@ -853,10 +853,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)
|
||||||
|
|
||||||
|
match global_data.config["general"]["score_method"]:
|
||||||
|
case ScoreMethod.SHINUCHI:
|
||||||
if self.curr_difficulty == Difficulty.URA:
|
if self.curr_difficulty == Difficulty.URA:
|
||||||
tex.draw_texture('leaderboard', 'shinuchi_ura', index=self.long)
|
tex.draw_texture('leaderboard', 'shinuchi_ura', index=self.long)
|
||||||
else:
|
else:
|
||||||
tex.draw_texture('leaderboard', 'shinuchi', index=self.long)
|
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', '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)
|
||||||
|
|||||||
Reference in New Issue
Block a user