added semaphore node

This commit is contained in:
tamat
2021-08-25 12:59:54 +02:00
parent 9cab33f33c
commit fcf37260ad
8 changed files with 1032 additions and 852 deletions

View File

@@ -420,7 +420,7 @@
}
if (this.auto_sort_node_types) {
r.sort((a, b) => a.title.localeCompare(b.title));
r.sort(function(a,b){return a.title.localeCompare(b.title)});
}
return r;
@@ -6929,6 +6929,12 @@ LGraphNode.prototype.executeAction = function(action)
14,
10
);
ctx.rect(
this.graph_mouse[0] - 6 + 0.5,
this.graph_mouse[1] - 5 + 0.5,
14,
10
);
} else if (this.connecting_output.shape === LiteGraph.ARROW_SHAPE) {
ctx.moveTo(this.connecting_pos[0] + 8, this.connecting_pos[1] + 0.5);
ctx.lineTo(this.connecting_pos[0] - 4, this.connecting_pos[1] + 6 + 0.5);
@@ -6943,6 +6949,13 @@ LGraphNode.prototype.executeAction = function(action)
0,
Math.PI * 2
);
ctx.arc(
this.graph_mouse[0],
this.graph_mouse[1],
4,
0,
Math.PI * 2
);
}
ctx.fill();
@@ -7889,7 +7902,7 @@ LGraphNode.prototype.executeAction = function(action)
var title_mode = node.constructor.title_mode;
var render_title = true;
if (title_mode == LiteGraph.TRANSPARENT_TITLE) {
if (title_mode == LiteGraph.TRANSPARENT_TITLE || title_mode == LiteGraph.NO_TITLE) {
render_title = false;
} else if (title_mode == LiteGraph.AUTOHIDE_TITLE && mouse_over) {
render_title = true;