20,741
edits
m (→addcommand(): almost ...) |
|||
Line 890: | Line 890: | ||
|example1 = addcommand("myFGCmd", func(node) { | |example1 = addcommand("myFGCmd", func(node) { | ||
print("fgcommand 'myFGCmd' has been run."); | print("fgcommand 'myFGCmd' has been run."); | ||
props.dump( node | props.dump( node ); | ||
}); | }); | ||
fgcommand("myFGCmd"); | fgcommand("myFGCmd", props.Node.new({foo:1, bar:2}) ); | ||
|example2text = This example demonstrates how parameters are defined in a new fgcommand. | |example2text = This example demonstrates how parameters are defined in a new fgcommand. | ||
|example2 = addcommand("myFGCmd", func(node){ | |example2 = addcommand("myFGCmd", func(node){ |