@dcl/asset-packs 1.15.2 → 1.15.3-20240326191607.commit-d2d67d9

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.
Files changed (2) hide show
  1. package/catalog.json +355 -122
  2. package/package.json +2 -2
package/catalog.json CHANGED
@@ -39322,7 +39322,8 @@
39322
39322
  "id": "{self:asset-packs::Actions}",
39323
39323
  "name": "Play Sound"
39324
39324
  }
39325
- ]
39325
+ ],
39326
+ "basicViewId": "trigger-when-clicked"
39326
39327
  }
39327
39328
  ]
39328
39329
  },
@@ -39331,6 +39332,17 @@
39331
39332
  "core::Animator",
39332
39333
  "core::AudioSource"
39333
39334
  ]
39335
+ },
39336
+ "inspector::Config": {
39337
+ "isBasicViewEnabled": true,
39338
+ "componentName": "Button",
39339
+ "fields": [
39340
+ {
39341
+ "name": "When Clicked",
39342
+ "type": "asset-packs::Triggers",
39343
+ "basicViewId": "trigger-when-clicked"
39344
+ }
39345
+ ]
39334
39346
  }
39335
39347
  },
39336
39348
  "contents": {
@@ -39942,12 +39954,20 @@
39942
39954
  {
39943
39955
  "name": "Open",
39944
39956
  "type": "set_state",
39945
- "jsonPayload": "{ \"state\": \"Opened\" }"
39957
+ "jsonPayload": "{ \"state\": \"Opened\" }",
39958
+ "allowedInBasicView": true
39946
39959
  },
39947
39960
  {
39948
39961
  "name": "Close",
39949
39962
  "type": "set_state",
39950
- "jsonPayload": "{ \"state\": \"Closed\" }"
39963
+ "jsonPayload": "{ \"state\": \"Closed\" }",
39964
+ "allowedInBasicView": true
39965
+ },
39966
+ {
39967
+ "name": "Open or Close",
39968
+ "type": "set_state",
39969
+ "jsonPayload": "{ \"state\": \"Toggle\" }",
39970
+ "allowedInBasicView": true
39951
39971
  },
39952
39972
  {
39953
39973
  "name": "Play Open Sound",
@@ -39975,29 +39995,54 @@
39975
39995
  "value": [
39976
39996
  {
39977
39997
  "type": "on_click",
39998
+ "conditions": [],
39999
+ "actions": [],
40000
+ "basicViewId": "trigger-when-clicked"
40001
+ },
40002
+ {
40003
+ "type": "on_state_change",
39978
40004
  "conditions": [
39979
40005
  {
39980
40006
  "id": "{self:asset-packs::States}",
39981
40007
  "type": "when_state_is",
39982
- "value": "Closed"
40008
+ "value": "Opened"
39983
40009
  }
39984
40010
  ],
39985
40011
  "actions": [
39986
40012
  {
39987
40013
  "id": "{self:asset-packs::Actions}",
39988
- "name": "Open"
40014
+ "name": "Play Open Animation"
40015
+ },
40016
+ {
40017
+ "id": "{self:asset-packs::Actions}",
40018
+ "name": "Play Open Sound"
39989
40019
  }
39990
- ]
40020
+ ],
40021
+ "basicViewId": "trigger-when-opened"
39991
40022
  },
39992
40023
  {
39993
- "type": "on_click",
40024
+ "type": "on_state_change",
39994
40025
  "conditions": [
39995
40026
  {
39996
40027
  "id": "{self:asset-packs::States}",
39997
40028
  "type": "when_state_is",
39998
- "value": "Opened"
40029
+ "value": "Closed"
39999
40030
  }
40000
40031
  ],
40032
+ "actions": [
40033
+ {
40034
+ "id": "{self:asset-packs::Actions}",
40035
+ "name": "Play Close Animation"
40036
+ },
40037
+ {
40038
+ "id": "{self:asset-packs::Actions}",
40039
+ "name": "Play Close Sound"
40040
+ }
40041
+ ],
40042
+ "basicViewId": "trigger-when-closed"
40043
+ },
40044
+ {
40045
+ "type": "on_spawn",
40001
40046
  "actions": [
40002
40047
  {
40003
40048
  "id": "{self:asset-packs::Actions}",
@@ -40007,50 +40052,45 @@
40007
40052
  },
40008
40053
  {
40009
40054
  "type": "on_state_change",
40055
+ "operation": "and",
40010
40056
  "conditions": [
40011
40057
  {
40012
40058
  "id": "{self:asset-packs::States}",
40013
40059
  "type": "when_state_is",
40060
+ "value": "Toggle"
40061
+ },
40062
+ {
40063
+ "id": "{self:asset-packs::States}",
40064
+ "type": "when_previous_state_is",
40014
40065
  "value": "Opened"
40015
40066
  }
40016
40067
  ],
40017
40068
  "actions": [
40018
40069
  {
40019
40070
  "id": "{self:asset-packs::Actions}",
40020
- "name": "Play Open Animation"
40021
- },
40022
- {
40023
- "id": "{self:asset-packs::Actions}",
40024
- "name": "Play Open Sound"
40071
+ "name": "Close"
40025
40072
  }
40026
40073
  ]
40027
40074
  },
40028
40075
  {
40029
40076
  "type": "on_state_change",
40077
+ "operation": "and",
40030
40078
  "conditions": [
40031
40079
  {
40032
40080
  "id": "{self:asset-packs::States}",
40033
40081
  "type": "when_state_is",
40034
- "value": "Closed"
40035
- }
40036
- ],
40037
- "actions": [
40038
- {
40039
- "id": "{self:asset-packs::Actions}",
40040
- "name": "Play Close Animation"
40082
+ "value": "Toggle"
40041
40083
  },
40042
40084
  {
40043
- "id": "{self:asset-packs::Actions}",
40044
- "name": "Play Close Sound"
40085
+ "id": "{self:asset-packs::States}",
40086
+ "type": "when_previous_state_is",
40087
+ "value": "Closed"
40045
40088
  }
40046
- ]
40047
- },
40048
- {
40049
- "type": "on_spawn",
40089
+ ],
40050
40090
  "actions": [
40051
40091
  {
40052
40092
  "id": "{self:asset-packs::Actions}",
40053
- "name": "Close"
40093
+ "name": "Open"
40054
40094
  }
40055
40095
  ]
40056
40096
  }
@@ -40060,7 +40100,8 @@
40060
40100
  "id": "{self}",
40061
40101
  "value": [
40062
40102
  "Opened",
40063
- "Closed"
40103
+ "Closed",
40104
+ "Toggle"
40064
40105
  ],
40065
40106
  "defaultValue": "Closed"
40066
40107
  },
@@ -40070,6 +40111,44 @@
40070
40111
  "core::AudioSource",
40071
40112
  "asset-packs::States"
40072
40113
  ]
40114
+ },
40115
+ "core::PointerEvents": {
40116
+ "pointerEvents": [
40117
+ {
40118
+ "eventType": 2,
40119
+ "eventInfo": {
40120
+ "button": 0,
40121
+ "hoverText": "Open / Close",
40122
+ "maxDistance": 10,
40123
+ "showFeedback": true
40124
+ }
40125
+ }
40126
+ ]
40127
+ },
40128
+ "inspector::Config": {
40129
+ "isBasicViewEnabled": true,
40130
+ "componentName": "Chest",
40131
+ "fields": [
40132
+ {
40133
+ "name": "Hover Text",
40134
+ "type": "core::PointerEvents"
40135
+ },
40136
+ {
40137
+ "name": "When Clicked",
40138
+ "type": "asset-packs::Triggers",
40139
+ "basicViewId": "trigger-when-clicked"
40140
+ },
40141
+ {
40142
+ "name": "When Opened",
40143
+ "type": "asset-packs::Triggers",
40144
+ "basicViewId": "trigger-when-opened"
40145
+ },
40146
+ {
40147
+ "name": "When Closed",
40148
+ "type": "asset-packs::Triggers",
40149
+ "basicViewId": "trigger-when-closed"
40150
+ }
40151
+ ]
40073
40152
  }
