Change widgetName

This commit is contained in:
Rhys Yang
2023-09-19 03:04:05 +08:00
parent 85fe6865a3
commit 699679ae99
+3 -4
View File
@@ -20,10 +20,9 @@ app.registerExtension({
const result = onNodeCreated?.apply(this, arguments);
// Create prompt and setting widgets
const positive = createWidget(app, this, "text");
const negative = createWidget(app, this, "text");
const setting = createWidget(app, this, "text");
const positive = createWidget(app, this, "positive");
const negative = createWidget(app, this, "negative");
const setting = createWidget(app, this, "setting");
// Resize the node
const nodeWidth = this.size[0];
const nodeHeight = this.size[1];