mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 16:44:49 +08:00
Linear color fix
This commit is contained in:
15
dist/css/ueb-style.css
vendored
15
dist/css/ueb-style.css
vendored
@@ -311,7 +311,7 @@ ueb-node[data-selected=true] > .ueb-node-border {
|
||||
background: repeating-linear-gradient(-45deg, transparent 0, #57590a 1px, #57590a 11px, transparent 12px, transparent 24px);
|
||||
text-align: center;
|
||||
padding: 2px;
|
||||
letter-spacing: 0.06em;
|
||||
letter-spacing: 0.04em;
|
||||
text-shadow: 1px 1px 1px black;
|
||||
}
|
||||
|
||||
@@ -432,6 +432,15 @@ ueb-pin[data-type=bool] .ueb-pin-input:checked {
|
||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="none" stroke="%230070e0" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M 5 10 l 3 3 l 6 -6" /></svg>');
|
||||
}
|
||||
|
||||
ueb-pin[data-type="/Script/CoreUObject.LinearColor"] .ueb-pin-input {
|
||||
padding: 0;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-color: #505050;
|
||||
border-radius: 0;
|
||||
background-color: var(--ueb-linear-color);
|
||||
}
|
||||
|
||||
.ueb-pin-input-content {
|
||||
display: block;
|
||||
outline: none;
|
||||
@@ -561,8 +570,8 @@ ueb-pin[data-type=string] {
|
||||
--ueb-pin-color-rgb: var(--ueb-pin-string-color);
|
||||
}
|
||||
|
||||
ueb-pin[data-type=struct] {
|
||||
--ueb-pin-color-rgb: var(--ueb-pin-struct-color);
|
||||
ueb-pin[data-type="/Script/CoreUObject.LinearColor"] {
|
||||
--ueb-pin-color-rgb: var(--ueb-pin-linear-color);
|
||||
}
|
||||
|
||||
ueb-pin[data-type=vector] {
|
||||
|
||||
2
dist/css/ueb-style.css.map
vendored
2
dist/css/ueb-style.css.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"sourceRoot":"","sources":["../../scss/style.scss","../../scss/ueb-node.scss","../../scss/ueb-pin.scss","../../scss/ueb-link.scss","../../scss/ueb-type-color.scss"],"names":[],"mappings":"AAAA;EACI;EACA;EACA,KACI;;AAIR;EACI;EACA;EACA,KACI;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBAEI;EA0BJ,iBAEI;EAQJ;EACA;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBAEI;EAmDJ,iBAEI;EAWJ,qBAEI;EAOJ;;;AAGJ;EACI;;;AAIJ;EACI;;;ACnUJ;EACI;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI,kBACI;EAIJ;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA,YACI;EAGJ;EACA;EACA;EACA;EACA;;;AAGJ;EACI,YACI;EAGJ;;;AAGJ;EAC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I","file":"ueb-style.css"}
|
||||
{"version":3,"sourceRoot":"","sources":["../../scss/style.scss","../../scss/ueb-node.scss","../../scss/ueb-pin.scss","../../scss/ueb-link.scss","../../scss/ueb-type-color.scss"],"names":[],"mappings":"AAAA;EACI;EACA;EACA,KACI;;AAIR;EACI;EACA;EACA,KACI;;AAIR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBAEI;EA0BJ,iBAEI;EAQJ;EACA;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA,kBAEI;EAmDJ,iBAEI;EAWJ,qBAEI;EAOJ;;;AAGJ;EACI;;;AAIJ;EACI;;;ACnUJ;EACI;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI,kBACI;EAIJ;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA,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GJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;EACI","file":"ueb-style.css"}
|
||||
2
dist/css/ueb-style.min.css
vendored
2
dist/css/ueb-style.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/ueb-style.min.css.map
vendored
2
dist/css/ueb-style.min.css.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"sourceRoot":"","sources":["../../scss/style.scss","../../scss/ueb-node.scss","../../scss/ueb-pin.scss","../../scss/ueb-link.scss","../../scss/ueb-type-color.scss"],"names":[],"mappings":"AAAA,WACI,qBACA,iBACA,IACI,kGAIR,WACI,qBACA,mBACA,IACI,sGAIR,cACI,eACA,6CACA,cACA,kBACA,8EACA,+BACA,WACA,iBAGJ,kBACI,iBAGJ,qBACI,aACA,kBACA,MACA,QACA,OACA,aACA,0BACA,UAGJ,mBACI,iBACA,iCACA,eAGJ,mBACI,kBACA,gCACA,gBACA,kBAGJ,oDACI,gBAGJ,UACI,kFACA,kBACA,eACA,gBACA,+DACA,gEACA,yBACA,iBAEI,s3BA0BJ,gBAEI,sZAQJ,sFACA,gEACA,oDACA,qBACA,gBAGJ,6CACI,gBAGJ,8CACI,eAGJ,6BACI,eAGJ,6BACI,mBAGJ,6BACI,kBAGJ,6BACI,mBAGJ,6BACI,iBAGJ,6BACI,mBAGJ,6BACI,kBAGJ,8BACI,mBAGJ,8BACI,kBAGJ,8BACI,mBAGJ,8BACI,iBACA,uDAGJ,8BACI,mBACA,uDAGJ,8BACI,sBACA,uDAGJ,8BACI,iBACA,uDAGJ,8BACI,sBACA,uDAGJ,8BACI,sBACA,uDAGJ,+BACI,iBACA,uDAGJ,+BACI,sBACA,uDAGJ,+BACI,sBACA,uDAGJ,kBACI,kBACA,QACA,SACA,wGAGJ,sBACI,QACA,SAGJ,yEACI,8DACA,8DACA,8DACA,8DACA,oGACA,qGACA,kBACA,wCACA,yCACA,0CACA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ACI,iEACA,kBACA,MACA,OACA,WACA,YACA,eACA,8FAGJ,kBACI,mBACA,6BACA,eAGJ,gEAEI,eACA,4BAGJ,kBACI,cACA,mBACA,kBACA,kDACA,qHAOA,sBACA,gBACA,kBACA,4EACA,+BACA,mBACA,gBC1DJ,cACI,6BAGJ,SACI,iDAGJ,QACI,4NAMA,+CAGJ,wBACI,+CAGJ,yBACI,gDAGJ,wBACI,+CAGJ,uBACI,8CAGJ,wBACI,+CAGJ,0BACI,iDAGJ,wBACI,+CAGJ,2BACI,kDAGJ,0BACI,iDAGJ,0BACI,iDAGJ,0BACI","file":"ueb-style.min.css"}
|
||||
{"version":3,"sourceRoot":"","sources":["../../scss/style.scss","../../scss/ueb-node.scss","../../scss/ueb-pin.scss","../../scss/ueb-link.scss","../../scss/ueb-type-color.scss"],"names":[],"mappings":"AAAA,WACI,qBACA,iBACA,IACI,kGAIR,WACI,qBACA,mBACA,IACI,sGAIR,cACI,eACA,6CACA,cACA,kBACA,8EACA,+BACA,WACA,iBAGJ,kBACI,iBAGJ,qBACI,aACA,kBACA,MACA,QACA,OACA,aACA,0BACA,UAGJ,mBACI,iBACA,iCACA,eAGJ,mBACI,kBACA,gCACA,gBACA,kBAGJ,oDACI,gBAGJ,UACI,kFACA,kBACA,eACA,gBACA,+DACA,gEACA,yBACA,iBAEI,s3BA0BJ,gBAEI,sZAQJ,sFACA,gEACA,oDACA,qBACA,gBAGJ,6CACI,gBAGJ,8CACI,eAGJ,6BACI,eAGJ,6BACI,mBAGJ,6BACI,kBAGJ,6BACI,mBAGJ,6BACI,iBAGJ,6BACI,mBAGJ,6BACI,kBAGJ,8BACI,mBAGJ,8BACI,kBAGJ,8BACI,mBAGJ,8BACI,iBACA,uDAGJ,8BACI,mBACA,uDAGJ,8BACI,sBACA,uDAGJ,8BACI,iBACA,uDAGJ,8BACI,sBACA,uDAGJ,8BACI,sBACA,uDAGJ,+BACI,iBACA,uDAGJ,+BACI,sBACA,uDAGJ,+BACI,sBACA,uDA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AGJ,uBACI,cACA,aACA,YACA,UACA,eACA,gBACA,gBACA,gBACA,cACA,YACA,cAEA,0CACI,WACA,YAGJ,gDACI,mBACA,mBACA,WC7HR,SACI,kEAEA,uEACA,cACA,6CACA,8CAKA,kBAIJ,aACI,iEACA,kBACA,MACA,OACA,WACA,YACA,eACA,8FAGJ,kBACI,mBACA,6BACA,eAGJ,gEAEI,eACA,4BAGJ,kBACI,cACA,mBACA,kBACA,kDACA,qHAOA,sBACA,gBACA,kBACA,4EACA,+BACA,mBACA,gBC1DJ,cACI,6BAGJ,SACI,iDAGJ,QACI,4NAMA,+CAGJ,wBACI,+CAGJ,yBACI,gDAGJ,wBACI,+CAGJ,uBACI,8CAGJ,wBACI,+CAGJ,0BACI,iDAGJ,wBACI,+CAGJ,2BACI,kDAGJ,0BACI,iDAGJ,qDACI,iDAGJ,0BACI","file":"ueb-style.min.css"}
|
||||
54
dist/ueblueprint.js
vendored
54
dist/ueblueprint.js
vendored
@@ -69,13 +69,13 @@ class Configuration {
|
||||
static nodeRadius = 8 // in pixel
|
||||
static nodeReflowEventName = "ueb-node-reflow"
|
||||
static pinColor = {
|
||||
bool: r$2`117, 0, 0`, // #750000
|
||||
default: r$2`167, 167, 167`, // #a7a7a7
|
||||
exec: r$2`167, 167, 167`, // #a7a7a7
|
||||
name: r$2`203, 129, 252`, // #cb81fc
|
||||
real: r$2`50, 187, 0`, // #32bb00
|
||||
string: r$2`213, 0, 176`, // #d500b0
|
||||
struct: r$2`3, 76, 168` // #034ca8
|
||||
"bool": r$2`117, 0, 0`, // #750000
|
||||
"default": r$2`167, 167, 167`, // #a7a7a7
|
||||
"exec": r$2`167, 167, 167`, // #a7a7a7
|
||||
"name": r$2`203, 129, 252`, // #cb81fc
|
||||
"real": r$2`50, 187, 0`, // #32bb00
|
||||
"string": r$2`213, 0, 176`, // #d500b0
|
||||
"/Script/CoreUObject.LinearColor": r$2`3, 76, 168` // #034ca8
|
||||
}
|
||||
static selectAllKeyboardKey = "(bCtrl=True,Key=A)"
|
||||
static trackingMouseEventName = {
|
||||
@@ -874,6 +874,10 @@ class LinearColorEntity extends IEntity {
|
||||
B: Number,
|
||||
A: Number,
|
||||
}
|
||||
|
||||
toString() {
|
||||
return Utility.printLinearColor(this)
|
||||
}
|
||||
}
|
||||
|
||||
class LocalizedTextEntity extends IEntity {
|
||||
@@ -1006,16 +1010,15 @@ class PinEntity extends IEntity {
|
||||
}
|
||||
|
||||
getType() {
|
||||
if (this.PinType.PinCategory == "struct") {
|
||||
return this.PinType.PinSubCategoryObject.path
|
||||
}
|
||||
return this.PinType.PinCategory
|
||||
}
|
||||
|
||||
getSubCategory() {
|
||||
return this.PinType.PinSubCategoryObject.path
|
||||
}
|
||||
|
||||
getColorValue() {
|
||||
if (this.PinType.PinSubCategoryObject.path == "/Script/CoreUObject.LinearColor") ;
|
||||
}
|
||||
}
|
||||
|
||||
class VariableReferenceEntity extends IEntity {
|
||||
@@ -3393,7 +3396,12 @@ class LinearColorPinTemplate extends IInputPinTemplate {
|
||||
renderInput(pin) {
|
||||
if (pin.isInput()) {
|
||||
return $`
|
||||
<span class="ueb-pin-input" data-linear-color="${pin.defaultValue.toString()}"></span>
|
||||
<span
|
||||
class="ueb-pin-input"
|
||||
data-linear-color="${pin.defaultValue.toString()}"
|
||||
style="--ueb-linear-color:rgba(${pin.defaultValue.toString()})"
|
||||
>
|
||||
</span>
|
||||
`
|
||||
}
|
||||
return super.renderInput(pin)
|
||||
@@ -3518,9 +3526,7 @@ class PinElement extends IElement {
|
||||
"name": NamePinTemplate,
|
||||
"real": RealPinTemplate,
|
||||
"string": StringPinTemplate,
|
||||
"struct": {
|
||||
"/Script/CoreUObject.LinearColor": LinearColorPinTemplate,
|
||||
}
|
||||
"/Script/CoreUObject.LinearColor": LinearColorPinTemplate,
|
||||
}
|
||||
|
||||
static properties = {
|
||||
@@ -3539,6 +3545,7 @@ class PinElement extends IElement {
|
||||
return Utility.printLinearColor(value)
|
||||
},
|
||||
},
|
||||
attribute: "data-color",
|
||||
reflect: true,
|
||||
},
|
||||
defaultValue: {
|
||||
@@ -3569,9 +3576,6 @@ class PinElement extends IElement {
|
||||
*/
|
||||
static getTypeTemplate(pinEntity) {
|
||||
let result = PinElement.#typeTemplateMap[pinEntity.getType()];
|
||||
if (result.constructor === Object) {
|
||||
result = result[pinEntity.getSubCategory()];
|
||||
}
|
||||
return result ?? PinTemplate
|
||||
}
|
||||
|
||||
@@ -4579,13 +4583,13 @@ class BlueprintTemplate extends ITemplate {
|
||||
"--ueb-grid-size": `${Configuration.gridSize}px`,
|
||||
"--ueb-link-min-width": `${Configuration.linkMinWidth}`,
|
||||
"--ueb-node-radius": `${Configuration.nodeRadius}px`,
|
||||
"--ueb-pin-bool-color": `${Configuration.pinColor.bool}`,
|
||||
"--ueb-pin-default-color": `${Configuration.pinColor.default}`,
|
||||
"--ueb-pin-exec-color": `${Configuration.pinColor.exec}`,
|
||||
"--ueb-pin-name-color": `${Configuration.pinColor.name}`,
|
||||
"--ueb-pin-real-color": `${Configuration.pinColor.real}`,
|
||||
"--ueb-pin-string-color": `${Configuration.pinColor.string}`,
|
||||
"--ueb-pin-struct-color": `${Configuration.pinColor.struct}`,
|
||||
"--ueb-pin-bool-color": `${Configuration.pinColor["bool"]}`,
|
||||
"--ueb-pin-default-color": `${Configuration.pinColor["default"]}`,
|
||||
"--ueb-pin-exec-color": `${Configuration.pinColor["exec"]}`,
|
||||
"--ueb-pin-name-color": `${Configuration.pinColor["name"]}`,
|
||||
"--ueb-pin-real-color": `${Configuration.pinColor["real"]}`,
|
||||
"--ueb-pin-string-color": `${Configuration.pinColor["string"]}`,
|
||||
"--ueb-pin-linear-color": `${Configuration.pinColor["/Script/CoreUObject.LinearColor"]}`,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
4
dist/ueblueprint.min.js
vendored
4
dist/ueblueprint.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -45,13 +45,13 @@ export default class Configuration {
|
||||
static nodeRadius = 8 // in pixel
|
||||
static nodeReflowEventName = "ueb-node-reflow"
|
||||
static pinColor = {
|
||||
bool: css`117, 0, 0`, // #750000
|
||||
default: css`167, 167, 167`, // #a7a7a7
|
||||
exec: css`167, 167, 167`, // #a7a7a7
|
||||
name: css`203, 129, 252`, // #cb81fc
|
||||
real: css`50, 187, 0`, // #32bb00
|
||||
string: css`213, 0, 176`, // #d500b0
|
||||
struct: css`3, 76, 168` // #034ca8
|
||||
"bool": css`117, 0, 0`, // #750000
|
||||
"default": css`167, 167, 167`, // #a7a7a7
|
||||
"exec": css`167, 167, 167`, // #a7a7a7
|
||||
"name": css`203, 129, 252`, // #cb81fc
|
||||
"real": css`50, 187, 0`, // #32bb00
|
||||
"string": css`213, 0, 176`, // #d500b0
|
||||
"/Script/CoreUObject.LinearColor": css`3, 76, 168` // #034ca8
|
||||
}
|
||||
static selectAllKeyboardKey = "(bCtrl=True,Key=A)"
|
||||
static trackingMouseEventName = {
|
||||
|
||||
@@ -30,9 +30,7 @@ export default class PinElement extends IElement {
|
||||
"name": NamePinTemplate,
|
||||
"real": RealPinTemplate,
|
||||
"string": StringPinTemplate,
|
||||
"struct": {
|
||||
"/Script/CoreUObject.LinearColor": LinearColorPinTemplate,
|
||||
}
|
||||
"/Script/CoreUObject.LinearColor": LinearColorPinTemplate,
|
||||
}
|
||||
|
||||
static properties = {
|
||||
@@ -51,6 +49,7 @@ export default class PinElement extends IElement {
|
||||
return Utility.printLinearColor(value)
|
||||
},
|
||||
},
|
||||
attribute: "data-color",
|
||||
reflect: true,
|
||||
},
|
||||
defaultValue: {
|
||||
@@ -81,9 +80,6 @@ export default class PinElement extends IElement {
|
||||
*/
|
||||
static getTypeTemplate(pinEntity) {
|
||||
let result = PinElement.#typeTemplateMap[pinEntity.getType()]
|
||||
if (result.constructor === Object) {
|
||||
result = result[pinEntity.getSubCategory()]
|
||||
}
|
||||
return result ?? PinTemplate
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import Utility from "../Utility"
|
||||
import IEntity from "./IEntity"
|
||||
|
||||
export default class LinearColorEntity extends IEntity {
|
||||
@@ -8,4 +9,8 @@ export default class LinearColorEntity extends IEntity {
|
||||
B: Number,
|
||||
A: Number,
|
||||
}
|
||||
|
||||
toString() {
|
||||
return Utility.printLinearColor(this)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,16 +104,13 @@ export default class PinEntity extends IEntity {
|
||||
}
|
||||
|
||||
getType() {
|
||||
if (this.PinType.PinCategory == "struct") {
|
||||
return this.PinType.PinSubCategoryObject.path
|
||||
}
|
||||
return this.PinType.PinCategory
|
||||
}
|
||||
|
||||
getSubCategory() {
|
||||
return this.PinType.PinSubCategoryObject.path
|
||||
}
|
||||
|
||||
getColorValue() {
|
||||
if (this.PinType.PinSubCategoryObject.path == "/Script/CoreUObject.LinearColor") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,13 +32,13 @@ export default class BlueprintTemplate extends ITemplate {
|
||||
"--ueb-grid-size": `${Configuration.gridSize}px`,
|
||||
"--ueb-link-min-width": `${Configuration.linkMinWidth}`,
|
||||
"--ueb-node-radius": `${Configuration.nodeRadius}px`,
|
||||
"--ueb-pin-bool-color": `${Configuration.pinColor.bool}`,
|
||||
"--ueb-pin-default-color": `${Configuration.pinColor.default}`,
|
||||
"--ueb-pin-exec-color": `${Configuration.pinColor.exec}`,
|
||||
"--ueb-pin-name-color": `${Configuration.pinColor.name}`,
|
||||
"--ueb-pin-real-color": `${Configuration.pinColor.real}`,
|
||||
"--ueb-pin-string-color": `${Configuration.pinColor.string}`,
|
||||
"--ueb-pin-struct-color": `${Configuration.pinColor.struct}`,
|
||||
"--ueb-pin-bool-color": `${Configuration.pinColor["bool"]}`,
|
||||
"--ueb-pin-default-color": `${Configuration.pinColor["default"]}`,
|
||||
"--ueb-pin-exec-color": `${Configuration.pinColor["exec"]}`,
|
||||
"--ueb-pin-name-color": `${Configuration.pinColor["name"]}`,
|
||||
"--ueb-pin-real-color": `${Configuration.pinColor["real"]}`,
|
||||
"--ueb-pin-string-color": `${Configuration.pinColor["string"]}`,
|
||||
"--ueb-pin-linear-color": `${Configuration.pinColor["/Script/CoreUObject.LinearColor"]}`,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,7 +40,12 @@ export default class LinearColorPinTemplate extends IInputPinTemplate {
|
||||
renderInput(pin) {
|
||||
if (pin.isInput()) {
|
||||
return html`
|
||||
<span class="ueb-pin-input" data-linear-color="${pin.defaultValue.toString()}"></span>
|
||||
<span
|
||||
class="ueb-pin-input"
|
||||
data-linear-color="${pin.defaultValue.toString()}"
|
||||
style="--ueb-linear-color:rgba(${pin.defaultValue.toString()})"
|
||||
>
|
||||
</span>
|
||||
`
|
||||
}
|
||||
return super.renderInput(pin)
|
||||
|
||||
@@ -120,7 +120,7 @@ ueb-node[data-selected="true"]>.ueb-node-border {
|
||||
transparent 24px);
|
||||
text-align: center;
|
||||
padding: 2px;
|
||||
letter-spacing: 0.06em;
|
||||
letter-spacing: 0.04em;
|
||||
text-shadow: 1px 1px 1px black;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,6 +95,15 @@ ueb-pin[data-type="bool"] .ueb-pin-input:checked {
|
||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="none" stroke="%230070e0" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M 5 10 l 3 3 l 6 -6" /></svg>');
|
||||
}
|
||||
|
||||
ueb-pin[data-type="/Script/CoreUObject.LinearColor"] .ueb-pin-input {
|
||||
padding: 0;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-color: #505050;
|
||||
border-radius: 0;
|
||||
background-color: var(--ueb-linear-color);
|
||||
}
|
||||
|
||||
.ueb-pin-input-content {
|
||||
display: block;
|
||||
outline: none;
|
||||
|
||||
@@ -52,8 +52,8 @@ ueb-pin[data-type="string"] {
|
||||
--ueb-pin-color-rgb: var(--ueb-pin-string-color);
|
||||
}
|
||||
|
||||
ueb-pin[data-type="struct"] {
|
||||
--ueb-pin-color-rgb: var(--ueb-pin-struct-color);
|
||||
ueb-pin[data-type="/Script/CoreUObject.LinearColor"] {
|
||||
--ueb-pin-color-rgb: var(--ueb-pin-linear-color);
|
||||
}
|
||||
|
||||
ueb-pin[data-type="vector"] {
|
||||
|
||||
Reference in New Issue
Block a user