ColorPinTemplate renamed to linear like the entity

This commit is contained in:
barsdeveloper
2022-05-11 21:10:14 +02:00
parent 822782713f
commit ddb8138cd4
4 changed files with 38 additions and 38 deletions

68
dist/ueblueprint.js vendored
View File

@@ -3261,7 +3261,39 @@ class BoolPinTemplate extends IInputPinTemplate {
* @typedef {import("../element/PinElement").default} PinElement
*/
class ColorPinTemplate extends IInputPinTemplate {
class ExecPinTemplate extends PinTemplate {
/**
* @param {PinElement} pin
*/
renderIcon(pin) {
return html`
<svg class="ueb-pin-icon-exec" width="16" height="16" viewBox="-2 0 16 16" fill="none">
<path class="ueb-pin-tofill" stroke-width="1.25" stroke="currentColor" d="
M 2 1
a 2 2 0 0 0 -2 2
v 10
a 2 2 0 0 0 2 2
h 4
a 2 2 0 0 0 1.519 -0.698
l 4.843 -5.651
a 1 1 0 0 0 0 -1.302
L 7.52 1.7
a 2 2 0 0 0 -1.519 -0.698
z
" />
</svg>
`
}
}
// @ts-check
/**
* @typedef {import("../element/PinElement").default} PinElement
*/
class LinearColorPinTemplate extends IInputPinTemplate {
/** @type {HTMLInputElement} */
#input
@@ -3316,38 +3348,6 @@ class ColorPinTemplate extends IInputPinTemplate {
// @ts-check
/**
* @typedef {import("../element/PinElement").default} PinElement
*/
class ExecPinTemplate extends PinTemplate {
/**
* @param {PinElement} pin
*/
renderIcon(pin) {
return html`
<svg class="ueb-pin-icon-exec" width="16" height="16" viewBox="-2 0 16 16" fill="none">
<path class="ueb-pin-tofill" stroke-width="1.25" stroke="currentColor" d="
M 2 1
a 2 2 0 0 0 -2 2
v 10
a 2 2 0 0 0 2 2
h 4
a 2 2 0 0 0 1.519 -0.698
l 4.843 -5.651
a 1 1 0 0 0 0 -1.302
L 7.52 1.7
a 2 2 0 0 0 -1.519 -0.698
z
" />
</svg>
`
}
}
// @ts-check
/**
* @typedef {import("../element/PinElement").default} PinElement
*/
@@ -3464,7 +3464,7 @@ class PinElement extends IElement {
"real": RealPinTemplate,
"string": StringPinTemplate,
"struct": {
"/Script/CoreUObject.LinearColor": ColorPinTemplate,
"/Script/CoreUObject.LinearColor": LinearColorPinTemplate,
}
}

File diff suppressed because one or more lines are too long

View File

@@ -1,9 +1,9 @@
// @ts-check
import BoolPinTemplate from "../template/BoolPinTemplate"
import ColorPinTemplate from "../template/ColorPinTemplate"
import ExecPinTemplate from "../template/ExecPinTemplate"
import IElement from "./IElement"
import LinearColorPinTemplate from "../template/LinearColorPinTemplate"
import LinkElement from "./LinkElement"
import NamePinTemplate from "../template/NamePinTemplate"
import PinTemplate from "../template/PinTemplate"
@@ -30,7 +30,7 @@ export default class PinElement extends IElement {
"real": RealPinTemplate,
"string": StringPinTemplate,
"struct": {
"/Script/CoreUObject.LinearColor": ColorPinTemplate,
"/Script/CoreUObject.LinearColor": LinearColorPinTemplate,
}
}

View File

@@ -7,7 +7,7 @@ import IInputPinTemplate from "./IInputPinTemplate"
* @typedef {import("../element/PinElement").default} PinElement
*/
export default class ColorPinTemplate extends IInputPinTemplate {
export default class LinearColorPinTemplate extends IInputPinTemplate {
/** @type {HTMLInputElement} */
#input