forked from Gulix/geckos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic-effects.json
55 lines (55 loc) · 3.21 KB
/
basic-effects.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"styles": [
{
"key": "default",
"name": "Default Style",
"description": "Basic Template for a card of various effect (for any type of game)",
"canvasBackground": "#EEEEEE",
"canvasWidth": 340,
"canvasHeight": 495,
"fields": [
{ "name": "name", "label": "Name", "default": "Some Basic Effects" },
{ "name": "description", "type": "multiline", "label": "Description", "default": "Here comes some short description of the effect" },
{ "name": "effect", "type": "richtext", "label": "Effect", "default": "<p>The full description of the effect, with possibilities to set <strong>bold</strong> and <i>italic</i> text.</p>" },
{ "name": "displayTag", "label": "Display Tags ?", "type": "checkbox", "default": false },
{ "name": "tag", "label": "Tags", "default": "Tag" },
{ "name": "displayImage", "label": "Display Image ?", "type": "checkbox", "default": true },
{ "name": "image", "type": "image", "label": "Image", "ratio": 1.5619 }
],
"canvasFields": [
{ "type": "image", "left": 6, "width": 328, "top": 40, "height": 210, "src": "$image", "visible": "?displayImage" },
{ "type": "textbox", "text": "$name$", "fontSize": 32, "fontFamily": "Fredericka the Great", "width": 340, "top": 10, "textAlign": "center" },
{ "type": "textbox", "text": "$description$", "fontSize": 14, "fontFamily": "Josefin Slab", "fontStyle": "italic", "width": 320, "left": 10, "top": "{{if (card[displayImage]) value = 260; else value = 50}}", "textAlign": "center" },
{ "type": "textbox", "text": "$effect$", "styles": "£effect", "fontSize": 16, "fontFamily": "Josefin Slab", "width": 330, "left": 5, "top": "{{if (card[displayImage]) value = 300; else value = 90}}", "textAlign": "left", "backgroundColor": "#DDDDDD" },
{ "type": "textbox", "text": "$tag$", "fontSize": 18, "fontFamily": "Fredericka the Great", "width": 335, "top": 475, "textAlign": "right", "visible": "?displayTag" }
]
},
{
"key": "pictureless",
"basedOn": "default",
"name": "Default Style (without a picture)",
"description": "Basic Template for a card of various effect (for any type of game)",
"fields": [
{ "name": "displayImage", "ignored": true },
{ "name": "image", "ignored": true }
],
"canvasFields": [
{ "type": "image", "ignored": true },
{ "type": "textbox", "text": "$description$", "fontSize": 14, "fontFamily": "Josefin Slab", "fontStyle": "italic", "width": 320, "left": 10, "top": "50", "textAlign": "center" },
{ "type": "textbox", "text": "$effect$", "styles": "£effect", "fontSize": 16, "fontFamily": "Josefin Slab", "width": 330, "left": 5, "top": "90", "textAlign": "left", "backgroundColor": "#DDDDDD" },
{ "type": "textbox", "text": "$tag$", "fontSize": 18, "fontFamily": "Fredericka the Great", "width": 335, "top": 475, "textAlign": "right", "visible": "?displayTag" }
]
}
],
"webfonts":
{
"google": { "families": [ "Fredericka the Great", "Josefin Slab" ] }
},
"description": {
"description": "Basic Template for a card of various effect (for any type of game)",
"title":"Basic - Effects",
"key": "basiceffects",
"credits": "by Nicolas Ronvel",
"url": "https://github.com/Gulix/geckos/"
}
}