mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-06 02:37:30 +08:00
New icons and types
This commit is contained in:
@@ -81,7 +81,7 @@ export default class NodeElement extends ISelectableDraggableElement {
|
||||
constructor(entity, template = undefined) {
|
||||
super(entity, template ?? new (NodeElement.getTypeTemplate(entity))())
|
||||
this.#pins = this.template.createPinElements()
|
||||
this.nodeClass = this.entity.getClass()
|
||||
this.nodeClass = this.entity.getType()
|
||||
this.name = this.entity.getObjectName()
|
||||
this.advancedPinDisplay = this.entity.AdvancedPinDisplay?.toString()
|
||||
this.enabledState = this.entity.EnabledState
|
||||
|
||||
@@ -164,10 +164,7 @@ export default class PinElement extends IElement {
|
||||
}
|
||||
|
||||
getColor() {
|
||||
if (!this.pinType) {
|
||||
return Configuration.pinColor["default"]
|
||||
}
|
||||
return Configuration.pinColor[this.pinType]
|
||||
return Configuration.pinColor[this.pinType] ?? Configuration.pinColor["default"]
|
||||
}
|
||||
|
||||
isInput() {
|
||||
|
||||
Reference in New Issue
Block a user