track with warnings will be shown as "/" in multiplayers menu

This commit is contained in:
Faraphel 2022-07-21 17:05:38 +02:00
parent 4604aae270
commit 13c7e1d165
5 changed files with 29 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{
"mode": "match",
"match_regex": "[!R]*_*.szs"
"match_regex": "[!R]*[!i]_*.szs"
}

View file

@ -0,0 +1,4 @@
{
"mode": "match",
"match_regex": "MenuMulti_*.szs"
}

View file

@ -0,0 +1,23 @@
{
"mode": "edit",
"operation": {
"bmg-decode": {},
"bmgtxt-edit": {
"layers": [
{
"mode": "ctfile",
"template": "{{ '\\c{red3}/\\c{off}' if getattr(track, 'warning', 0) != 0 else '' }}{{ ('\\c{YOR2}\\x'+hex(65296+getattr(track, 'score'))[2:]+'\\c{off} ') if hasattr(track, 'score') and getattr(track, 'warning', 0) == 0 else '' }}{{ (prefix+' ') if prefix and getattr(track, 'warning', 0) == 0 else '' }}{{ getattr(track, 'name', '') if getattr(track, 'warning', 0) == 0 else '' }}{{ (' ('+suffix +')') if suffix and getattr(track, 'warning', 0) == 0 else '' }}"
},
{
"mode": "format-original-track",
"template": "{{ (prefix+' ') if prefix else '' }}{{ getattr(track, 'name', '') }}{{ (' ('+suffix +')') if suffix else '' }}"
},
{
"mode": "patch",
"patchs": ["LE-FORCE-COPY"]
}
]
},
"bmg-encode": {}
}
}

View file

@ -1,4 +1,4 @@
{
"mode": "match",
"match_regex": "R*_*.szs"
"match_regex": "Race_*.szs"
}