mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
More operations nodes types
This commit is contained in:
@@ -157,6 +157,7 @@ export default class Configuration {
|
||||
reverseForEachLoop: "/Engine/EditorBlueprintResources/StandardMacros.StandardMacros:ReverseForEachLoop",
|
||||
rotator: "/Script/CoreUObject.Rotator",
|
||||
select: "/Script/BlueprintGraph.K2Node_Select",
|
||||
slateBlueprintLibrary: "/Script/UMG.SlateBlueprintLibrary",
|
||||
spawnActorFromClass: "/Script/BlueprintGraph.K2Node_SpawnActorFromClass",
|
||||
switchEnum: "/Script/BlueprintGraph.K2Node_SwitchEnum",
|
||||
switchGameplayTag: "/Script/GameplayTagsEditor.GameplayTagsK2Node_SwitchGameplayTag",
|
||||
|
||||
@@ -117,10 +117,10 @@ export default class NodeElement extends ISelectableDraggableElement {
|
||||
return VariableOperationNodeTemplate
|
||||
}
|
||||
switch (nodeEntity.FunctionReference.MemberName) {
|
||||
case "Array_Add":
|
||||
case "Array_Identical":
|
||||
case "Abs":
|
||||
case "Array_Add":
|
||||
case "Array_Add":
|
||||
case "Array_Identical":
|
||||
case "BMax":
|
||||
case "BMin":
|
||||
case "Exp":
|
||||
@@ -130,6 +130,8 @@ export default class NodeElement extends ISelectableDraggableElement {
|
||||
case "MaxInt64":
|
||||
case "Min":
|
||||
case "MinInt64":
|
||||
case "Sqrt":
|
||||
case "Square":
|
||||
return VariableOperationNodeTemplate
|
||||
}
|
||||
}
|
||||
|
||||
@@ -673,6 +673,7 @@ export default class ObjectEntity extends IEntity {
|
||||
)
|
||||
}
|
||||
switch (memberParent) {
|
||||
case Configuration.paths.slateBlueprintLibrary:
|
||||
case Configuration.paths.kismetMathLibrary:
|
||||
if (memberName.startsWith("Conv_")) {
|
||||
return "" // Conversion nodes do not have visible names
|
||||
@@ -696,6 +697,8 @@ export default class ObjectEntity extends IEntity {
|
||||
case "MaxInt64": return "MAX"
|
||||
case "Min": return "MIN"
|
||||
case "MinInt64": return "MIN"
|
||||
case "Sqrt": return "SQRT"
|
||||
case "Square": return "^2"
|
||||
}
|
||||
break
|
||||
case Configuration.paths.blueprintSetLibrary:
|
||||
|
||||
@@ -68,6 +68,9 @@ export default class NodeTemplate extends ISelectableDraggableTemplate {
|
||||
this.element.classList.add(.../** @type {NodeTemplateConstructor} */(this.constructor).nodeStyleClasses)
|
||||
this.element.style.setProperty("--ueb-node-color", this.getColor().cssText)
|
||||
this.pinInserter = this.element.entity.additionalPinInserter()
|
||||
if (this.pinInserter) {
|
||||
this.element.classList.add("ueb-node-is-variadic")
|
||||
}
|
||||
}
|
||||
|
||||
getColor() {
|
||||
|
||||
Reference in New Issue
Block a user