mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 11:18:26 +02:00
arena retro track now have their prefix colored
This commit is contained in:
parent
2aa84b8fab
commit
f47049eb55
1 changed files with 5 additions and 2 deletions
|
@ -321,10 +321,13 @@ class Game:
|
|||
start_track_id: int = bmgtrack.find("U") # index where the bmg arena definition start
|
||||
track_id = bmgtrack[start_track_id:start_track_id + 3]
|
||||
|
||||
if track_id[0] == "2": # if this is the retro cup of arenas
|
||||
if track_id[1] == "2": # if this is the retro cup of arenas
|
||||
prefix, *track_name = track_name.split(" ")
|
||||
track_name = " ".join(track_name)
|
||||
|
||||
if prefix in Track.tags_color:
|
||||
prefix = "\\\\c{" + Track.tags_color[prefix] + "}" + prefix + "\\\\c{off}"
|
||||
prefix += " "
|
||||
|
||||
if not self.common.ct_config.add_original_track_prefix: prefix = ""
|
||||
f.write(f" {track_id}\t= {prefix}{track_name}\n")
|
||||
|
|
Loading…
Reference in a new issue