1.0.4c-zio4: chat labels in tags.json
The dead marker and the (T)/(CT)/(SPEC)/(NONE) team-chat labels come from a new optional "chat" section in tags.json, with colour tags; "" drops a label, and missing keys keep the old defaults.
This commit is contained in:
parent
3e652f9f6f
commit
3ac24ac3fe
2 changed files with 50 additions and 9 deletions
16
README.md
16
README.md
|
|
@ -57,6 +57,20 @@ Fields (all optional, empty means "not set"):
|
|||
- `scoreboard` - clan tag on the scoreboard, without brackets (CS2 adds them); empty leaves the
|
||||
player's own clan tag.
|
||||
|
||||
The optional `chat` section sets the labels CS2-Tags adds to the chat lines it prints (only for
|
||||
players whose tag changes their chat). Leave a key out for its default, or set it to `""` to drop
|
||||
the label:
|
||||
|
||||
```jsonc
|
||||
"chat": {
|
||||
"dead": "{White}☠", // before a dead player's line
|
||||
"team_t": "{Yellow}(T)", // start of team chat, per team
|
||||
"team_ct": "{Blue}(CT)",
|
||||
"team_spec": "(SPEC)",
|
||||
"team_none": "(NONE)"
|
||||
}
|
||||
```
|
||||
|
||||
Colours: any `ChatColors` field name in braces, case-insensitive, e.g. `{Red}`, `{LightBlue}`,
|
||||
`{Gold}`, `{Grey}`, plus `{TEAMCOLOR}`.
|
||||
|
||||
|
|
@ -77,4 +91,4 @@ FORGEJO_TOKEN=... ./release.sh v<ModuleVersion>
|
|||
|
||||
`release.sh` rebuilds from the committed source and publishes `CS2-Tags-<tag>.tar.gz`, laid out
|
||||
like `game/csgo/`, to https://git.zio.sh/cs2/CS2-Tags. The tag must equal `v<ModuleVersion>`
|
||||
(`v1.0.4c-zio3` now).
|
||||
(`v1.0.4c-zio4` now).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue