mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 09:44:49 +08:00
ColorPinTemplate renamed to linear like the entity
This commit is contained in:
68
dist/ueblueprint.js
vendored
68
dist/ueblueprint.js
vendored
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
dist/ueblueprint.min.js
vendored
2
dist/ueblueprint.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user