[WIP] Added text for tracks in menu and race (race contains authors username)

This commit is contained in:
Faraphel 2022-07-19 18:47:09 +02:00
parent 8d30d1238a
commit 9c91ff65b1
6 changed files with 38 additions and 0 deletions

View file

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

View file

@ -0,0 +1,15 @@
{
"mode": "edit",
"operation": {
"bmg-decode": {},
"bmgtxt-edit": {
"layers": [
{
"mode": "ctfile",
"template": "{{ ('\\c{YOR2}\\x'+hex(65296+getattr(track, 'score'))[2:]+'\\c{off} ') if hasattr(track, 'score') else '' }}{{ (prefix+' ') if prefix else '' }}{{ getattr(track, 'name', '') }}{{ (' ('+suffix +')') if suffix else '' }}"
}
]
},
"bmg-encode": {}
}
}

View file

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

View file

@ -0,0 +1,15 @@
{
"mode": "edit",
"operation": {
"bmg-decode": {},
"bmgtxt-edit": {
"layers": [
{
"mode": "ctfile",
"template": "{{ ('\\c{YOR2}\\x'+hex(65296+getattr(track, 'score'))[2:]+'\\c{off} ') if hasattr(track, 'score') else '' }}{{ (prefix+' ') if prefix else '' }}{{ getattr(track, 'name', '') }}{{ (' ('+suffix +')') if suffix else '' }}\n{{ '\\n'.join(getattr(track, 'author')) if isinstance(getattr(track, 'author', ''), list) else getattr(track, 'author', '/') }}"
}
]
},
"bmg-encode": {}
}
}