Resizeable comments

This commit is contained in:
barsdeveloper
2022-12-04 22:12:53 +01:00
parent 41e1ffd59b
commit 9e8e25d832
19 changed files with 1103 additions and 443 deletions

View File

@@ -11,10 +11,6 @@ ueb-node {
box-shadow: none;
}
ueb-blueprint[data-scrolling="false"][data-selecting="false"] ueb-node {
cursor: move;
}
.ueb-node-border {
margin: -3px;
padding: 3px;
@@ -55,6 +51,10 @@ ueb-node[data-selected="true"]>.ueb-node-border {
overflow: hidden;
}
ueb-blueprint[data-scrolling="false"][data-selecting="false"] .ueb-node-wrapper {
cursor: move;
}
.ueb-zoom--2 .ueb-node-wrapper {
box-shadow: none;
padding: 0;
@@ -219,13 +219,6 @@ ueb-node[data-selected="true"] .ueb-node-border {
background: none;
}
ueb-node.ueb-node-resizeable {
position: relative;
}
ueb-node.ueb-node-resizeable .ueb-node-handler-top,
.ueb-node-handler-bottom {}
ueb-node.ueb-node-style-glass .ueb-node-top,
ueb-node.ueb-node-style-glass .ueb-node-name {
margin: 0;
@@ -244,10 +237,20 @@ ueb-node.ueb-node-style-glass .ueb-node-outputs:first-child {
padding-left: 8px;
}
ueb-node.ueb-node-style-comment {
z-index: -1;
}
ueb-node.ueb-node-style-comment .ueb-node-border {
height: 100%;
}
ueb-node.ueb-node-style-comment .ueb-node-wrapper {
padding: 0;
height: 100%;
border-radius: 0;
background: rgba(var(--ueb-node-color), 0.5);
box-shadow: 0;
box-shadow: none;
}
ueb-node.ueb-node-style-comment .ueb-node-top {

View File

@@ -160,7 +160,6 @@ ueb-pin[data-type="/Script/CoreUObject.LinearColor"] .ueb-pin-input {
line-height: calc(1em + 1px);
background: none;
color: inherit;
cursor: text;
overflow: auto;
&::-webkit-scrollbar {
@@ -174,3 +173,7 @@ ueb-pin[data-type="/Script/CoreUObject.LinearColor"] .ueb-pin-input {
margin: 4px;
}
}
ueb-blueprint[data-scrolling="false"][data-selecting="false"] .ueb-node-wrapper {
cursor: move;
}

View File

@@ -95,3 +95,73 @@ ueb-window .ueb-pin-input-content {
cursor: pointer;
}
}
.ueb-resizeable-top,
.ueb-resizeable-top-right,
.ueb-resizeable-top-left {
position: absolute;
top: 0;
height: 10px;
}
.ueb-resizeable-top {
right: 0;
left: 0;
cursor: ns-resize;
}
.ueb-resizeable-top-right {
right: 0;
width: 10px;
cursor: nesw-resize;
}
.ueb-resizeable-top-left {
left: 0;
width: 10px;
cursor: nwse-resize;
}
.ueb-resizeable-right {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 10px;
cursor: ew-resize;
}
.ueb-resizeable-bottom,
.ueb-resizeable-bottom-right,
.ueb-resizeable-bottom-left {
position: absolute;
bottom: -3px;
height: 10px;
cursor: ns-resize;
}
.ueb-resizeable-bottom {
right: 0;
left: 0;
}
.ueb-resizeable-bottom-right {
right: 0;
width: 10px;
cursor: nwse-resize;
}
.ueb-resizeable-bottom-left {
left: 0;
width: 10px;
cursor: nesw-resize;
}
.ueb-resizeable-left {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 10px;
cursor: ew-resize;
}