@dcl-regenesislabs/web-editor 0.1.1-37509646646.commit-126b34d → 0.1.1-38415884993.commit-9d6277f
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/editor.js +1231 -464
- package/package.json +2 -2
- package/prefabs/announcer/ai.md +9 -2
- package/prefabs/announcer/data.json +6 -7
- package/prefabs/announcer/scripts/announcer.tsx +16 -37
- package/prefabs/catalog.json +1 -1
- package/prefabs/game-flow/ai.md +6 -0
- package/prefabs/game-flow/data.json +7 -3
- package/prefabs/game-flow/scripts/game-flow.ts +22 -5
- package/prefabs/health-respawn/ai.md +25 -2
- package/prefabs/health-respawn/data.json +8 -1
- package/prefabs/health-respawn/scripts/health-respawn.ts +52 -20
- package/prefabs/health-respawn/scripts/health.ts +21 -0
- package/prefabs/health-respawn/scripts/pure/life.ts +59 -0
- package/prefabs/leaderboard/ai.md +27 -9
- package/prefabs/leaderboard/composite.json +2 -2
- package/prefabs/leaderboard/data.json +14 -7
- package/prefabs/leaderboard/scripts/leaderboard-hud.tsx +28 -0
- package/prefabs/leaderboard/scripts/leaderboard.ts +41 -5
- package/prefabs/leaderboard/scripts/pure/board.ts +10 -3
- package/prefabs/run-progress/ai.md +101 -0
- package/prefabs/run-progress/composite.json +9 -0
- package/prefabs/run-progress/data.json +43 -0
- package/prefabs/run-progress/scripts/moving-platform.ts +28 -0
- package/prefabs/run-progress/scripts/run-progress.tsx +170 -0
- package/prefabs/run-progress/thumbnail.png +0 -0
- package/prefabs/server-clock/ai.md +10 -7
- package/prefabs/server-clock/data.json +5 -1
- package/prefabs/server-clock/scripts/server-clock.ts +7 -6
- package/prefabs/trigger-zone/ai.md +13 -7
- package/prefabs/trigger-zone/data.json +2 -1
- package/prefabs/ui-theme/ai.md +30 -0
- package/prefabs/ui-theme/composite.json +31 -0
- package/prefabs/ui-theme/data.json +24 -0
- package/prefabs/ui-theme/scripts/ui-theme.ts +16 -0
- package/prefabs/ui-theme/thumbnail.png +0 -0
- package/scene/about +1 -1
- package/scene/{bafkreidzfny4im7pqpzuedreg2q5e6pd3vokz7h2py5b6zjxn3er6h4f5i → bafkreifyskofqvjvp22m3eaxz2mpwibp7j4wtimdj5bxtqsd7onkbnjlsa} +1 -1
- package/scene/bafybeiblcndgruoz3ewqrheei4moyeoehankul4yd43co33djksumfd3se +90 -0
- package/three/worker.js +3832 -0
- package/web-build/index.js +6 -3
- package/web-build/sdk-snapshot.json +1 -1
- package/web-build/worker.js +29 -26
- package/dcl-regenesislabs-web-editor-0.1.1-37509646646.commit-126b34d.tgz +0 -0
- package/prefabs/server-clock/scripts/clock-hud.tsx +0 -55
- package/scene/bafybeihw3xlbff4sf5sc3kvmlmlwf2visnty5lfymawlunzt5vrkp5fd7u +0 -90
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Entity } from '@dcl/sdk/ecs'
|
|
2
|
+
import type { ColorHex } from '~runtime/authoring'
|
|
3
|
+
import { setUiTheme } from '~runtime/uiTheme'
|
|
4
|
+
|
|
5
|
+
export class UiTheme {
|
|
6
|
+
constructor(
|
|
7
|
+
public src: string,
|
|
8
|
+
public entity: Entity,
|
|
9
|
+
public accentColor: ColorHex = '#FF2D55',
|
|
10
|
+
public appearance: 'Dark' | 'Light' = 'Dark'
|
|
11
|
+
) {}
|
|
12
|
+
|
|
13
|
+
start(): void {
|
|
14
|
+
setUiTheme(this.entity, this.accentColor, this.appearance)
|
|
15
|
+
}
|
|
16
|
+
}
|
|
Binary file
|
package/scene/about
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"networkId": 0,
|
|
6
6
|
"globalScenesUrn": [],
|
|
7
7
|
"scenesUrn": [
|
|
8
|
-
"urn:decentraland:entity:
|
|
8
|
+
"urn:decentraland:entity:bafkreifyskofqvjvp22m3eaxz2mpwibp7j4wtimdj5bxtqsd7onkbnjlsa"
|
|
9
9
|
],
|
|
10
10
|
"realmName": "editor-scene"
|
|
11
11
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"content":[{"file":"scene.json","hash":"bafkreiby2gmthtauf7cckttphmhpecsueyypi2hzlke4lcodg7fm4cm2sq"},{"file":"main.crdt","hash":"bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku"},{"file":"bin/index.js","hash":"
|
|
1
|
+
{"content":[{"file":"scene.json","hash":"bafkreiby2gmthtauf7cckttphmhpecsueyypi2hzlke4lcodg7fm4cm2sq"},{"file":"main.crdt","hash":"bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku"},{"file":"bin/index.js","hash":"bafybeiblcndgruoz3ewqrheei4moyeoehankul4yd43co33djksumfd3se"}],"pointers":[],"timestamp":0,"type":"scene","metadata":{"ecs7":true,"runtimeVersion":"7","display":{"title":"Component Inspector","description":"Inspect and modify component state of the current scene"},"owner":"","contact":{"name":"","email":""},"main":"bin/index.js","tags":[],"scene":{"parcels":["0,0"],"base":"0,0"},"spawnPoints":[],"featureToggles":{"portableExperiences":"enabled"}},"version":"v3"}
|