Files
armorpaint/Sources/arm/logicnode/PaintNode.hx
T
Lubos Lenco bda8b2d54f Init
2017-12-14 11:12:51 +01:00

23 lines
395 B
Haxe

package arm.logicnode;
import armory.logicnode.LogicNode;
import armory.logicnode.LogicTree;
import armory.math.Vec4;
class PaintNode extends LogicNode {
public function new(tree:LogicTree) {
super(tree);
}
override function run() {
arm.UITrait.paint = true;
var coords:Vec4 = inputs[1].get();
arm.UITrait.paintX = coords.x;
arm.UITrait.paintY = coords.y;
super.run();
}
}