Reference
Shirt graphics
A graphic for the shirt designer's library (a badge, a shape, a flash): SVG path data in a 100 by 100 square, printed in the layer's colour at the layer's place, size and turn.
- Content type
shirtGraphics- Files
data/kit/shirt-graphics.json,data/kit/shirt-graphics/- Shape
- A list of records, each with its own
id - Patch target
shirtGraphic:<id>, for exampleshirtGraphic:core.shirt-graphic.board- In the base game
- 121 records
Fields#
Indented fields belong to the field above them. [] marks the items of a list. A field that is not required may be left out; the default is used.
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
id | id | Yes | Namespaced id, e.g. "core.player.rory-calder" | |
name | text, up to 30 characters | Yes | The name shown under the graphic in the designer's library. | |
category | text, up to 24 characters | Yes | The library shelf it sits on ("darts", "badges", "shapes", ...): any word. | |
path | text, up to 8000 characters | Yes | The shape: SVG path data in a 100 by 100 square, filled with the layer's colour. | |
path2 | text, up to 8000 characters | A second shape over the first, filled with the layer's second colour (a badge's field, a rim). |
Example#
A record from the base game’s data/kit/shirt-graphics.json, shortened.
{
"id": "core.shirt-graphic.board",
"name": "Board",
"category": "darts",
"path": "M2 50 A48 48 0 1 1 98 50 A48 48 0 1 1 2 50 Z M7 50 A43 43 0 1 0 93 50 A43 43 0 1 0 7 50 Z M43.27 7.53 A43 43 0 0 1 56.73 7.53 L51.88 38.15 A12 12 0 0 0 48.12 38.15 Z M69.52 11.69 A43 43 0 0 1 80.41 19…"
}In your pack the record’s id starts with your pack’s id instead of core, unless you mean to replace this one.