Add visibility and delete buttons to node sections in the Properties panel

This commit is contained in:
Keavon Chambers
2024-05-07 02:53:30 -07:00
parent 1ce3d59e0f
commit 07fd2c2782
10 changed files with 139 additions and 68 deletions
+3 -3
View File
@@ -129,8 +129,8 @@
return currentFolder;
}
function toggleLayerVisibility(id: bigint) {
editor.handle.toggleLayerVisibility(id);
function toggleNodeVisibility(id: bigint) {
editor.handle.toggleNodeVisibility(id);
}
function toggleLayerLock(id: bigint) {
@@ -430,7 +430,7 @@
<IconButton
class={"status-toggle"}
classes={{ inactive: !listing.entry.parentsVisible }}
action={(e) => (toggleLayerVisibility(listing.entry.id), e?.stopPropagation())}
action={(e) => (toggleNodeVisibility(listing.entry.id), e?.stopPropagation())}
size={24}
icon={listing.entry.visible ? "EyeVisible" : "EyeHidden"}
hoverIcon={listing.entry.visible ? "EyeHide" : "EyeShow"}