Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
t3du authored Dec 26, 2024
1 parent 914452d commit 40fc961
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion armory/Sources/armory/logicnode/LoadUrlNode.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ class LoadUrlNode extends LogicNode {
}

override function run(from: Int) {
System.loadUrl(inputs[1].get());
//System.loadUrl(inputs[1].get());

#if kha_html5
if (inputs[2].get()){
var window = inputs[3].get() ? js.Browser.window.open(inputs[1].get(), "_blank", "width="+inputs[4].get()+",height="+inputs[5].get()+",left="+inputs[6].get()+",top="+inputs[7].get())
: js.Browser.window.open(inputs[1].get(), "_blank");

if(window != null)
runOutput(0);
else
runOutput(1);
}
else
js.Browser.window.open(inputs[1].get(), "_self");
#end
}
}

0 comments on commit 40fc961

Please sign in to comment.