update to node site

This commit is contained in:
2026-04-15 05:02:45 +10:00
parent 3c45406f6f
commit 7e7e6f2c22
710 changed files with 10532 additions and 8324 deletions

View File

@@ -0,0 +1,35 @@
/**
* @file InfoNode.js
* @UCLASS(BlueprintType, Blueprintable)
*/
import { NodeBase } from './NodeBase.js';
import { NodeRegistry } from './NodeRegistry.js';
/**
* @UCLASS(BlueprintType)
* Renders a markdown body below the node header.
*/
export class InfoNode extends NodeBase {
/** @UCLASS(BlueprintType) */
static NodeType = "info";
/**
* @UFUNCTION(BlueprintNativeEvent)
* @param {HTMLElement} article
* @param {import('../GraphNode.js').GraphNode} graphNode
* @param {import('./NodeRenderContext.js').NodeRenderContext} renderCtx
*/
BlueprintNativeEvent_OnRender(article, graphNode, renderCtx) {
if (!graphNode.markdownSrc) return;
const body = document.createElement("div");
body.className = "node-body";
body.setAttribute("aria-live", "polite");
article.appendChild(body);
renderCtx.BlueprintCallable_LoadMarkdown(graphNode.markdownSrc, body);
}
}
NodeRegistry.UCLASS_Register(InfoNode);