armory/Sources/armory/logicnode/DisplayInfoNode.hx

16 lines
330 B
Haxe
Raw Normal View History

package armory.logicnode;
class DisplayInfoNode extends LogicNode {
static inline var displayIndex = 0;
2019-12-19 23:54:08 +01:00
public function new(tree: LogicTree) {
super(tree);
}
2019-12-19 23:54:08 +01:00
override function get(from: Int): Dynamic {
2018-07-19 12:04:32 +02:00
if (from == 0) return kha.Display.all[displayIndex].width;
else return kha.Display.all[displayIndex].height;
}
}