Niagara convert nodes

This commit is contained in:
barsdeveloper
2024-09-16 00:04:08 +02:00
parent 2b028e2800
commit 90d0cd7016
5 changed files with 31 additions and 5 deletions

13
dist/ueblueprint.js vendored
View File

@@ -205,6 +205,7 @@ class Configuration {
niagaraFloat: "/Script/Niagara.NiagaraFloat",
NiagaraInt32: "/Script/Niagara.NiagaraInt32",
niagaraMatrix: "/Script/Niagara.NiagaraMatrix",
niagaraNodeConvert: "/Script/NiagaraEditor.NiagaraNodeConvert",
niagaraNodeFunctionCall: "/Script/NiagaraEditor.NiagaraNodeFunctionCall",
niagaraNodeOp: "/Script/NiagaraEditor.NiagaraNodeOp",
niagaraNumeric: "/Script/Niagara.NiagaraNumeric",
@@ -4133,6 +4134,14 @@ function nodeTitle(entity) {
}
}
}
case Configuration.paths.niagaraNodeConvert:
/** @type {String} */
const targetType = (entity["AutowireMakeType"]?.["ClassStructOrEnum"] ?? "")
.toString()
.match(/(?:Niagara)?(\w+)['"]*$/)
?.[1]
?? "";
return `Make ${targetType}`
case Configuration.paths.pcgEditorGraphNodeInput:
return "Input"
case Configuration.paths.pcgEditorGraphNodeOutput:
@@ -5221,6 +5230,10 @@ class ObjectReferenceEntity extends IEntity {
}
return this.type == other.type && this.path == other.path
}
toString() {
return this.full(this.type, this.path)
}
}
class PinReferenceEntity extends IEntity {

File diff suppressed because one or more lines are too long

View File

@@ -181,6 +181,7 @@ export default class Configuration {
niagaraFloat: "/Script/Niagara.NiagaraFloat",
NiagaraInt32: "/Script/Niagara.NiagaraInt32",
niagaraMatrix: "/Script/Niagara.NiagaraMatrix",
niagaraNodeConvert: "/Script/NiagaraEditor.NiagaraNodeConvert",
niagaraNodeFunctionCall: "/Script/NiagaraEditor.NiagaraNodeFunctionCall",
niagaraNodeOp: "/Script/NiagaraEditor.NiagaraNodeOp",
niagaraNumeric: "/Script/Niagara.NiagaraNumeric",

View File

@@ -184,6 +184,14 @@ export default function nodeTitle(entity) {
}
}
}
case Configuration.paths.niagaraNodeConvert:
/** @type {String} */
const targetType = (entity["AutowireMakeType"]?.["ClassStructOrEnum"] ?? "")
.toString()
.match(/(?:Niagara)?(\w+)['"]*$/)
?.[1]
?? ""
return `Make ${targetType}`
case Configuration.paths.pcgEditorGraphNodeInput:
return "Input"
case Configuration.paths.pcgEditorGraphNodeOutput:

View File

@@ -119,4 +119,8 @@ export default class ObjectReferenceEntity extends IEntity {
}
return this.type == other.type && this.path == other.path
}
toString() {
return this.full(this.type, this.path)
}
}