40074
40153
  },
40075
40154
  "contents": {
@@ -40096,12 +40175,14 @@
40096
40175
  {
40097
40176
  "name": "Activate",
40098
40177
  "type": "set_state",
40099
- "jsonPayload": "{ \"state\": \"Activated\" }"
40178
+ "jsonPayload": "{ \"state\": \"Activated\" }",
40179
+ "allowedInBasicView": true
40100
40180
  },
40101
40181
  {
40102
40182
  "name": "Deactivate",
40103
40183
  "type": "set_state",
40104
- "jsonPayload": "{ \"state\": \"Deactivated\" }"
40184
+ "jsonPayload": "{ \"state\": \"Deactivated\" }",
40185
+ "allowedInBasicView": true
40105
40186
  },
40106
40187
  {
40107
40188
  "name": "Play Sound",
@@ -40172,7 +40253,8 @@
40172
40253
  "id": "{self:asset-packs::Actions}",
40173
40254
  "name": "Play Sound"
40174
40255
  }
40175
- ]
40256
+ ],
40257
+ "basicViewId": "trigger-when-activated"
40176
40258
  },
40177
40259
  {
40178
40260
  "type": "on_state_change",
@@ -40192,7 +40274,8 @@
40192
40274
  "id": "{self:asset-packs::Actions}",
40193
40275
  "name": "Play Sound"
40194
40276
  }
