@rpg-engine/long-bow 0.1.84 → 0.1.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.1.84",
3
+ "version": "0.1.85",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import iconsAtlasJSON from '../../mocks/atlas/icons/icons.json';
4
- import iconsAtlasIMG from '../../mocks/atlas/icons/icons.png';
5
3
  import { SpriteFromAtlas } from './SpriteFromAtlas';
6
4
 
7
5
  interface IProps {
@@ -9,6 +7,8 @@ interface IProps {
9
7
  spriteKey: string;
10
8
  baseSpriteKey?: string;
11
9
  imgStyle?: any;
10
+ iconsAtlasJSON: any;
11
+ iconsAtlasIMG: any;
12
12
  }
13
13
 
14
14
  export const SpriteIcon: React.FC<IProps> = ({
@@ -16,6 +16,8 @@ export const SpriteIcon: React.FC<IProps> = ({
16
16
  spriteKey,
17
17
  baseSpriteKey,
18
18
  imgStyle,
19
+ iconsAtlasJSON,
20
+ iconsAtlasIMG,
19
21
  }) => {
20
22
  return (
21
23
  <Container>
@@ -18,10 +18,6 @@
18
18
  "sourceSize": {
19
19
  "w": 33,
20
20
  "h": 30
21
- },
22
- "pivot": {
23
- "x": 0.5,
24
- "y": 0.5
25
21
  }
26
22
  },
27
23
  "chat-large.png": {
@@ -42,13 +38,9 @@
42
38
  "sourceSize": {
43
39
  "w": 32,
44
40
  "h": 32
45
- },
46
- "pivot": {
47
- "x": 0.5,
48
- "y": 0.5
49
41
  }
50
42
  },
51
- "equipment.png": {
43
+ "inventory.png": {
52
44
  "frame": {
53
45
  "x": 33,
54
46
  "y": 0,
@@ -66,13 +58,9 @@
66
58
  "sourceSize": {
67
59
  "w": 17,
68
60
  "h": 16
69
- },
70
- "pivot": {
71
- "x": 0.5,
72
- "y": 0.5
73
61
  }
74
62
  },
75
- "inventory.png": {
63
+ "equipment.png": {
76
64
  "frame": {
77
65
  "x": 33,
78
66
  "y": 16,
@@ -90,10 +78,6 @@
90
78
  "sourceSize": {
91
79
  "w": 17,
92
80
  "h": 16
93
- },
94
- "pivot": {
95
- "x": 0.5,
96
- "y": 0.5
97
81
  }
98
82
  },
99
83
  "icon-base-blue.png": {
@@ -114,13 +98,9 @@
114
98
  "sourceSize": {
115
99
  "w": 16,
116
100
  "h": 16
117
- },
118
- "pivot": {
119
- "x": 0.5,
120
- "y": 0.5
121
101
  }
122
102
  },
123
- "icon-base-brown.png": {
103
+ "chat-small.png": {
124
104
  "frame": {
125
105
  "x": 50,
126
106
  "y": 0,
@@ -128,47 +108,39 @@
128
108
  "h": 16
129
109
  },
130
110
  "rotated": false,
131
- "trimmed": false,
111
+ "trimmed": true,
132
112
  "spriteSourceSize": {
133
- "x": 0,
113
+ "x": 1,
134
114
  "y": 0,
135
115
  "w": 16,
136
116
  "h": 16
137
117
  },
138
118
  "sourceSize": {
139
- "w": 16,
119
+ "w": 17,
140
120
  "h": 16
141
- },
142
- "pivot": {
143
- "x": 0.5,
144
- "y": 0.5
145
121
  }
146
122
  },
147
- "chat-small.png": {
123
+ "skills.png": {
148
124
  "frame": {
149
125
  "x": 50,
150
126
  "y": 16,
151
- "w": 16,
127
+ "w": 10,
152
128
  "h": 16
153
129
  },
154
130
  "rotated": false,
155
131
  "trimmed": true,
156
132
  "spriteSourceSize": {
157
- "x": 1,
133
+ "x": 3,
158
134
  "y": 0,
159
- "w": 16,
135
+ "w": 10,
160
136
  "h": 16
161
137
  },
162
138
  "sourceSize": {
163
- "w": 17,
139
+ "w": 16,
164
140
  "h": 16
165
- },
166
- "pivot": {
167
- "x": 0.5,
168
- "y": 0.5
169
141
  }
170
142
  },
171
- "icon-base-gold.png": {
143
+ "icon-base-brown.png": {
172
144
  "frame": {
173
145
  "x": 47,
174
146
  "y": 32,
@@ -186,15 +158,31 @@
186
158
  "sourceSize": {
187
159
  "w": 16,
188
160
  "h": 16
161
+ }
162
+ },
163
+ "icon-base-gold.png": {
164
+ "frame": {
165
+ "x": 0,
166
+ "y": 59,
167
+ "w": 16,
168
+ "h": 16
189
169
  },
190
- "pivot": {
191
- "x": 0.5,
192
- "y": 0.5
170
+ "rotated": false,
171
+ "trimmed": false,
172
+ "spriteSourceSize": {
173
+ "x": 0,
174
+ "y": 0,
175
+ "w": 16,
176
+ "h": 16
177
+ },
178
+ "sourceSize": {
179
+ "w": 16,
180
+ "h": 16
193
181
  }
194
182
  },
195
183
  "equipment-raw.png": {
196
184
  "frame": {
197
- "x": 0,
185
+ "x": 16,
198
186
  "y": 59,
199
187
  "w": 15,
200
188
  "h": 13
@@ -210,15 +198,31 @@
210
198
  "sourceSize": {
211
199
  "w": 16,
212
200
  "h": 13
201
+ }
202
+ },
203
+ "letter.png": {
204
+ "frame": {
205
+ "x": 31,
206
+ "y": 48,
207
+ "w": 15,
208
+ "h": 14
209
+ },
210
+ "rotated": false,
211
+ "trimmed": true,
212
+ "spriteSourceSize": {
213
+ "x": 1,
214
+ "y": 1,
215
+ "w": 15,
216
+ "h": 14
213
217
  },
214
- "pivot": {
215
- "x": 0.5,
216
- "y": 0.5
218
+ "sourceSize": {
219
+ "w": 16,
220
+ "h": 16
217
221
  }
218
222
  },
219
223
  "metamask-small.png": {
220
224
  "frame": {
221
- "x": 31,
225
+ "x": 46,
222
226
  "y": 48,
223
227
  "w": 15,
224
228
  "h": 15
@@ -234,15 +238,111 @@
234
238
  "sourceSize": {
235
239
  "w": 16,
236
240
  "h": 16
241
+ }
242
+ },
243
+ "write-book.png": {
244
+ "frame": {
245
+ "x": 31,
246
+ "y": 63,
247
+ "w": 15,
248
+ "h": 12
237
249
  },
238
- "pivot": {
239
- "x": 0.5,
240
- "y": 0.5
250
+ "rotated": false,
251
+ "trimmed": true,
252
+ "spriteSourceSize": {
253
+ "x": 1,
254
+ "y": 2,
255
+ "w": 15,
256
+ "h": 12
257
+ },
258
+ "sourceSize": {
259
+ "w": 16,
260
+ "h": 16
241
261
  }
242
262
  },
243
- "settings.png": {
263
+ "pointer-left.png": {
244
264
  "frame": {
245
265
  "x": 46,
266
+ "y": 63,
267
+ "w": 14,
268
+ "h": 10
269
+ },
270
+ "rotated": false,
271
+ "trimmed": true,
272
+ "spriteSourceSize": {
273
+ "x": 1,
274
+ "y": 4,
275
+ "w": 14,
276
+ "h": 10
277
+ },
278
+ "sourceSize": {
279
+ "w": 16,
280
+ "h": 16
281
+ }
282
+ },
283
+ "question-book.png": {
284
+ "frame": {
285
+ "x": 60,
286
+ "y": 63,
287
+ "w": 14,
288
+ "h": 12
289
+ },
290
+ "rotated": false,
291
+ "trimmed": true,
292
+ "spriteSourceSize": {
293
+ "x": 1,
294
+ "y": 1,
295
+ "w": 14,
296
+ "h": 12
297
+ },
298
+ "sourceSize": {
299
+ "w": 16,
300
+ "h": 16
301
+ }
302
+ },
303
+ "map-2.png": {
304
+ "frame": {
305
+ "x": 66,
306
+ "y": 0,
307
+ "w": 14,
308
+ "h": 14
309
+ },
310
+ "rotated": false,
311
+ "trimmed": true,
312
+ "spriteSourceSize": {
313
+ "x": 2,
314
+ "y": 1,
315
+ "w": 14,
316
+ "h": 14
317
+ },
318
+ "sourceSize": {
319
+ "w": 16,
320
+ "h": 16
321
+ }
322
+ },
323
+ "open-book.png": {
324
+ "frame": {
325
+ "x": 66,
326
+ "y": 14,
327
+ "w": 14,
328
+ "h": 9
329
+ },
330
+ "rotated": false,
331
+ "trimmed": true,
332
+ "spriteSourceSize": {
333
+ "x": 1,
334
+ "y": 4,
335
+ "w": 14,
336
+ "h": 9
337
+ },
338
+ "sourceSize": {
339
+ "w": 16,
340
+ "h": 16
341
+ }
342
+ },
343
+ "settings.png": {
344
+ "frame": {
345
+ "x": 61,
246
346
  "y": 48,
247
347
  "w": 14,
248
348
  "h": 14
@@ -258,16 +358,52 @@
258
358
  "sourceSize": {
259
359
  "w": 16,
260
360
  "h": 16
361
+ }
362
+ },
363
+ "pointer-right.png": {
364
+ "frame": {
365
+ "x": 63,
366
+ "y": 23,
367
+ "w": 14,
368
+ "h": 10
261
369
  },
262
- "pivot": {
263
- "x": 0.5,
264
- "y": 0.5
370
+ "rotated": false,
371
+ "trimmed": true,
372
+ "spriteSourceSize": {
373
+ "x": 1,
374
+ "y": 4,
375
+ "w": 14,
376
+ "h": 10
377
+ },
378
+ "sourceSize": {
379
+ "w": 16,
380
+ "h": 16
381
+ }
382
+ },
383
+ "map-3.png": {
384
+ "frame": {
385
+ "x": 63,
386
+ "y": 33,
387
+ "w": 12,
388
+ "h": 13
389
+ },
390
+ "rotated": false,
391
+ "trimmed": true,
392
+ "spriteSourceSize": {
393
+ "x": 2,
394
+ "y": 1,
395
+ "w": 12,
396
+ "h": 13
397
+ },
398
+ "sourceSize": {
399
+ "w": 16,
400
+ "h": 16
265
401
  }
266
402
  },
267
403
  "inventory-raw.png": {
268
404
  "frame": {
269
- "x": 15,
270
- "y": 59,
405
+ "x": 0,
406
+ "y": 75,
271
407
  "w": 13,
272
408
  "h": 13
273
409
  },
@@ -282,10 +418,306 @@
282
418
  "sourceSize": {
283
419
  "w": 16,
284
420
  "h": 16
421
+ }
422
+ },
423
+ "map.png": {
424
+ "frame": {
425
+ "x": 13,
426
+ "y": 75,
427
+ "w": 12,
428
+ "h": 13
429
+ },
430
+ "rotated": false,
431
+ "trimmed": true,
432
+ "spriteSourceSize": {
433
+ "x": 2,
434
+ "y": 1,
435
+ "w": 12,
436
+ "h": 13
437
+ },
438
+ "sourceSize": {
439
+ "w": 16,
440
+ "h": 16
441
+ }
442
+ },
443
+ "special-diamond.png": {
444
+ "frame": {
445
+ "x": 46,
446
+ "y": 73,
447
+ "w": 12,
448
+ "h": 9
449
+ },
450
+ "rotated": false,
451
+ "trimmed": true,
452
+ "spriteSourceSize": {
453
+ "x": 2,
454
+ "y": 4,
455
+ "w": 12,
456
+ "h": 9
457
+ },
458
+ "sourceSize": {
459
+ "w": 16,
460
+ "h": 16
461
+ }
462
+ },
463
+ "inventory-2.png": {
464
+ "frame": {
465
+ "x": 25,
466
+ "y": 75,
467
+ "w": 11,
468
+ "h": 11
469
+ },
470
+ "rotated": false,
471
+ "trimmed": true,
472
+ "spriteSourceSize": {
473
+ "x": 2,
474
+ "y": 3,
475
+ "w": 11,
476
+ "h": 11
285
477
  },
286
- "pivot": {
287
- "x": 0.5,
288
- "y": 0.5
478
+ "sourceSize": {
479
+ "w": 16,
480
+ "h": 16
481
+ }
482
+ },
483
+ "loop.png": {
484
+ "frame": {
485
+ "x": 36,
486
+ "y": 75,
487
+ "w": 9,
488
+ "h": 11
489
+ },
490
+ "rotated": false,
491
+ "trimmed": true,
492
+ "spriteSourceSize": {
493
+ "x": 4,
494
+ "y": 2,
495
+ "w": 9,
496
+ "h": 11
497
+ },
498
+ "sourceSize": {
499
+ "w": 16,
500
+ "h": 16
501
+ }
502
+ },
503
+ "check.png": {
504
+ "frame": {
505
+ "x": 58,
506
+ "y": 75,
507
+ "w": 11,
508
+ "h": 8
509
+ },
510
+ "rotated": false,
511
+ "trimmed": true,
512
+ "spriteSourceSize": {
513
+ "x": 2,
514
+ "y": 4,
515
+ "w": 11,
516
+ "h": 8
517
+ },
518
+ "sourceSize": {
519
+ "w": 16,
520
+ "h": 16
521
+ }
522
+ },
523
+ "close.png": {
524
+ "frame": {
525
+ "x": 69,
526
+ "y": 75,
527
+ "w": 10,
528
+ "h": 9
529
+ },
530
+ "rotated": false,
531
+ "trimmed": true,
532
+ "spriteSourceSize": {
533
+ "x": 4,
534
+ "y": 3,
535
+ "w": 10,
536
+ "h": 9
537
+ },
538
+ "sourceSize": {
539
+ "w": 16,
540
+ "h": 16
541
+ }
542
+ },
543
+ "time.png": {
544
+ "frame": {
545
+ "x": 80,
546
+ "y": 0,
547
+ "w": 9,
548
+ "h": 10
549
+ },
550
+ "rotated": false,
551
+ "trimmed": true,
552
+ "spriteSourceSize": {
553
+ "x": 3,
554
+ "y": 3,
555
+ "w": 9,
556
+ "h": 10
557
+ },
558
+ "sourceSize": {
559
+ "w": 16,
560
+ "h": 16
561
+ }
562
+ },
563
+ "look.png": {
564
+ "frame": {
565
+ "x": 79,
566
+ "y": 23,
567
+ "w": 10,
568
+ "h": 8
569
+ },
570
+ "rotated": false,
571
+ "trimmed": true,
572
+ "spriteSourceSize": {
573
+ "x": 3,
574
+ "y": 4,
575
+ "w": 10,
576
+ "h": 8
577
+ },
578
+ "sourceSize": {
579
+ "w": 16,
580
+ "h": 16
581
+ }
582
+ },
583
+ "death.png": {
584
+ "frame": {
585
+ "x": 79,
586
+ "y": 31,
587
+ "w": 10,
588
+ "h": 10
589
+ },
590
+ "rotated": false,
591
+ "trimmed": true,
592
+ "spriteSourceSize": {
593
+ "x": 3,
594
+ "y": 3,
595
+ "w": 10,
596
+ "h": 10
597
+ },
598
+ "sourceSize": {
599
+ "w": 16,
600
+ "h": 16
601
+ }
602
+ },
603
+ "question.png": {
604
+ "frame": {
605
+ "x": 80,
606
+ "y": 10,
607
+ "w": 6,
608
+ "h": 9
609
+ },
610
+ "rotated": false,
611
+ "trimmed": true,
612
+ "spriteSourceSize": {
613
+ "x": 5,
614
+ "y": 4,
615
+ "w": 6,
616
+ "h": 9
617
+ },
618
+ "sourceSize": {
619
+ "w": 16,
620
+ "h": 16
621
+ }
622
+ },
623
+ "star-black.png": {
624
+ "frame": {
625
+ "x": 79,
626
+ "y": 41,
627
+ "w": 9,
628
+ "h": 9
629
+ },
630
+ "rotated": false,
631
+ "trimmed": true,
632
+ "spriteSourceSize": {
633
+ "x": 4,
634
+ "y": 4,
635
+ "w": 9,
636
+ "h": 9
637
+ },
638
+ "sourceSize": {
639
+ "w": 16,
640
+ "h": 16
641
+ }
642
+ },
643
+ "star-blue.png": {
644
+ "frame": {
645
+ "x": 79,
646
+ "y": 50,
647
+ "w": 9,
648
+ "h": 9
649
+ },
650
+ "rotated": false,
651
+ "trimmed": true,
652
+ "spriteSourceSize": {
653
+ "x": 4,
654
+ "y": 4,
655
+ "w": 9,
656
+ "h": 9
657
+ },
658
+ "sourceSize": {
659
+ "w": 16,
660
+ "h": 16
661
+ }
662
+ },
663
+ "warn.png": {
664
+ "frame": {
665
+ "x": 74,
666
+ "y": 62,
667
+ "w": 5,
668
+ "h": 9
669
+ },
670
+ "rotated": false,
671
+ "trimmed": true,
672
+ "spriteSourceSize": {
673
+ "x": 4,
674
+ "y": 4,
675
+ "w": 5,
676
+ "h": 9
677
+ },
678
+ "sourceSize": {
679
+ "w": 16,
680
+ "h": 16
681
+ }
682
+ },
683
+ "caret-up.png": {
684
+ "frame": {
685
+ "x": 45,
686
+ "y": 83,
687
+ "w": 7,
688
+ "h": 5
689
+ },
690
+ "rotated": false,
691
+ "trimmed": true,
692
+ "spriteSourceSize": {
693
+ "x": 5,
694
+ "y": 5,
695
+ "w": 7,
696
+ "h": 5
697
+ },
698
+ "sourceSize": {
699
+ "w": 16,
700
+ "h": 16
701
+ }
702
+ },
703
+ "caret-down.png": {
704
+ "frame": {
705
+ "x": 52,
706
+ "y": 83,
707
+ "w": 7,
708
+ "h": 5
709
+ },
710
+ "rotated": false,
711
+ "trimmed": true,
712
+ "spriteSourceSize": {
713
+ "x": 5,
714
+ "y": 6,
715
+ "w": 7,
716
+ "h": 5
717
+ },
718
+ "sourceSize": {
719
+ "w": 16,
720
+ "h": 16
289
721
  }
290
722
  }
291
723
  },
@@ -295,8 +727,8 @@
295
727
  "image": "icons.png",
296
728
  "format": "RGBA8888",
297
729
  "size": {
298
- "w": 66,
299
- "h": 72
730
+ "w": 89,
731
+ "h": 88
300
732
  },
301
733
  "scale": 1
302
734
  }
Binary file