mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 11:18:26 +02:00
star now go from 0 to 5 instead of 1 to 3, take less space in the menu since they are directly in the font
This commit is contained in:
parent
94c4a26646
commit
ff0fb9d71f
4 changed files with 16 additions and 21 deletions
BIN
file/kart_kanji_font.brfnt
Normal file
BIN
file/kart_kanji_font.brfnt
Normal file
Binary file not shown.
2
fs.json
2
fs.json
|
@ -46,6 +46,8 @@
|
||||||
"Scene/UI/Race_S.szs": {"/message/Common.bmg": "Common_RS.bmg"},
|
"Scene/UI/Race_S.szs": {"/message/Common.bmg": "Common_RS.bmg"},
|
||||||
"Scene/UI/Race_M.szs": {"/message/Common.bmg": "Common_RM.bmg"},
|
"Scene/UI/Race_M.szs": {"/message/Common.bmg": "Common_RM.bmg"},
|
||||||
|
|
||||||
|
"Scene/UI/Font.szs": {"/": "kart_kanji_font.brfnt"},
|
||||||
|
|
||||||
"Boot/Strap/eu/Dutch.szs": {
|
"Boot/Strap/eu/Dutch.szs": {
|
||||||
"/Textures(NW4R)/strapA_16_9_832x456": "strapA_16_9_832x456de",
|
"/Textures(NW4R)/strapA_16_9_832x456": "strapA_16_9_832x456de",
|
||||||
"/Textures(NW4R)/strapB_16_9_832x456": "strapA_16_9_832x456de",
|
"/Textures(NW4R)/strapB_16_9_832x456": "strapA_16_9_832x456de",
|
||||||
|
|
|
@ -147,17 +147,17 @@ class Track:
|
||||||
hl_suffix = ""
|
hl_suffix = ""
|
||||||
prefix = ""
|
prefix = ""
|
||||||
suffix = ""
|
suffix = ""
|
||||||
|
|
||||||
|
star_prefix = "\\\\c{YOR2}" # per default, stars are colored in gold
|
||||||
|
star_suffix = ""
|
||||||
star_text = ""
|
star_text = ""
|
||||||
|
|
||||||
if self.score:
|
if self.score:
|
||||||
if 0 < self.score <= 3:
|
if 0 <= self.score <= 5:
|
||||||
star_text = "★" * self.score + "☆" * (3 - self.score)
|
star_text = f"\\\\x{0xFF10 + self.score:04X}"
|
||||||
|
star_suffix = "\\\\c{off} "
|
||||||
if 0 < self.warning <= 3:
|
if 0 < self.warning <= 3:
|
||||||
star_text += "!" * self.warning
|
star_prefix = warning_color[self.warning]
|
||||||
if self.warning == 4:
|
|
||||||
star_text += "d"
|
|
||||||
|
|
||||||
star_text = trackname_color[star_text] + " "
|
|
||||||
|
|
||||||
if self.since_version == highlight_version:
|
if self.since_version == highlight_version:
|
||||||
hl_prefix, hl_suffix = "\\\\c{blue1}", "\\\\c{off}"
|
hl_prefix, hl_suffix = "\\\\c{blue1}", "\\\\c{off}"
|
||||||
|
@ -167,7 +167,7 @@ class Track:
|
||||||
if self.suffix in trackname_color:
|
if self.suffix in trackname_color:
|
||||||
suffix = " (" + trackname_color[self.suffix] + ")"
|
suffix = " (" + trackname_color[self.suffix] + ")"
|
||||||
|
|
||||||
name = (star_text + prefix + hl_prefix + self.name + hl_suffix + suffix)
|
name = (star_prefix + star_text + star_suffix + prefix + hl_prefix + self.name + hl_suffix + suffix)
|
||||||
name = name.replace("_", " ")
|
name = name.replace("_", " ")
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
|
|
@ -83,19 +83,6 @@ trackname_color = {
|
||||||
"GP": "\\\\c{YOR6}GP\\\\c{off}",
|
"GP": "\\\\c{YOR6}GP\\\\c{off}",
|
||||||
|
|
||||||
"Boost": "\\\\c{YOR3}Boost\\\\c{off}",
|
"Boost": "\\\\c{YOR3}Boost\\\\c{off}",
|
||||||
|
|
||||||
"★★★": "\\\\c{YOR2}★★★\\\\c{off}",
|
|
||||||
"★★☆": "\\\\c{YOR2}★★☆\\\\c{off}",
|
|
||||||
"★☆☆": "\\\\c{YOR2}★☆☆\\\\c{off}",
|
|
||||||
"★★★!": "\\\\c{YOR4}★★★\\\\c{off}",
|
|
||||||
"★★☆!": "\\\\c{YOR4}★★☆\\\\c{off}",
|
|
||||||
"★☆☆!": "\\\\c{YOR4}★☆☆\\\\c{off}",
|
|
||||||
"★★★!!": "\\\\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 = {
|
region_id_to_name = {
|
||||||
|
@ -105,6 +92,12 @@ region_id_to_name = {
|
||||||
"E": "USA"
|
"E": "USA"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
warning_color = {
|
||||||
|
1: "\\\\c{YOR4}",
|
||||||
|
2: "\\\\c{YOR6}",
|
||||||
|
3: "\\\\c{BLUE}",
|
||||||
|
}
|
||||||
|
|
||||||
get_version_from_string = lambda v: list(map(int, v.split('.')))
|
get_version_from_string = lambda v: list(map(int, v.split('.')))
|
||||||
|
|
||||||
def restart():
|
def restart():
|
||||||
|
|
Loading…
Reference in a new issue