40195
- ]
40277
+ ],
40278
+ "basicViewId": "trigger-when-deactivated"
40196
40279
  }
40197
40280
  ]
40198
40281
  },
@@ -40210,6 +40293,22 @@
40210
40293
  "core::AudioSource",
40211
40294
  "asset-packs::States"
40212
40295
  ]
40296
+ },
40297
+ "inspector::Config": {
40298
+ "isBasicViewEnabled": true,
40299
+ "componentName": "Lever",
40300
+ "fields": [
40301
+ {
40302
+ "name": "When Activated",
40303
+ "type": "asset-packs::Triggers",
40304
+ "basicViewId": "trigger-when-activated"
40305
+ },
40306
+ {
40307
+ "name": "When Deactivated",
40308
+ "type": "asset-packs::Triggers",
40309
+ "basicViewId": "trigger-when-deactivated"
40310
+ }
40311
+ ]
40213
40312
  }
40214
40313
  },
40215
40314
  "contents": {
@@ -41679,53 +41778,11 @@
41679
41778
  "name": "Go to End",
41680
41779
  "type": "set_state",
41681
41780
  "jsonPayload": "{ \"state\": \"GoingToEnd\" }"
41682
- },
41683
- {
41684
- "name": "Tween to End",
41685
- "type": "start_tween",
41686
- "jsonPayload": "{ \"type\": \"move_item\", \"end\": { \"x\": 10, \"y\": 0, \"z\": 0 }, \"relative\": true, \"interpolationType\": \"linear\", \"duration\": 5 }"
41687
- },
41688
- {
41689
- "name": "Tween to Start",
41690
- "type": "start_tween",
41691
- "jsonPayload": "{ \"type\": \"move_item\", \"end\": { \"x\": -10, \"y\": 0, \"z\": 0 }, \"relative\": true, \"interpolationType\": \"linear\", \"duration\": 5 }"
41692
41781
  }
41693
41782
  ]
41694
41783
  },
41695
41784
  "asset-packs::Triggers": {
41696
41785
  "value": [
41697
- {
41698
- "type": "on_state_change",
41699
- "conditions": [
41700
- {
41701
- "id": "{self:asset-packs::States}",
41702
- "type": "when_state_is",
41703
- "value": "GoingToStart"
41704
- }
41705
- ],
41706
- "actions": [
41707
- {
41708
- "id": "{self:asset-packs::Actions}",
41709
- "name": "Tween to Start"
41710
- }
41711
- ]
41712
- },
41713
- {
41714
- "type": "on_state_change",
41715
- "conditions": [
41716
- {
41717
- "id": "{self:asset-packs::States}",
41718
- "type": "when_state_is",
41719
- "value": "GoingToEnd"
41720
- }
41721
- ],
41722
- "actions": [
41723
- {
41724
- "id": "{self:asset-packs::Actions}",
41725
- "name": "Tween to End"
41726
- }
41727
- ]
41728
- },
41729
41786
  {
41730
41787
  "type": "on_tween_end",
41731
41788
  "conditions": [
@@ -41740,7 +41797,8 @@
41740
41797
  "id": "{self:asset-packs::Actions}",
41741
41798
  "name": "Go to Start"
41742
41799
  }
41743
- ]
41800
+ ],
41801
+ "basicViewId": "trigger-when-end-reached"
41744
41802
  },
