| 123456789101112131415161718192021222324 |
- package arm.logicnode;
- import armory.logicnode.LogicNode;
- import armory.logicnode.LogicTree;
- import armory.math.Vec4;
- class BrushOutputNode extends LogicNode {
- public function new(tree:LogicTree) {
- super(tree);
- arm.UITrait.notifyOnBrush(run);
- }
- override function run() {
- arm.UITrait.paint = true;
- arm.UITrait.paintVec = inputs[0].get();
- arm.UITrait.brushRadius = inputs[1].get();
- arm.UITrait.brushOpacity = inputs[2].get();
- arm.UITrait.brushStrength = inputs[3].get();
- arm.UITrait.brushScale = inputs[4].get();
- super.run();
- }
- }
|