@dcl/sdk 7.0.0-3108095849.commit-cc94e35 → 7.0.0-3138450135.commit-b55c337

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.
@@ -6,14 +6,33 @@ option (ecs_component_id) = 1040;
6
6
  import "common/Color3.proto";
7
7
 
8
8
  message PBNFTShape {
9
- // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
10
- optional bool with_collisions = 1; // default=true
11
- // @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
12
- optional bool is_pointer_blocker = 2; // default=true
13
- // @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
14
- optional bool visible = 3; // default=true
15
- string src = 4;
16
- optional string asset_id = 5;
17
- optional int32 style = 6;
18
- optional Color3 color = 7;
9
+ enum PictureFrameStyle {
10
+ Classic = 0;
11
+ Baroque_Ornament = 1;
12
+ Diamond_Ornament = 2;
13
+ Minimal_Wide = 3;
14
+ Minimal_Grey = 4;
15
+ Blocky = 5;
16
+ Gold_Edges = 6;
17
+ Gold_Carved = 7;
18
+ Gold_Wide = 8;
19
+ Gold_Rounded = 9;
20
+ Metal_Medium = 10;
21
+ Metal_Wide = 11;
22
+ Metal_Slim = 12;
23
+ Metal_Rounded = 13;
24
+ Pins = 14;
25
+ Minimal_Black = 15;
26
+ Minimal_White = 16;
27
+ Tape = 17;
28
+ Wood_Slim = 18;
29
+ Wood_Wide = 19;
30
+ Wood_Twigs = 20;
31
+ Canvas = 21;
32
+ None = 22;
33
+ }
34
+
35
+ string src = 1;
36
+ optional PictureFrameStyle style = 2; // default = PictureFrameStyle.Classic
37
+ optional Color3 color = 3; // default = Color3(0.6404918, 0.611472, 0.8584906)
19
38
  }
@@ -1 +1 @@
1
- {"content":[{"path":"cube-spawner-example.ts"},{"path":"material-test.ts"},{"path":"meshes-test-creation.ts"},{"path":"pointer-event-test.ts"},{"path":"raycast-hit-oscillator-example.ts"},{"path":"raycast-test-hit-many.ts"},{"path":"raycast-test-hit-one.ts"}]}
1
+ [{"name":"Cube Spawner","category":"sample","path":"cube-spawner.ts"},{"name":"Material","category":"component","path":"material.ts"},{"name":"Mesh","category":"component","path":"mesh.ts"},{"name":"Pointer Events","category":"sample","path":"pointer-events.ts"},{"name":"Raycast Hit","category":"component","path":"raycast-hit.ts"},{"name":"Raycast Hit many","category":"sample","path":"raycast-hit-many.ts"},{"name":"Raycast Hit Oscilator","category":"sample","path":"raycast-hit-oscilator.ts"},{"name":"Container","category":"ui","path":"ui.tsx"}]
@@ -0,0 +1,37 @@
1
+ import ReactEcs, {
2
+ renderUi,
3
+ UiEntity,
4
+ YGAlign,
5
+ YGDisplay,
6
+ YGJustify
7
+ } from '@dcl/react-ecs'
8
+
9
+ export const uiComponent = () => (
10
+ <UiEntity
11
+ uiTransform={{
12
+ width: 500,
13
+ height: 500,
14
+ padding: { top: 10, right: 10, bottom: 10, left: 10 }
15
+ }}
16
+ uiStyles={{ backgroundColor: { r: 10, g: 10, b: 10, a: 0.2 } }}
17
+ >
18
+ <UiEntity
19
+ uiTransform={{
20
+ width: 100,
21
+ height: 100,
22
+ display: YGDisplay.YGDisplayFlex,
23
+ justifyContent: YGJustify.YGJustifyCenter,
24
+ alignItems: YGAlign.YGAlignCenter
25
+ }}
26
+ uiStyles={{ backgroundColor: { r: 255, g: 45, b: 85, a: 0.2 } }}
27
+ >
28
+ <UiEntity
29
+ uiTransform={{ width: 80, height: 20 }}
30
+ uiText={{ value: 'Boedo', textAlign: 0, fontSize: 12 }}
31
+ uiStyles={{ backgroundColor: { r: 255, g: 45, b: 85, a: 1 } }}
32
+ />
33
+ </UiEntity>
34
+ </UiEntity>
35
+ )
36
+
37
+ renderUi(uiComponent)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.0-3108095849.commit-cc94e35",
3
+ "version": "7.0.0-3138450135.commit-b55c337",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "src/cli/**/*.js"
28
28
  ],
29
29
  "dependencies": {
30
- "@dcl/amd": "6.11.9-3108095849.commit-cc94e35",
31
- "@dcl/build-ecs": "6.11.9-3108095849.commit-cc94e35",
30
+ "@dcl/amd": "6.11.9-3138450135.commit-b55c337",
31
+ "@dcl/build-ecs": "6.11.9-3138450135.commit-b55c337",
32
32
  "@dcl/kernel": "1.0.0-2994874542.commit-c3ae489",
33
33
  "@dcl/posix": "^1.0.4",
34
34
  "@dcl/schemas": "4.8.0",
@@ -38,5 +38,5 @@
38
38
  "ignore": "^5.1.8"
39
39
  },
40
40
  "minCliVersion": "3.10.2",
41
- "commit": "cc94e357c89d679b30afc8ddf674913f382288a1"
41
+ "commit": "b55c3376c347a45a69fc6d30af254cc0eb7816df"
42
42
  }
@@ -2000,18 +2000,40 @@ declare interface PBMeshRenderer_SphereMesh {
2000
2000
  }
2001
2001
 
2002
2002
  declare interface PBNFTShape {
2003
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
2004
- withCollisions?: boolean | undefined;
2005
- /** @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366 */
2006
- isPointerBlocker?: boolean | undefined;
2007
- /** @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353 */
2008
- visible?: boolean | undefined;
2009
2003
  src: string;
2010
- assetId?: string | undefined;
2011
- style?: number | undefined;
2004
+ /** default = PictureFrameStyle.Classic */
2005
+ style?: PBNFTShape_PictureFrameStyle | undefined;
2006
+ /** default = Color3(0.6404918, 0.611472, 0.8584906) */
2012
2007
  color?: Color3 | undefined;
2013
2008
  }
2014
2009
 
2010
+ declare const enum PBNFTShape_PictureFrameStyle {
2011
+ Classic = 0,
2012
+ Baroque_Ornament = 1,
2013
+ Diamond_Ornament = 2,
2014
+ Minimal_Wide = 3,
2015
+ Minimal_Grey = 4,
2016
+ Blocky = 5,
2017
+ Gold_Edges = 6,
2018
+ Gold_Carved = 7,
2019
+ Gold_Wide = 8,
2020
+ Gold_Rounded = 9,
2021
+ Metal_Medium = 10,
2022
+ Metal_Wide = 11,
2023
+ Metal_Slim = 12,
2024
+ Metal_Rounded = 13,
2025
+ Pins = 14,
2026
+ Minimal_Black = 15,
2027
+ Minimal_White = 16,
2028
+ Tape = 17,
2029
+ Wood_Slim = 18,
2030
+ Wood_Wide = 19,
2031
+ Wood_Twigs = 20,
2032
+ Canvas = 21,
2033
+ None = 22,
2034
+ UNRECOGNIZED = -1
2035
+ }
2036
+
2015
2037
  declare interface PBOnPointerDown {
2016
2038
  /** default=ActionButton.ANY */
2017
2039
  button?: ActionButton | undefined;