Filter bundled foliage prototypes and update UI styling
This commit is contained in:
@@ -2598,12 +2598,16 @@ export function App({ store, draftStorage = null, initialStatusMessage }: AppPro
|
||||
);
|
||||
const customFoliagePrototypeList = useMemo(
|
||||
() =>
|
||||
Object.values(editorState.document.foliagePrototypes).sort(
|
||||
(left, right) =>
|
||||
left.category.localeCompare(right.category) ||
|
||||
left.label.localeCompare(right.label) ||
|
||||
left.id.localeCompare(right.id)
|
||||
),
|
||||
Object.values(editorState.document.foliagePrototypes)
|
||||
.filter(
|
||||
(prototype) => !BUNDLED_FOLIAGE_PROTOTYPE_IDS.has(prototype.id)
|
||||
)
|
||||
.sort(
|
||||
(left, right) =>
|
||||
left.category.localeCompare(right.category) ||
|
||||
left.label.localeCompare(right.label) ||
|
||||
left.id.localeCompare(right.id)
|
||||
),
|
||||
[editorState.document.foliagePrototypes]
|
||||
);
|
||||
const pathList = getScenePaths(editorState.document.paths);
|
||||
|
||||
@@ -458,6 +458,18 @@ button:disabled {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.foliage-prototype-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
max-height: 260px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.foliage-prototype-choice {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.outliner-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in New Issue
Block a user