mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 11:18:26 +02:00
[WIP] Added text for tracks in menu and race (race contains authors username)
This commit is contained in:
parent
8d30d1238a
commit
9c91ff65b1
6 changed files with 38 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"mode": "match",
|
||||||
|
"match_regex": "[!R]*_*.szs"
|
||||||
|
}
|
|
@ -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": {}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"mode": "match",
|
||||||
|
"match_regex": "R*_*.szs"
|
||||||
|
}
|
|
@ -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": {}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue