armory/blender/arm/logicnode/miscellaneous/LN_display_info.py

15 lines
513 B
Python
Raw Normal View History

from arm.logicnode.arm_nodes import *
class DisplayInfoNode(ArmLogicTreeNode):
2020-09-23 22:12:25 +02:00
"""Use to get the display resolution. You may be searching for 'Get Window Info' node."""
bl_idname = 'LNDisplayInfoNode'
bl_label = 'Display Info'
arm_version = 1
def init(self, context):
super(DisplayInfoNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_output('NodeSocketInt', 'Width')
self.add_output('NodeSocketInt', 'Height')
add_node(DisplayInfoNode, category=PKG_AS_CATEGORY, section='screen')