forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
17
leenkx/Sources/leenkx/logicnode/AlertNode.hx
Normal file
17
leenkx/Sources/leenkx/logicnode/AlertNode.hx
Normal file
@ -0,0 +1,17 @@
|
||||
package leenkx.logicnode;
|
||||
|
||||
class AlertNode extends LogicNode {
|
||||
|
||||
public function new(tree: LogicTree) {
|
||||
super(tree);
|
||||
}
|
||||
|
||||
override function run(from: Int) {
|
||||
|
||||
#if kha_html5
|
||||
js.Browser.window.alert(inputs[1].get());
|
||||
#end
|
||||
|
||||
runOutput(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user