41745
41803
  {
41746
41804
  "type": "on_tween_end",
@@ -41756,16 +41814,8 @@
41756
41814
  "id": "{self:asset-packs::Actions}",
41757
41815
  "name": "Go to End"
41758
41816
  }
41759
- ]
41760
- },
41761
- {
41762
- "type": "on_spawn",
41763
- "actions": [
41764
- {
41765
- "id": "{self:asset-packs::Actions}",
41766
- "name": "Tween to End"
41767
- }
41768
- ]
41817
+ ],
41818
+ "basicViewId": "trigger-when-start-reached"
41769
41819
  }
41770
41820
  ]
41771
41821
  },
@@ -41777,9 +41827,43 @@
41777
41827
  ],
41778
41828
  "defaultValue": "GoingToEnd"
41779
41829
  },
41830
+ "core::Tween": {
41831
+ "duration": 5000,
41832
+ "easingFunction": 0,
41833
+ "mode": {
41834
+ "$case": "move",
41835
+ "move": {}
41836
+ },
41837
+ "playing": true
41838
+ },
41839
+ "core::TweenSequence": {
41840
+ "sequence": [],
41841
+ "loop": 1
41842
+ },
41780
41843
  "core-schema::Sync-Components": {
41781
41844
  "value": [
41782
- "core::Tween"
41845
+ "core::Tween",
41846
+ "asset-packs::States"
41847
+ ]
41848
+ },
41849
+ "inspector::Config": {
41850
+ "isBasicViewEnabled": true,
41851
+ "componentName": "Horizontal Platform",
41852
+ "fields": [
41853
+ {
41854
+ "name": "Tween",
41855
+ "type": "core::Tween"
41856
+ },
41857
+ {
41858
+ "name": "When End Reached",
41859
+ "type": "asset-packs::Triggers",
41860
+ "basicViewId": "trigger-when-end-reached"
41861
+ },
41862
+ {
41863
+ "name": "When Start Reached",
41864
+ "type": "asset-packs::Triggers",
41865
+ "basicViewId": "trigger-when-start-reached"
41866
+ }
41783
41867
  ]
41784
41868
  }
41785
41869
  },
@@ -42522,14 +42606,24 @@
42522
42606
  "components": {
42523
42607
  "core::NftShape": {
42524
42608
  "urn": ""
42609
+ },
42610
+ "core-schema::Sync-Components": {
42611
+ "value": [
42612
+ "core::NftShape",
42613
+ "core::VisibilityComponent"
42614
+ ]
42615
+ },
42616
+ "inspector::Config": {
42617
+ "isBasicViewEnabled": true,
42618
+ "componentName": "NFT Portrait",
42619
+ "fields": [
42620
+ {
42621
+ "name": "NFT Portrait",
42622
+ "type": "core::NftShape"
42623
+ }
42624
+ ]
42525
42625
  }
42526
42626
  },
42527
- "core-schema::Sync-Components": {
42528
- "value": [
42529
- "core::NftShape",
42530
- "core::VisibilityComponent"
42531
- ]
42532
- },
42533
42627
  "contents": {
42534
42628
  "nft.glb": "bafkreiapycsxofqqqdec5mffx5u5tgkh2np2sosapibhxc2ivbc4usla3u",
42535
42629
  "thumbnail.png": "bafkreiecz33hpwlfr4zttrvdetklfmhgzpm6xnxn4wg4aubbhtzy4kh4we"
@@ -48394,12 +48488,14 @@
48394
48488
  {
48395
48489
  "name": "Play",
48396
48490
  "type": "set_state",
48397
- "jsonPayload": "{ \"state\": \"Playing\" }"
48491
+ "jsonPayload": "{ \"state\": \"Playing\" }",
48492
+ "allowedInBasicView": true
48398
48493
  },
48399
48494
  {
48400
48495
  "name": "Stop",
48401
48496
  "type": "set_state",
48402
- "jsonPayload": "{ \"state\": \"Stopped\" }"
48497
+ "jsonPayload": "{ \"state\": \"Stopped\" }",
48498
+ "allowedInBasicView": true
48403
48499
  },
48404
48500
  {
48405
48501
  "name": "Play Video Stream",
@@ -48410,6 +48506,12 @@
48410
48506
  "name": "Stop Video Stream",
48411
48507
  "type": "stop_video_stream",
48412
48508
  "jsonPayload": "{}"
48509
+ },
48510
+ {
48511
+ "name": "Plays or Stop",
48512
+ "type": "set_state",
48513
+ "jsonPayload": "{ \"state\": \"Toggle\" }",
48514
+ "allowedInBasicView": true
48413
48515
  }
48414
48516
  ]
