-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUI.xml
405 lines (389 loc) · 14.3 KB
/
UI.xml
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
<!-- Xml UI. See documentation: https://api.tabletopsimulator.com/ui/introUI/ -->
<Defaults>
<TableLayout class="jjWindow"
color="rgba(0, 0, 0, 0.75)"
cellBackgroundColor="rgba(0, 0, 0, 0)"
padding="8 8 8 8"
allowDragging="true"
returnToOriginalPositionWhenReleased="false" />
<TableLayout class="jjControlPanel"
width="250"
height="600"
rectAlignment="MiddleRight"
offsetXY="-8 0" />
<VerticalLayout class="jjTitle"
color="rgba(0, 0, 0, 1)"
childForceExpandHeight="false"
childAlignment="MiddleCenter" />
<Text class="panelText"
color="rgba(0.5, 0.5, 0.5, 1)" />
<Text class="panelHeader"
color="rgba(0.9, 0.9, 0.17, 1)"
fontStyle="bold" />
<Text class="sbRecord"
color="rgba(0, 0, 0, 1)"
fontStyle="bold" />
<TableLayout class="scoreBoard"
cellPadding="8 8 0 0"
cellBackgroundColor="rgba(0, 0, 0, 0)"
columnWidths="0 56"
autoCalculateHeight="true" />
<Row class="sbRecord"
preferredHeight="30"
dontUseTableRowBackground="true"
color="rgba(0.5, 0.5, 0.5, 0)"
tooltipBackgroundColor="rgba(0, 0, 0, 1)" />
<Cell class="sbName"
childForceExpandWidth="false"
childAlignment="MiddleLeft" />
<Cell class="sbScore"
childForceExpandWidth="false"
childAlignment="MiddleRight" />
</Defaults>
<TableLayout class="jjWindow jjControlPanel">
<Row preferredHeight="50">
<Cell>
<VerticalLayout class="jjTitle">
<Text class="panelHeader" fontSize="20">Jigsaw Join</Text>
<Text class="panelText" fontStyle="normal" fontSize="14">by AnthonySunkist</Text>
<Text class="panelText" fontStyle="normal" fontSize="10">reup by Keepoccino</Text>
</VerticalLayout>
</Cell>
</Row>
<Row preferredHeight="30">
<Cell>
<HorizontalLayout childForceExpandWidth="false" spacing="4">
<Toggle id="enabled" visibility="Host" onValueChanged="onValueChanged_enabled"></Toggle>
<Text class="panelText">Puzzle is</Text>
<Text id="enabled_true" color="#007700">Enabled</Text>
<Text id="enabled_false" color="#770000" active="false">Disabled</Text>
</HorizontalLayout>
</Cell>
</Row>
<Row preferredHeight="30" onClick="onClick_teamScoreBoardTitle">
<Cell>
<VerticalLayout class="jjTitle">
<Text class="panelHeader" fontSize="16" color="rgba(0.55, 0.27, 0.07, 1)">Team Score Board</Text>
</VerticalLayout>
</Cell>
</Row>
<Row id="teamScoreBoardRow" active="false">
<Cell>
<VerticalScrollView color="" scrollSensitivity="30">
<TableLayout id="teamScoreBoard" class="scoreBoard">
<!--Row id="teamScoreBoard_score1" class="sbRecord">
<Cell class="sbName">
<Text id="teamScoreBoard_score1_name" class="sbRecord"></Text>
</Cell>
<Cell class="sbScore">
<Text id="teamScoreBoard_score1_score" class="sbRecord"></Text>
</Cell>
</Row -->
</TableLayout>
</VerticalScrollView>
</Cell>
</Row>
<Row preferredHeight="30" onClick="onClick_playerScoreBoardTitle">
<Cell>
<VerticalLayout class="jjTitle">
<Text class="panelHeader" fontSize="16" color="rgba(0.55, 0.27, 0.07, 1)">Player Score Board</Text>
</VerticalLayout>
</Cell>
</Row>
<Row id="playerScoreBoardRow" active="true">
<Cell>
<VerticalScrollView color="" scrollSensitivity="30">
<TableLayout id="playerScoreBoard" class="scoreBoard">
<!--Row id="playerScoreBoard_score1" class="sbRecord">
<Cell class="sbName">
<Text id="playerScoreBoard_score1_name" class="sbRecord"></Text>
</Cell>
<Cell class="sbScore">
<Text id="playerScoreBoard_score1_score" class="sbRecord"></Text>
</Cell>
</Row -->
</TableLayout>
</VerticalScrollView>
</Cell>
</Row>
<Row preferredHeight="30" visibility="Admin">
<Cell>
<VerticalLayout class="jjTitle">
<Text class="panelHeader" fontSize="16" color="rgba(0.55, 0.27, 0.07, 1)">Puzzle Controls</Text>
</VerticalLayout>
</Cell>
</Row>
<Row preferredHeight="20" visibility="Admin">
<Cell>
<Button onClick="onClick_NewPuzzle">New Puzzle</Button>
</Cell>
</Row>
<Row preferredHeight="30" visibility="Host" active="false">
<Cell>
<HorizontalLayout childForceExpandWidth="false" spacing="4">
<Toggle id="debug_enabled" onValueChanged="onValueChanged_debug_enabled"></Toggle>
<Text class="panelText">Debug Enabled</Text>
</HorizontalLayout>
</Cell>
</Row>
<Row preferredHeight="20" visibility="Host" active="false">
<Cell>
<Button onClick="onClick_TestNewFeature">Test New Feature</Button>
</Cell>
</Row>
<Row preferredHeight="20" visibility="Admin" active="false">
<Cell>
<Button onClick="onClick_ShowCredits">Show Credits</Button>
</Cell>
</Row>
<Row preferredHeight="20">
<Cell>
<VerticalLayout class="jjTitle">
<Text class="panelText" fontSize="10">v2022-05-10-01</Text>
</VerticalLayout>
</Cell>
</Row>
</TableLayout>
<Defaults>
<TableLayout class="creditsBackground"
rowBackgroundColor="rgba(0, 0, 0, 0.5)" />
<HorizontalLayout class="highlightBar"
ignoreLayout="true"
childForceExpandWidth="false"
childAlignment="MiddleCenter"
height="160"
color="rgba(0, 0, 0, 0.75)"
showAnimation="Grow"
hideAnimation="FadeOut"
animationDuration="1" />
<Text class="highlightText"
color="rgba(0.75, 0.75, 0.75, 1)"
fontSize="64" />
<Text class="emphasize"
color="rgba(1, 1, 1, 1)"
fontStyle="bold" />
</Defaults>
<!--TableLayout id="credits" class="creditsBackground" active="false">
<Row>
<Cell raycastTarget="true"-->
<HorizontalLayout id="creditsPanel1" class="highlightBar" active="false">
<Text id="creditsPlayerName1" class="highlightText emphasize"></Text>
<Text class="highlightText">\u00A0</Text>
<Text class="highlightText">is #</Text>
<Text id="creditsPlayerPosition1" class="highlightText emphasize"></Text>
<Text class="highlightText">\u00A0</Text>
<Text class="highlightText">with</Text>
<Text class="highlightText">\u00A0</Text>
<Text id="creditsPlayerScore1" class="highlightText emphasize"></Text>
<Text class="highlightText">\u00A0</Text>
<Text class="highlightText">pieces in</Text>
<Text class="highlightText">\u00A0</Text>
<Text id="creditsPlayerDuration1" class="highlightText emphasize"></Text>
<Text class="highlightText">\u00A0</Text>
<Text class="highlightText">minutes</Text>
</HorizontalLayout>
<HorizontalLayout id="creditsPanel2" class="highlightBar" active="false">
<Text id="creditsPlayerName2" class="highlightText emphasize"></Text>
<Text class="highlightText">\u00A0</Text>
<Text class="highlightText">is #</Text>
<Text id="creditsPlayerPosition2" class="highlightText emphasize"></Text>
<Text class="highlightText">\u00A0</Text>
<Text class="highlightText">with</Text>
<Text class="highlightText">\u00A0</Text>
<Text id="creditsPlayerScore2" class="highlightText emphasize"></Text>
<Text class="highlightText">\u00A0</Text>
<Text class="highlightText">pieces in</Text>
<Text class="highlightText">\u00A0</Text>
<Text id="creditsPlayerDuration2" class="highlightText emphasize"></Text>
<Text class="highlightText">\u00A0</Text>
<Text class="highlightText">minutes</Text>
</HorizontalLayout>
<Button id="closeCredits" ignoreLayout="true" width="160" height="40" offsetXY="0 -200" onClick="onClick_CloseCredits" visibility="Admin" active="false">Close Credits</Button>
<!--/Cell>
</Row>
</TableLayout-->
<Defaults>
<TableLayout class="greetingsBackground"
rowBackgroundColor="rgba(0, 0, 0, 0.99)" />
<Text class="greetingsTitle"
color="rgba(1, 1, 1, 1)"
fontSize="48" />
<Text class="greetingsTitleHighlight"
color="rgba(0.9, 0.9, 0.17, 1)"
fontStyle="bold" />
<Text class="greetingsText"
color="rgba(0.75, 0.75, 0.75, 1)"
fontSize="24" />
</Defaults>
<TableLayout id="greetings" class="greetingsBackground" visibility="None">
<Row>
<Cell raycastTarget="true">
<VerticalLayout ignoreLayout="true" childAlignment="MiddleCenter" childForceExpandHeight="false" childForceExpandWidth="false" spacing="48" width="60%">
<HorizontalLayout childForceExpandHeight="false" childForceExpandWidth="false">
<Text class="greetingsTitle">Welcome to</Text>
<Text class="greetingsTitle">\u00A0</Text>
<Text class="greetingsTitle greetingsTitleHighlight">Jigsaw Join</Text>
<Text class="greetingsTitle">!</Text>
</HorizontalLayout>
<VerticalLayout childForceExpandHeight="false" spacing="24">
<Text class="greetingsText" alignment="MiddleLeft">This is a scripted jigsaw puzzle where pieces snap to each other and join to form groups. Snapping works in any orientation when pieces are aligned within the allowed tolerances.</Text>
<Text class="greetingsText" alignment="MiddleLeft">This puzzle is composed of many individual components that each need to be retrieved and loaded. This process can take several minutes to complete.</Text>
<Text class="greetingsText" alignment="MiddleLeft">Please be respectful of the other players who are endeavoring to complete this puzzle. Thanks, and enjoy!</Text>
</VerticalLayout>
<Button minWidth="160" minHeight="40" onClick="onClick_CloseGreeting">Close Greeting</Button>
</VerticalLayout>
</Cell>
</Row>
</TableLayout>
<Defaults>
<TableLayout class="puzzleSelector"
width="636"
height="600" />
<Button class="puzzlePicture"
padding="4 4 4 4"
tooltipBackgroundColor="rgba(0, 0, 0, 1)" />
<ToggleButton class="templateSelection"
tooltipBackgroundColor="rgba(0, 0, 0, 1)"
colors="#FFFFFF|#C8C8C8|#7E7E7E|rgba(0.78,0.78,0.78,0.5)" />
<Button class="templateSelectionOld"
interactable="false"
tooltipBackgroundColor="rgba(170, 0, 0, 1)"
colors="#DD9898|#CC8888|#7E6E6E|#DD9898" />
<Row class="headerRow"
preferredHeight="34"
dontUseTableRowBackground="true"
color="rgba(0, 0, 0, 1)" />
<Text class="headerRow"
color="rgba(0.55, 0.27, 0.07, 1)"
fontStyle="bold"
fontSize="18" />
<GridLayout class="puzzleList"
height="600"
cellSize="150 150" />
<Row class="customRow"
preferredHeight="30"
dontUseTableRowBackground="true"
color="rgba(0, 0, 0, 1)" />
<Text class="customRow"
color="rgba(1, 1, 1, 1)"
fontSize="16" />
<Row class="templateHeaderRow"
dontUseTableRowBackground="true"
color="rgba(0, 0, 0, 1)" />
<Text class="templateHeaderRow"
color="rgba(1, 1, 1, 1)"
fontStyle="bold" />
<Row class="spacer"
preferredHeight="8" />
<Row class="tip"
preferredHeight="20"
dontUseTableRowBackground="true"
color="rgba(0, 0, 0, 1)" />
<Text class="tip"
color="rgba(1, 1, 1, 1)"
alignment="MiddleLeft" />
<Row class="warning"
preferredHeight="65"
dontUseTableRowBackground="true"
color="rgba(0, 0, 0, 1)" />
<Text class="warning"
color="rgba(1, 0.3, 0.3, 1)"
alignment="MiddleLeft" />
</Defaults>
<TableLayout id="puzzleSelector" class="jjWindow puzzleSelector" visibility="Admin" active="false">
<Row preferredHeight="40">
<Cell>
<VerticalLayout class="jjTitle">
<Text class="panelHeader" fontSize="20">Jigsaw Join</Text>
</VerticalLayout>
</Cell>
</Row>
<Row class="spacer" />
<Row class="headerRow">
<Cell>
<Text class="panelHeader headerRow">Select a Puzzle</Text>
</Cell>
</Row>
<Row>
<Cell>
<VerticalScrollView id="puzzleListScroll" color="rgba(0, 0, 0, 0)" scrollSensitivity="50">
<GridLayout id="puzzleListContainer" class="puzzleList">
<!-- Button class="puzzlePicture" -->
</GridLayout>
</VerticalScrollView>
</Cell>
</Row>
<Row class="spacer" />
<Row class="headerRow">
<Cell>
<Text class="panelHeader headerRow">Make Your Own</Text>
</Cell>
</Row>
<Row class="spacer" />
<Row class="customRow">
<Cell>
<Text class="customRow">Media URL</Text>
</Cell>
</Row>
<Row preferredHeight="30">
<Cell>
<InputField id="puzzleUrl" onEndEdit="onEndEdit_puzzleUrl"></InputField>
</Cell>
</Row>
<Row class="tip">
<Cell>
<Text class="tip">Media Tip #1: The URL must link directly to a JPG, PNG, WEBM, MP4, M4V, or MOV file</Text>
</Cell>
</Row>
<Row class="tip">
<Cell>
<Text class="tip">Media Tip #2: file:// URLs are local and should not be used in a multiplayer session</Text>
</Cell>
</Row>
<Row class="spacer" />
<Row class="customRow">
<Cell>
<Text class="customRow">Template</Text>
</Cell>
</Row>
<Row preferredHeight="140">
<Cell>
<ToggleGroup id="templateSelection" selectedId="">
<TableLayout id="templateListContainer" cellBackgroundColor="rgba(0, 0, 0, 0)">
<!-- Row class="templateHeaderRow" -->
<!-- Cell -->
<!-- Text class="templateHeaderRow" /-->
<!-- /Cell -->
<!-- /Row -->
<!-- Row -->
<!-- Cell -->
<!-- ToggleButton class="templateSelection" /-->
<!-- /Cell -->
<!-- ... /-->
<!-- /Row -->
<!-- ... /-->
</TableLayout>
</ToggleGroup>
</Cell>
</Row>
<Row class="warning">
<Cell>
<Text class="warning">Currently the templates marked in red are not working due to missing model files. If you have played the original "Jigsaw Join 2" before, the chances are good that you still have them. I would be happy to take them and include them to the mod.
See workshop description for more information.
</Text>
</Cell>
</Row>
<Row class="tip">
<Cell>
<Text class="tip">Template Tip #1: Use the template that best matches your media's aspect ratio</Text>
</Cell>
</Row>
<Row class="spacer" />
<Row preferredheight="20">
<Cell>
<HorizontalLayout childForceExpandWidth="false" childAlignment="MiddleRight">
<Button minWidth="120" onClick="onClick_CancelPuzzleSelector">Cancel</Button><Button minWidth="120" onClick="onClick_ContinuePuzzleSelector">Continue</Button>
</HorizontalLayout>
</Cell>
</Row>
</TableLayout>