rm push/pop

This commit is contained in:
2026-02-26 08:13:27 -06:00
parent ef7e3e6449
commit ce6b0ddb3a
31 changed files with 251 additions and 255 deletions

View File

@@ -144,31 +144,31 @@ function _render_node_summary(imgui, node) {
var info = []
if (node.pos) {
push(info, "pos:(" + text(round(node.pos.x)) + "," + text(round(node.pos.y)) + ")")
info[] = "pos:(" + text(round(node.pos.x)) + "," + text(round(node.pos.y)) + ")"
}
if (node.width && node.height) {
push(info, "size:" + text(node.width) + "x" + text(node.height))
info[] = "size:" + text(node.width) + "x" + text(node.height)
}
if (node.image) {
push(info, "img:" + node.image)
info[] = "img:" + node.image
}
var t = null
if (node.text) {
t = node.text
if (length(t) > 20) t = text(t, 0, 17) + "..."
push(info, "\"" + t + "\"")
info[] = "\"" + t + "\""
}
var fx = []
var j = 0
if (node.effects && length(node.effects) > 0) {
for (j = 0; j < length(node.effects); j++) {
push(fx, node.effects[j].type)
fx[] = node.effects[j].type
}
push(info, "fx:[" + text(fx, ",") + "]")
info[] = "fx:[" + text(fx, ",") + "]"
}
if (length(info) > 0) {