mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:08:18 +08:00
Fix "Target" pins color
This commit is contained in:
7
dist/ueblueprint.js
vendored
7
dist/ueblueprint.js
vendored
@@ -31,7 +31,6 @@ var t$1;const i$2=window,s$1=i$2.trustedTypes,e$1=s$1?s$1.createPolicy("lit-html
|
||||
|
||||
class Configuration {
|
||||
static #pinColor = {
|
||||
"/Script/CoreUObject.LinearColor": i$3`3, 76, 168`,
|
||||
"/Script/CoreUObject.Rotator": i$3`152, 171, 241`,
|
||||
"/Script/CoreUObject.Transform": i$3`241, 110, 1`,
|
||||
"/Script/CoreUObject.Vector": i$3`215, 202, 11`,
|
||||
@@ -85,9 +84,13 @@ class Configuration {
|
||||
if (pin.entity.PinType.PinCategory == "struct" || pin.entity.PinType.PinCategory == "object") {
|
||||
switch (pin.entity.PinType.PinSubCategoryObject.type) {
|
||||
case "ScriptStruct":
|
||||
case "/Script/CoreUObject.ScriptStruct":
|
||||
return i$3`0, 88, 200`
|
||||
default:
|
||||
if (pin.entity.PinType.PinSubCategoryObject.getName().endsWith("Actor")) {
|
||||
if (
|
||||
pin.entity.PinType.PinSubCategoryObject.getName().endsWith("Actor")
|
||||
|| pin.entity.getDisplayName() === "Target"
|
||||
) {
|
||||
return Configuration.#pinColor["/Script/Engine.Actor"]
|
||||
}
|
||||
}
|
||||
|
||||
2
dist/ueblueprint.min.js
vendored
2
dist/ueblueprint.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -7,7 +7,6 @@ import { css } from "lit"
|
||||
|
||||
export default class Configuration {
|
||||
static #pinColor = {
|
||||
"/Script/CoreUObject.LinearColor": css`3, 76, 168`,
|
||||
"/Script/CoreUObject.Rotator": css`152, 171, 241`,
|
||||
"/Script/CoreUObject.Transform": css`241, 110, 1`,
|
||||
"/Script/CoreUObject.Vector": css`215, 202, 11`,
|
||||
@@ -61,9 +60,13 @@ export default class Configuration {
|
||||
if (pin.entity.PinType.PinCategory == "struct" || pin.entity.PinType.PinCategory == "object") {
|
||||
switch (pin.entity.PinType.PinSubCategoryObject.type) {
|
||||
case "ScriptStruct":
|
||||
case "/Script/CoreUObject.ScriptStruct":
|
||||
return css`0, 88, 200`
|
||||
default:
|
||||
if (pin.entity.PinType.PinSubCategoryObject.getName().endsWith("Actor")) {
|
||||
if (
|
||||
pin.entity.PinType.PinSubCategoryObject.getName().endsWith("Actor")
|
||||
|| pin.entity.getDisplayName() === "Target"
|
||||
) {
|
||||
return Configuration.#pinColor["/Script/Engine.Actor"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user