Files
LNXSDK/leenkx/Sources/leenkx/logicnode/WebviewLoadNode.hx
2026-07-13 15:44:52 -07:00

26 lines
464 B
Haxe

package leenkx.logicnode;
class WebviewLoadNode extends LogicNode {
public var property0: String;
public function new(tree: LogicTree) {
super(tree);
}
override function run(from: Int) {
#if kha_krom
var id: Int = inputs[1].get();
if (property0 == "html") {
var html: String = inputs[2].get();
Krom.webviewLoadHTML(id, html);
}
else {
var url: String = inputs[2].get();
Krom.webviewLoadURL(id, url);
}
#end
runOutput(0);
}
}