-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: create custom item * fix: exclude editor components * fix: add children to composite * fix: map resources from within actions * feat: support mapping resources from deeper properties like the case of material * feat: replace ids with {self} notation * fix: make a deep copy of component value * feat: read custom items from data-layer and render tab * feat: instance custom assets * fix: component value key * fix: map ids with multiple entities * fix: preserve names * chore: remove debuggers * fix: use addChild to set unique name * fix: styles * feat: delete custom asset * fix: allow writing over empty item * feat: custom component and icon * fix: enable tween component * feat: show instance of in entity header * fix: include resources loaded by GLTF into the custom asset package * chore: upgrade asset-packs * chore: rebuild * chore: fix tests * chore: roll back change in default formatter * feat: rename custom asset * chore: fix test * fix: smart item basic view re-render * fix: map cross-entity actions, conditions and triggers * fix: context menu multiselect * fix: centroid on custom assets with multiple roots * fix: use first entity name as custom asset name * feat: support naming custom asset before creation * chore: fix test * fix: icon size * feat: generate thumbnail * feat: added spinner while image is being generated * chore: added tests * chore: added more tests * fix: rename custom assets to custom items * fix: allow smart item basic view on custom items * fix: pass other resources necessary to render the model to generate the thumbnails * fix: bind hotkeys to body instead of canvas
- Loading branch information
Showing
64 changed files
with
2,256 additions
and
160 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export type Props = { | ||
export interface Props { | ||
value: File | ||
resources?: File[] | ||
onScreenshot: (value: string) => void | ||
onLoad?: () => void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/@dcl/inspector/src/components/Assets/custom-asset-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions
67
packages/@dcl/inspector/src/components/CreateCustomAsset/CreateCustomAsset.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.CreateCustomAsset { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 16px; | ||
} | ||
|
||
.CreateCustomAsset .file-container { | ||
display: flex; | ||
gap: 16px; | ||
padding: 16px; | ||
align-items: flex-start; | ||
} | ||
|
||
.CreateCustomAsset .file-container svg { | ||
width: 80px; | ||
height: 80px; | ||
padding: 8px; | ||
border-radius: 8px; | ||
background: var(--list-item-bg-color); | ||
} | ||
|
||
.CreateCustomAsset .preview-container { | ||
width: 80px; | ||
height: 80px; | ||
border-radius: 8px; | ||
background: var(--list-item-bg-color); | ||
overflow: hidden; | ||
position: relative; | ||
} | ||
|
||
.CreateCustomAsset .preview-container .AssetPreview { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.CreateCustomAsset .loader-container { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background: rgba(0, 0, 0, 0.5); | ||
z-index: 1; | ||
} | ||
|
||
.CreateCustomAsset .column { | ||
width: 300px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
} | ||
|
||
.CreateCustomAsset .button-container { | ||
display: flex; | ||
gap: 8px; | ||
} | ||
|
||
.CreateCustomAsset .create { | ||
background-color: var(--primary); | ||
color: var(--text-on-primary); | ||
} |
Oops, something went wrong.