mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 03:08:29 +02:00
star can now be blue if the warning is level 4 (for Dolphin only tracks)
This commit is contained in:
parent
4d4c2ff2bb
commit
a3c31cad5b
2 changed files with 9 additions and 1 deletions
|
@ -148,7 +148,12 @@ class Track:
|
|||
|
||||
if self.score:
|
||||
if 0 < self.score <= 3:
|
||||
star_text = "★" * self.score + "☆" * (3 - self.score) + "!" * getattr(self, "warning", 0)
|
||||
star_text = "★" * self.score + "☆" * (3 - self.score)
|
||||
if 0 < self.warning <= 3:
|
||||
star_text += "!" * self.warning
|
||||
if self.warning == 4:
|
||||
star_text += "d"
|
||||
|
||||
star_text = trackname_color[star_text] + " "
|
||||
|
||||
if self.since_version == highlight_version:
|
||||
|
|
|
@ -91,6 +91,9 @@ trackname_color = {
|
|||
"★★★!!": "\\\\c{YOR6}★★★\\\\c{off}",
|
||||
"★★☆!!": "\\\\c{YOR6}★★☆\\\\c{off}",
|
||||
"★☆☆!!": "\\\\c{YOR6}★☆☆\\\\c{off}",
|
||||
"★★★d": "\\\\c{BLUE}★★★\\\\c{off}",
|
||||
"★★☆d": "\\\\c{BLUE}★★☆\\\\c{off}",
|
||||
"★☆☆d": "\\\\c{BLUE}★☆☆\\\\c{off}",
|
||||
}
|
||||
|
||||
region_id_to_name = {
|
||||
|
|
Loading…
Reference in a new issue