mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-20 05:24:52 +08:00
Material nodes wip, various refactoring
This commit is contained in:
@@ -22,7 +22,7 @@ export default class EventNodeTemplate extends NodeTemplate {
|
||||
renderTop() {
|
||||
const icon = this.renderNodeIcon()
|
||||
const name = this.renderNodeName()
|
||||
const customEvent = this.element.getType() === Configuration.nodeType.customEvent
|
||||
const customEvent = this.element.getType() === Configuration.paths.customEvent
|
||||
&& (this.element.entity.CustomFunctionName || this.element.entity.FunctionReference.MemberParent)
|
||||
return html`
|
||||
<div class="ueb-node-name">
|
||||
|
||||
@@ -38,7 +38,7 @@ export default class KnotNodeTemplate extends NodeTemplate {
|
||||
/** @param {PinElement} startingPin */
|
||||
findDirectionaPin(startingPin) {
|
||||
if (
|
||||
startingPin.nodeElement.getType() !== Configuration.nodeType.knot
|
||||
startingPin.nodeElement.getType() !== Configuration.paths.knot
|
||||
|| KnotNodeTemplate.#traversedPin.has(startingPin)
|
||||
) {
|
||||
KnotNodeTemplate.#traversedPin.clear()
|
||||
|
||||
@@ -8,9 +8,9 @@ export default class VariableAccessNodeTemplate extends VariableManagementNodeTe
|
||||
/** @param {NodeElement} element */
|
||||
initialize(element) {
|
||||
super.initialize(element)
|
||||
if (element.getType() === Configuration.nodeType.variableGet) {
|
||||
if (element.getType() === Configuration.paths.variableGet) {
|
||||
this.element.classList.add("ueb-node-style-getter")
|
||||
} else if (element.getType() === Configuration.nodeType.variableSet) {
|
||||
} else if (element.getType() === Configuration.paths.variableSet) {
|
||||
this.element.classList.add("ueb-node-style-setter")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user