48415
48517
  },
@@ -48417,6 +48519,13 @@
48417
48519
  "value": [
48418
48520
  {
48419
48521
  "type": "on_click",
48522
+ "conditions": [],
48523
+ "operation": "and",
48524
+ "actions": [],
48525
+ "basicViewId": "trigger-when-clicked"
48526
+ },
48527
+ {
48528
+ "type": "on_state_change",
48420
48529
  "conditions": [
48421
48530
  {
48422
48531
  "id": "{self:asset-packs::States}",
@@ -48427,12 +48536,13 @@
48427
48536
  "actions": [
48428
48537
  {
48429
48538
  "id": "{self:asset-packs::Actions}",
48430
- "name": "Stop"
48539
+ "name": "Play Video Stream"
48431
48540
  }
48432
- ]
48541
+ ],
48542
+ "basicViewId": "trigger-when-turned-on"
48433
48543
  },
48434
48544
  {
48435
- "type": "on_click",
48545
+ "type": "on_state_change",
48436
48546
  "conditions": [
48437
48547
  {
48438
48548
  "id": "{self:asset-packs::States}",
@@ -48443,39 +48553,52 @@
48443
48553
  "actions": [
48444
48554
  {
48445
48555
  "id": "{self:asset-packs::Actions}",
48446
- "name": "Play"
48556
+ "name": "Stop Video Stream"
48447
48557
  }
48448
- ]
48558
+ ],
48559
+ "basicViewId": "trigger-when-turned-off"
48449
48560
  },
48450
48561
  {
48451
48562
  "type": "on_state_change",
48563
+ "operation": "and",
48452
48564
  "conditions": [
48453
48565
  {
48454
48566
  "id": "{self:asset-packs::States}",
48455
48567
  "type": "when_state_is",
48568
+ "value": "Toggle"
48569
+ },
48570
+ {
48571
+ "id": "{self:asset-packs::States}",
48572
+ "type": "when_previous_state_is",
48456
48573
  "value": "Playing"
48457
48574
  }
48458
48575
  ],
48459
48576
  "actions": [
48460
48577
  {
48461
48578
  "id": "{self:asset-packs::Actions}",
48462
- "name": "Play Video Stream"
48579
+ "name": "Stop"
48463
48580
  }
48464
48581
  ]
48465
48582
  },
48466
48583
  {
48467
48584
  "type": "on_state_change",
48585
+ "operation": "and",
48468
48586
  "conditions": [
48469
48587
  {
48470
48588
  "id": "{self:asset-packs::States}",
48471
48589
  "type": "when_state_is",
48590
+ "value": "Toggle"
48591
+ },
48592
+ {
48593
+ "id": "{self:asset-packs::States}",
48594
+ "type": "when_previous_state_is",
48472
48595
  "value": "Stopped"
48473
48596
  }
48474
48597
  ],
48475
48598
  "actions": [
48476
48599
  {
48477
48600
  "id": "{self:asset-packs::Actions}",
48478
- "name": "Stop Video Stream"
48601
+ "name": "Play"
48479
48602
  }
48480
48603
  ]
48481
48604
  }
@@ -48485,7 +48608,8 @@
48485
48608
  "id": "{self}",
48486
48609
  "value": [
48487
48610
  "Playing",
48488
- "Stopped"
48611
+ "Stopped",
48612
+ "Toggle"
48489
48613
  ],
48490
48614
  "defaultValue": "Stopped"
48491
48615
  },
@@ -48493,6 +48617,48 @@
48493
48617
  "value": [
48494
48618
  "core::VideoPlayer"
48495
48619
  ]
48620
+ },
48621
+ "core::PointerEvents": {
48622
+ "pointerEvents": [
48623
+ {
48624
+ "eventType": 2,
48625
+ "eventInfo": {
48626
+ "button": 0,
48627
+ "hoverText": "Play Video",
48628
+ "maxDistance": 10,
48629
+ "showFeedback": true
48630
+ }
48631
+ }
48632
+ ]
48633
+ },
48634
+ "inspector::Config": {
48635
+ "isBasicViewEnabled": true,
48636
+ "componentName": "Video Player",
48637
+ "fields": [
48638
+ {
48639
+ "name": "Hover Text",
48640
+ "type": "core::PointerEvents"
48641
+ },
48642
+ {
48643
+ "name": "Video Player",
48644
+ "type": "core::VideoPlayer"
48645
+ },
48646
+ {
48647
+ "name": "When Clicked",
48648
+ "type": "asset-packs::Triggers",
48649
+ "basicViewId": "trigger-when-clicked"
48650
+ },
48651
+ {
48652
+ "name": "When Turned On",
48653
+ "type": "asset-packs::Triggers",
48654
+ "basicViewId": "trigger-when-turned-on"
48655
+ },
48656
+ {
48657
+ "name": "When Turned Off",
48658
+ "type": "asset-packs::Triggers",
48659
+ "basicViewId": "trigger-when-turned-off"
48660
+ }
48661
+ ]
48496
48662
  }
48497
48663
  },
