rm push/pop
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user