-
Notifications
You must be signed in to change notification settings - Fork 63
/
semantics.json
261 lines (261 loc) · 7.04 KB
/
semantics.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
[
{
"name": "cards",
"type": "list",
"widgets": [
{
"name": "VerticalTabs",
"label": "Default"
}
],
"label": "Cards",
"importance": "high",
"entity": "card",
"min": 2,
"max": 100,
"field": {
"type": "group",
"name": "card",
"label": "Card",
"importance": "high",
"fields": [
{
"name": "image",
"type": "image",
"label": "Image",
"importance": "high",
"ratio": 1
},
{
"name": "imageAlt",
"type": "text",
"label": "Alternative text for Image",
"importance": "high",
"description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users."
},
{
"name": "audio",
"type": "audio",
"importance": "high",
"label": "Audio Track",
"description": "An optional sound that plays when the card is turned.",
"optional": true,
"widgetExtensions": [
"AudioRecorder"
]
},
{
"name": "match",
"type": "image",
"label": "Matching Image",
"importance": "low",
"optional": true,
"description": "An optional image to match against instead of using two cards with the same image.",
"ratio": 1
},
{
"name": "matchAlt",
"type": "text",
"label": "Alternative text for Matching Image",
"importance": "low",
"optional": true,
"description": "Describe what can be seen in the photo. The text is read by text-to-speech tools needed by visually impaired users."
},
{
"name": "matchAudio",
"type": "audio",
"importance": "low",
"label": "Matching Audio Track",
"description": "An optional sound that plays when the second card is turned.",
"optional": true,
"widgetExtensions": [
"AudioRecorder"
]
},
{
"name": "description",
"type": "text",
"label": "Description",
"importance": "low",
"maxLength": 150,
"optional": true,
"description": "An optional short text that will pop up once the two matching cards are found."
}
]
}
},
{
"name": "behaviour",
"type": "group",
"label": "Behavioural settings",
"importance": "low",
"description": "These options will let you control how the game behaves.",
"optional": true,
"fields": [
{
"name": "useGrid",
"type": "boolean",
"label": "Position the cards in a square",
"description": "Will try to match the number of columns and rows when laying out the cards. Afterward, the cards will be scaled to fit the container.",
"importance": "low",
"default": true
},
{
"name": "numCardsToUse",
"type": "number",
"label": "Number of cards to use",
"description": "Setting this to a number greater than 2 will make the game pick random cards from the list of cards.",
"importance": "low",
"optional": true,
"min": 2
},
{
"name": "allowRetry",
"type": "boolean",
"label": "Add button for retrying when the game is over",
"importance": "low",
"default": true
}
]
},
{
"name": "lookNFeel",
"type": "group",
"label": "Look and feel",
"importance": "low",
"description": "Control the visuals of the game.",
"optional": true,
"fields": [
{
"name": "themeColor",
"type": "text",
"label": "Theme Color",
"importance": "low",
"description": "Choose a color to create a theme for your card game.",
"optional": true,
"default": "#707070",
"widget": "colorSelector",
"spectrum": {
"showInput": true
}
},
{
"name": "cardBack",
"type": "image",
"label": "Card Back",
"importance": "low",
"optional": true,
"description": "Use a custom back for your cards.",
"ratio": 1
}
]
},
{
"label": "Localization",
"importance": "low",
"name": "l10n",
"type": "group",
"common": true,
"fields": [
{
"label": "Card turns text",
"importance": "low",
"name": "cardTurns",
"type": "text",
"default": "Card turns"
},
{
"label": "Time spent text",
"importance": "low",
"name": "timeSpent",
"type": "text",
"default": "Time spent"
},
{
"label": "Feedback text",
"importance": "low",
"name": "feedback",
"type": "text",
"default": "Good work!"
},
{
"label": "Try again button text",
"importance": "low",
"name": "tryAgain",
"type": "text",
"default": "Reset"
},
{
"label": "Close button label",
"importance": "low",
"name": "closeLabel",
"type": "text",
"default": "Close"
},
{
"label": "Game label",
"importance": "low",
"name": "label",
"type": "text",
"default": "Memory Game. Find the matching cards."
},
{
"label": "Game instructions",
"importance": "low",
"name": "label",
"type": "text",
"default": "Use arrow keys left and right to navigate cards. Use space or enter key to turn card."
},
{
"label": "Game finished label",
"importance": "low",
"name": "done",
"type": "text",
"default": "All of the cards have been found."
},
{
"label": "Card indexing label",
"description": "%num and %total are placeholders and will be replaced with the respective values for the card.",
"importance": "low",
"name": "cardPrefix",
"type": "text",
"default": "Card %num of %total:"
},
{
"label": "Card unturned label",
"importance": "low",
"name": "cardUnturned",
"type": "text",
"default": "Unturned. Click to turn."
},
{
"label": "Card turned label",
"importance": "low",
"name": "cardTurned",
"type": "text",
"default": "Turned."
},
{
"label": "Card matched label",
"importance": "low",
"name": "cardMatched",
"type": "text",
"default": "Match found."
},
{
"label": "Card matched announcement",
"importance": "low",
"name": "cardMatchedA11y",
"type": "text",
"default": "Your cards match!"
},
{
"label": "Card not matched announcement",
"importance": "low",
"name": "cardNotMatchedA11y",
"type": "text",
"default": "Your chosen cards do not match. Turn other cards to try again."
}
]
}
]