48498
48664
  "contents": {
@@ -48517,12 +48683,20 @@
48517
48683
  {
48518
48684
  "name": "Open",
48519
48685
  "type": "set_state",
48520
- "jsonPayload": "{ \"state\": \"Open\" }"
48686
+ "jsonPayload": "{ \"state\": \"Open\" }",
48687
+ "allowedInBasicView": true
48521
48688
  },
48522
48689
  {
48523
48690
  "name": "Close",
48524
48691
  "type": "set_state",
48525
- "jsonPayload": "{ \"state\": \"Closed\" }"
48692
+ "jsonPayload": "{ \"state\": \"Closed\" }",
48693
+ "allowedInBasicView": true
48694
+ },
48695
+ {
48696
+ "name": "Open or Close",
48697
+ "type": "set_state",
48698
+ "jsonPayload": "{ \"state\": \"Toggle\" }",
48699
+ "allowedInBasicView": true
48526
48700
  },
48527
48701
  {
48528
48702
  "name": "Play Sound",
@@ -48545,73 +48719,93 @@
48545
48719
  "value": [
48546
48720
  {
48547
48721
  "type": "on_click",
48722
+ "conditions": [],
48723
+ "actions": [],
48724
+ "basicViewId": "trigger-when-clicked"
48725
+ },
48726
+ {
48727
+ "type": "on_state_change",
48548
48728
  "conditions": [
48549
48729
  {
48550
48730
  "id": "{self:asset-packs::States}",
48551
48731
  "type": "when_state_is",
48552
- "value": "Closed"
48732
+ "value": "Open"
48553
48733
  }
48554
48734
  ],
48555
48735
  "actions": [
48556
48736
  {
48557
48737
  "id": "{self:asset-packs::Actions}",
48558
- "name": "Open"
48738
+ "name": "Play Open Animation"
48739
+ },
48740
+ {
48741
+ "id": "{self:asset-packs::Actions}",
48742
+ "name": "Play Sound"
48559
48743
  }
48560
- ]
48744
+ ],
48745
+ "basicViewId": "trigger-when-opened"
48561
48746
  },
48562
48747
  {
48563
- "type": "on_click",
48748
+ "type": "on_state_change",
48564
48749
  "conditions": [
48565
48750
  {
48566
48751
  "id": "{self:asset-packs::States}",
48567
48752
  "type": "when_state_is",
48568
- "value": "Open"
48753
+ "value": "Closed"
48569
48754
  }
48570
48755
  ],
48571
48756
  "actions": [
48572
48757
  {
48573
48758
  "id": "{self:asset-packs::Actions}",
48574
- "name": "Close"
48759
+ "name": "Play Close Animation"
48760
+ },
48761
+ {
48762
+ "id": "{self:asset-packs::Actions}",
48763
+ "name": "Play Sound"
48575
48764
  }
48576
- ]
48765
+ ],
48766
+ "basicViewId": "trigger-when-closed"
48577
48767
  },
48578
48768
  {
48579
48769
  "type": "on_state_change",
48770
+ "operation": "and",
48580
48771
  "conditions": [
48581
48772
  {
48582
48773
  "id": "{self:asset-packs::States}",
48583
48774
  "type": "when_state_is",
48775
+ "value": "Toggle"
48776
+ },
48777
+ {
48778
+ "id": "{self:asset-packs::States}",
48779
+ "type": "when_previous_state_is",
48584
48780
  "value": "Open"
48585
48781
  }
48586
48782
  ],
48587
48783
  "actions": [
48588
48784
  {
48589
48785
  "id": "{self:asset-packs::Actions}",
48590
- "name": "Play Open Animation"
48591
- },
48592
- {
48593
- "id": "{self:asset-packs::Actions}",
48594
- "name": "Play Sound"
48786
+ "name": "Close"
48595
48787
  }
48596
48788
  ]
48597
48789
  },
48598
48790
  {
48599
48791
  "type": "on_state_change",
48792
+ "operation": "and",
48600
48793
  "conditions": [
48601
48794
  {
48602
48795
  "id": "{self:asset-packs::States}",
48603
48796
  "type": "when_state_is",
48797
+ "value": "Toggle"
48798
+ },
48799
+ {
48800
+ "id": "{self:asset-packs::States}",
48801
+ "type": "when_previous_state_is",
48604
48802
  "value": "Closed"
48605
48803
  }
48606
48804
  ],
48607
48805
  "actions": [
48608
48806
  {
48609
48807
  "id": "{self:asset-packs::Actions}",
48610
- "name": "Play Close Animation"
48611
- },
48612
- {
48613
- "id": "{self:asset-packs::Actions}",
48614
- "name": "Play Sound"
48808
+ "name": "Open"
48615
48809
  }
48616
48810
  ]
48617
48811
  }
@@ -48621,7 +48815,8 @@
48621
48815
  "id": "{self}",
48622
48816
  "value": [
48623
48817
  "Open",
48624
- "Closed"
48818
+ "Closed",
48819
+ "Toggle"
48625
48820
  ],
48626
48821
  "defaultValue": "Closed"
48627
48822
  },
