forked from Onek8/LNXSDK
24 lines
499 B
Haxe
24 lines
499 B
Haxe
package leenkx.logicnode;
|
|
|
|
import iron.object.MeshObject;
|
|
|
|
class SetTilesheetFlipNode extends LogicNode {
|
|
|
|
public function new(tree: LogicTree) {
|
|
super(tree);
|
|
}
|
|
|
|
override function run(from: Int) {
|
|
var object: MeshObject = inputs[1].get();
|
|
var flipX: Bool = inputs[2].get();
|
|
var flipY: Bool = inputs[3].get();
|
|
|
|
if (object == null) return;
|
|
if (object.activeTilesheet == null) return;
|
|
object.activeTilesheet.flipX = flipX;
|
|
object.activeTilesheet.flipY = flipY;
|
|
|
|
runOutput(0);
|
|
}
|
|
}
|