Update Files
This commit is contained in:
19
leenkx/Sources/leenkx/logicnode/ClearConsoleNode.hx
Normal file
19
leenkx/Sources/leenkx/logicnode/ClearConsoleNode.hx
Normal file
@ -0,0 +1,19 @@
|
||||
package leenkx.logicnode;
|
||||
|
||||
class ClearConsoleNode extends LogicNode {
|
||||
|
||||
public function new(tree: LogicTree) {
|
||||
super(tree);
|
||||
}
|
||||
|
||||
override function run(from: Int) {
|
||||
|
||||
#if kha_krom
|
||||
Krom.sysCommand("cls");
|
||||
#elseif kha_html5
|
||||
js.Syntax.code("console.clear();");
|
||||
#end
|
||||
|
||||
runOutput(0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user