forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
15
leenkx/Sources/leenkx/logicnode/DisplayInfoNode.hx
Normal file
15
leenkx/Sources/leenkx/logicnode/DisplayInfoNode.hx
Normal file
@ -0,0 +1,15 @@
|
||||
package leenkx.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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user