More operations nodes types

This commit is contained in:
barsdeveloper
2023-05-19 01:13:57 +02:00
parent 6e9c371e99
commit 7f57786d55
11 changed files with 52 additions and 14 deletions

View File

@@ -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",

View File

@@ -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
}
}

View File

@@ -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:

View File

@@ -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() {