Skip to content

Commit 2f6407c

Browse files
author
DavidQ
committed
Add Object Vector V2 snapline display and realtime scale reset controls - PR_26133_105-object-vector-snapline-scale-controls
1 parent 5ede947 commit 2f6407c

4 files changed

Lines changed: 368 additions & 107 deletions

File tree

games/Asteroids/game.manifest.json

Lines changed: 181 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@
211211
"locked": false,
212212
"geometry": {
213213
"point1": {
214-
"x": 5,
215-
"y": 11
214+
"x": -7,
215+
"y": 16
216216
},
217217
"point2": {
218-
"x": 0,
219-
"y": 19
218+
"x": -0.079,
219+
"y": 19.96
220220
}
221221
},
222222
"style": {
@@ -232,8 +232,7 @@
232232
"scaleY": 1,
233233
"x": 0,
234234
"y": 0
235-
},
236-
"groupId": "group-1"
235+
}
237236
},
238237
{
239238
"tool": "line",
@@ -242,16 +241,16 @@
242241
"locked": false,
243242
"geometry": {
244243
"point1": {
245-
"x": -5.002,
246-
"y": 11
244+
"x": 7,
245+
"y": 16
247246
},
248247
"point2": {
249-
"x": -0.002,
250-
"y": 19
248+
"x": -0.079,
249+
"y": 19.96
251250
}
252251
},
253252
"style": {
254-
"fill": "transparent",
253+
"fill": "#00000000",
255254
"stroke": "#FFFFFF",
256255
"strokeWidth": 2,
257256
"fillOpacity": 1,
@@ -263,8 +262,7 @@
263262
"scaleY": 1,
264263
"x": 0,
265264
"y": 0
266-
},
267-
"groupId": "group-1"
265+
}
268266
},
269267
{
270268
"tool": "polygon",
@@ -275,19 +273,19 @@
275273
"points": [
276274
{
277275
"x": 0,
278-
"y": -16
276+
"y": -24
279277
},
280278
{
281-
"x": 14,
282-
"y": 16
279+
"x": 21,
280+
"y": 24
283281
},
284282
{
285283
"x": 0,
286-
"y": 8
284+
"y": 12
287285
},
288286
{
289-
"x": -14,
290-
"y": 16
287+
"x": -21,
288+
"y": 24
291289
}
292290
]
293291
},
@@ -314,6 +312,66 @@
314312
"x": 0,
315313
"y": 0
316314
}
315+
},
316+
{
317+
"tool": "line",
318+
"order": 4,
319+
"visible": true,
320+
"locked": false,
321+
"geometry": {
322+
"point1": {
323+
"x": 0,
324+
"y": 24
325+
},
326+
"point2": {
327+
"x": -7,
328+
"y": 16
329+
}
330+
},
331+
"style": {
332+
"fill": "#00000000",
333+
"stroke": "#FFFFFF",
334+
"strokeWidth": 2,
335+
"fillOpacity": 1,
336+
"strokeOpacity": 1
337+
},
338+
"transform": {
339+
"rotation": 0,
340+
"scaleX": 1,
341+
"scaleY": 1,
342+
"x": 0,
343+
"y": 0
344+
}
345+
},
346+
{
347+
"tool": "line",
348+
"order": 5,
349+
"visible": true,
350+
"locked": false,
351+
"geometry": {
352+
"point1": {
353+
"x": 7,
354+
"y": 16
355+
},
356+
"point2": {
357+
"x": 0,
358+
"y": 24
359+
}
360+
},
361+
"style": {
362+
"fill": "#00000000",
363+
"stroke": "#FFFFFF",
364+
"strokeWidth": 2,
365+
"fillOpacity": 1,
366+
"strokeOpacity": 1
367+
},
368+
"transform": {
369+
"rotation": 0,
370+
"scaleX": 1,
371+
"scaleY": 1,
372+
"x": 0,
373+
"y": 0
374+
}
317375
}
318376
],
319377
"states": [
@@ -327,8 +385,8 @@
327385
"durationFrames": 1,
328386
"shapeOverrides": [
329387
{
330-
"visible": true,
331-
"shapeIndex": 1,
388+
"visible": false,
389+
"shapeIndex": 0,
332390
"transform": {
333391
"rotation": 0,
334392
"scaleX": 1,
@@ -338,26 +396,48 @@
338396
}
339397
},
340398
{
341-
"visible": true,
342-
"shapeIndex": 0,
399+
"shapeIndex": 2,
343400
"transform": {
344401
"rotation": 0,
345402
"scaleX": 1,
346403
"scaleY": 1,
347404
"x": 0,
348405
"y": 0
349-
}
406+
},
407+
"visible": true
350408
},
351409
{
352-
"shapeIndex": 2,
410+
"shapeIndex": 1,
353411
"transform": {
354412
"rotation": 0,
355413
"scaleX": 1,
356414
"scaleY": 1,
357415
"x": 0,
358416
"y": 0
359417
},
360-
"visible": true
418+
"visible": false
419+
},
420+
{
421+
"shapeIndex": 3,
422+
"transform": {
423+
"rotation": 0,
424+
"scaleX": 1,
425+
"scaleY": 1,
426+
"x": 0,
427+
"y": 0
428+
},
429+
"visible": false
430+
},
431+
{
432+
"shapeIndex": 4,
433+
"transform": {
434+
"rotation": 0,
435+
"scaleX": 1,
436+
"scaleY": 1,
437+
"x": 0,
438+
"y": 0
439+
},
440+
"visible": false
361441
}
362442
]
363443
}
@@ -369,13 +449,86 @@
369449
"frames": [
370450
{
371451
"id": "frame-1",
372-
"order": 0,
452+
"order": 1,
373453
"durationFrames": 1,
374454
"shapeOverrides": [
375455
{
376456
"visible": true,
377-
"shapeIndex": 1
457+
"shapeIndex": 0
458+
},
459+
{
460+
"shapeIndex": 4,
461+
"transform": {
462+
"rotation": 0,
463+
"scaleX": 1,
464+
"scaleY": 1,
465+
"x": 0,
466+
"y": 0
467+
},
468+
"visible": false
469+
},
470+
{
471+
"shapeIndex": 3,
472+
"transform": {
473+
"rotation": 0,
474+
"scaleX": 1,
475+
"scaleY": 1,
476+
"x": 0,
477+
"y": 0
478+
},
479+
"visible": false
480+
}
481+
]
482+
},
483+
{
484+
"id": "frame-2",
485+
"order": 2,
486+
"durationFrames": 1,
487+
"shapeOverrides": [
488+
{
489+
"visible": false,
490+
"shapeIndex": 0
378491
},
492+
{
493+
"shapeIndex": 1,
494+
"transform": {
495+
"rotation": 0,
496+
"scaleX": 1,
497+
"scaleY": 1,
498+
"x": 0,
499+
"y": 0
500+
},
501+
"visible": false
502+
},
503+
{
504+
"shapeIndex": 3,
505+
"transform": {
506+
"rotation": 0,
507+
"scaleX": 1,
508+
"scaleY": 1,
509+
"x": 0,
510+
"y": 0
511+
},
512+
"visible": true
513+
},
514+
{
515+
"shapeIndex": 4,
516+
"transform": {
517+
"rotation": 0,
518+
"scaleX": 1,
519+
"scaleY": 1,
520+
"x": 0,
521+
"y": 0
522+
},
523+
"visible": true
524+
}
525+
]
526+
},
527+
{
528+
"id": "frame-3",
529+
"order": 3,
530+
"durationFrames": 1,
531+
"shapeOverrides": [
379532
{
380533
"visible": true,
381534
"shapeIndex": 0
@@ -402,17 +555,6 @@
402555
},
403556
"visible": true
404557
},
405-
{
406-
"shapeIndex": 1,
407-
"transform": {
408-
"x": 0,
409-
"y": 0,
410-
"rotation": 0,
411-
"scaleX": 1,
412-
"scaleY": 1
413-
},
414-
"visible": true
415-
},
416558
{
417559
"shapeIndex": 0,
418560
"transform": {

0 commit comments

Comments
 (0)