armory/Sources/armory/logicnode/DisplayInfoNode.hx
2019-12-19 23:54:08 +01:00

16 lines
330 B
Haxe

package armory.logicnode;
class DisplayInfoNode extends LogicNode {
static inline var displayIndex = 0;
public function new(tree: LogicTree) {
super(tree);
}
override function get(from: Int): Dynamic {
if (from == 0) return kha.Display.all[displayIndex].width;
else return kha.Display.all[displayIndex].height;
}
}