Fix input wrap

This commit is contained in:
barsdeveloper
2023-01-30 21:39:31 +01:00
parent cc82c1f6fe
commit 8de12775a7
18 changed files with 282 additions and 135 deletions

View File

@@ -1,3 +1,4 @@
import GuidEntity from "./GuidEntity"
import IEntity from "./IEntity"
import ObjectReferenceEntity from "./ObjectReferenceEntity"
@@ -12,6 +13,10 @@ export default class FunctionReferenceEntity extends IEntity {
type: String,
showDefault: false,
},
MemberGuid: {
type: GuidEntity,
showDefault: false,
},
}
static {

View File

@@ -71,8 +71,8 @@ export default class IEntity {
if (!suppressWarns) {
if (!(attributeName in attributes)) {
Utility.warn(
`Attribute ${prefix}${attributeName} in the serialized data is not defined in `
console.warn(
`UEBlueprint: Attribute ${prefix}${attributeName} in the serialized data is not defined in `
+ `${this.constructor.name}.attributes`
)
} else if (
@@ -80,9 +80,9 @@ export default class IEntity {
&& !(attributeName in values)
&& !(!attribute.showDefault || attribute.ignored)
) {
Utility.warn(
`${this.constructor.name} will add attribute ${prefix}${attributeName} not defined in the `
+ "serialized data"
console.warn(
`UEBlueprint: ${this.constructor.name} will add attribute ${prefix}${attributeName} not `
+ "defined in the serialized data"
)
}
}

View File

@@ -438,6 +438,9 @@ export default class ObjectEntity extends IEntity {
}
return Utility.formatStringName(memberName)
case Configuration.nodeType.dynamicCast:
if (!this.TargetType) {
return "Bad cast node" // Target type not found
}
return `Cast To ${this.TargetType.getName()}`
case Configuration.nodeType.event:
return `Event ${(this.EventReference?.MemberName ?? "").replace(/^Receive/, "")}`
@@ -506,11 +509,10 @@ export default class ObjectEntity extends IEntity {
nodeIcon() {
switch (this.getType()) {
case Configuration.nodeType.customEvent: return SVGIcon.event
case Configuration.nodeType.doN: return SVGIcon.doN
case Configuration.nodeType.dynamicCast: return SVGIcon.cast
case Configuration.nodeType.event:
case Configuration.nodeType.customEvent:
return SVGIcon.event
case Configuration.nodeType.event: return SVGIcon.event
case Configuration.nodeType.executionSequence: return SVGIcon.sequence
case Configuration.nodeType.forEachElementInEnum: return SVGIcon.loop
case Configuration.nodeType.forEachLoop: return SVGIcon.forEachLoop
@@ -518,6 +520,7 @@ export default class ObjectEntity extends IEntity {
case Configuration.nodeType.forLoop: return SVGIcon.loop
case Configuration.nodeType.forLoopWithBreak: return SVGIcon.loop
case Configuration.nodeType.ifThenElse: return SVGIcon.branchNode
case Configuration.nodeType.isValid: return SVGIcon.questionMark
case Configuration.nodeType.makeArray: return SVGIcon.makeArray
case Configuration.nodeType.makeMap: return SVGIcon.makeMap
case Configuration.nodeType.makeSet: return SVGIcon.makeSet