mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
Construction Script node
This commit is contained in:
@@ -381,6 +381,24 @@ const tests = [
|
||||
delegate: false,
|
||||
development: false,
|
||||
},
|
||||
{
|
||||
name: "Construction Script",
|
||||
value: String.raw`
|
||||
Begin Object Class=/Script/BlueprintGraph.K2Node_FunctionEntry Name="K2Node_FunctionEntry_11"
|
||||
bEnforceConstCorrectness=False
|
||||
FunctionReference=(MemberParent=/Script/CoreUObject.Class'"/Script/Engine.Actor"',MemberName="UserConstructionScript")
|
||||
NodePosX=16
|
||||
NodePosY=-32
|
||||
NodeGuid=521B69F742A30F8EA5B92B8CC131AB54
|
||||
CustomProperties Pin (PinId=DE073CBD9EE44F4AA43C9BE239BBCB33,PinName="then",Direction="EGPD_Output",PinType.PinCategory="exec",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_4248 064F1F38F42D43ADA53BC41AFC6FBE9F,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
|
||||
End Object
|
||||
`,
|
||||
color: Configuration.nodeColors.violet,
|
||||
icon: SVGIcon.node,
|
||||
pins: 1,
|
||||
delegate: false,
|
||||
development: false,
|
||||
},
|
||||
]
|
||||
|
||||
/** @type {Blueprint} */
|
||||
|
||||
6
dist/ueblueprint.js
vendored
6
dist/ueblueprint.js
vendored
@@ -37,6 +37,7 @@ class Configuration {
|
||||
lime: i$3`150, 160, 30`,
|
||||
red: i$3`151, 33, 32`,
|
||||
turquoise: i$3`46, 104, 106`,
|
||||
violet: i$3`126, 28, 150`,
|
||||
yellow: i$3`148, 116, 24`,
|
||||
}
|
||||
static alphaPattern = "repeating-conic-gradient(#7c8184 0% 25%, #c2c3c4 0% 50%) 50% / 10px 10px"
|
||||
@@ -3248,6 +3249,8 @@ class ObjectEntity extends IEntity {
|
||||
return `For Each ${this.Enum?.getName()}`
|
||||
case Configuration.nodeType.forEachLoopWithBreak:
|
||||
return "For Each Loop with Break"
|
||||
case Configuration.nodeType.functionEntry:
|
||||
return "Construction Script"
|
||||
case Configuration.nodeType.ifThenElse:
|
||||
return "Branch"
|
||||
case Configuration.nodeType.spawnActorFromClass:
|
||||
@@ -3373,6 +3376,8 @@ class ObjectEntity extends IEntity {
|
||||
case Configuration.nodeType.macro:
|
||||
case Configuration.nodeType.multiGate:
|
||||
return Configuration.nodeColors.gray
|
||||
case Configuration.nodeType.functionEntry:
|
||||
return Configuration.nodeColors.violet
|
||||
case Configuration.nodeType.timeline:
|
||||
return Configuration.nodeColors.yellow
|
||||
}
|
||||
@@ -3392,6 +3397,7 @@ class ObjectEntity extends IEntity {
|
||||
switch (this.getType()) {
|
||||
case Configuration.nodeType.addDelegate:
|
||||
case Configuration.nodeType.createDelegate:
|
||||
case Configuration.nodeType.functionEntry:
|
||||
return SVGIcon.node
|
||||
case Configuration.nodeType.customEvent: return SVGIcon.event
|
||||
case Configuration.nodeType.doN: return SVGIcon.doN
|
||||
|
||||
6
dist/ueblueprint.min.js
vendored
6
dist/ueblueprint.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -13,6 +13,7 @@ export default class Configuration {
|
||||
lime: css`150, 160, 30`,
|
||||
red: css`151, 33, 32`,
|
||||
turquoise: css`46, 104, 106`,
|
||||
violet: css`126, 28, 150`,
|
||||
yellow: css`148, 116, 24`,
|
||||
}
|
||||
static alphaPattern = "repeating-conic-gradient(#7c8184 0% 25%, #c2c3c4 0% 50%) 50% / 10px 10px"
|
||||
|
||||
@@ -520,6 +520,8 @@ export default class ObjectEntity extends IEntity {
|
||||
return `For Each ${this.Enum?.getName()}`
|
||||
case Configuration.nodeType.forEachLoopWithBreak:
|
||||
return "For Each Loop with Break"
|
||||
case Configuration.nodeType.functionEntry:
|
||||
return "Construction Script"
|
||||
case Configuration.nodeType.ifThenElse:
|
||||
return "Branch"
|
||||
case Configuration.nodeType.spawnActorFromClass:
|
||||
@@ -645,6 +647,8 @@ export default class ObjectEntity extends IEntity {
|
||||
case Configuration.nodeType.macro:
|
||||
case Configuration.nodeType.multiGate:
|
||||
return Configuration.nodeColors.gray
|
||||
case Configuration.nodeType.functionEntry:
|
||||
return Configuration.nodeColors.violet
|
||||
case Configuration.nodeType.timeline:
|
||||
return Configuration.nodeColors.yellow
|
||||
}
|
||||
@@ -664,6 +668,7 @@ export default class ObjectEntity extends IEntity {
|
||||
switch (this.getType()) {
|
||||
case Configuration.nodeType.addDelegate:
|
||||
case Configuration.nodeType.createDelegate:
|
||||
case Configuration.nodeType.functionEntry:
|
||||
return SVGIcon.node
|
||||
case Configuration.nodeType.customEvent: return SVGIcon.event
|
||||
case Configuration.nodeType.doN: return SVGIcon.doN
|
||||
|
||||
Reference in New Issue
Block a user