@@ -48631,6 +48826,44 @@
48631
48826
  "core::AudioSource",
48632
48827
  "asset-packs::States"
48633
48828
  ]
48829
+ },
48830
+ "core::PointerEvents": {
48831
+ "pointerEvents": [
48832
+ {
48833
+ "eventType": 2,
48834
+ "eventInfo": {
48835
+ "button": 0,
48836
+ "hoverText": "Open / Close",
48837
+ "maxDistance": 10,
48838
+ "showFeedback": true
48839
+ }
48840
+ }
48841
+ ]
48842
+ },
48843
+ "inspector::Config": {
48844
+ "isBasicViewEnabled": true,
48845
+ "componentName": "Door",
48846
+ "fields": [
48847
+ {
48848
+ "name": "Hover Text",
48849
+ "type": "core::PointerEvents"
48850
+ },
48851
+ {
48852
+ "name": "When Clicked",
48853
+ "type": "asset-packs::Triggers",
48854
+ "basicViewId": "trigger-when-clicked"
48855
+ },
48856
+ {
48857
+ "name": "When Opened",
48858
+ "type": "asset-packs::Triggers",
48859
+ "basicViewId": "trigger-when-opened"
48860
+ },
48861
+ {
48862
+ "name": "When Closed",
48863
+ "type": "asset-packs::Triggers",
48864
+ "basicViewId": "trigger-when-closed"
48865
+ }
48866
+ ]
48634
48867
  }
48635
48868
  },
48636
48869
  "contents": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/asset-packs",
3
- "version": "1.15.2",
3
+ "version": "1.15.3-20240326191607.commit-d2d67d9",
4
4
  "description": "",
5
5
  "main": "dist/definitions.js",
6
6
  "typings": "dist/definitions.d.ts",
@@ -60,5 +60,5 @@
60
60
  "semi": false,
61
61
  "printWidth": 80
62
62
  },
63
- "commit": "657ac72899807aebec842de67ae45972819e490f"
63
+ "commit": "d2d67d9141aaa5babbc00d7673154a7addc4405a"
64
64
  }