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