mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 06:26:42 +01:00
19 lines
No EOL
581 B
Text
19 lines
No EOL
581 B
Text
function Node_Smoke(_x, _y, _group = noone) : Node(_x, _y, _group) constructor {
|
|
color = COLORS.node_blend_smoke;
|
|
icon = THEME.smoke_sim;
|
|
update_on_frame = true;
|
|
|
|
static updateForward = function(frame = CURRENT_FRAME, _update = true) {
|
|
if(_update) update(frame);
|
|
//print($"Update {frame}: {name}");
|
|
|
|
var outJunc = outputs[0];
|
|
for( var i = 0; i < array_length(outJunc.value_to); i++ ) {
|
|
var _to = outJunc.value_to[i];
|
|
if(_to.value_from != outJunc) continue;
|
|
if(!struct_has(_to.node, "updateForward")) continue;
|
|
|
|
_to.node.updateForward(frame);
|
|
}
|
|
}
|
|
} |