armory/blender/arm/logicnode/miscellaneous/LN_get_display_resolution.py
2020-09-24 19:54:29 -03:00

15 lines
529 B
Python

from arm.logicnode.arm_nodes import *
class DisplayInfoNode(ArmLogicTreeNode):
"""Use to get the display resolution. You may be searching for 'Get Window Resolution' node."""
bl_idname = 'LNDisplayInfoNode'
bl_label = 'Get Display Resolution'
arm_version = 1
def init(self, context):
super(DisplayInfoNode, self).init(context)
self.add_output('NodeSocketInt', 'Width')
self.add_output('NodeSocketInt', 'Height')
add_node(DisplayInfoNode, category=PKG_AS_CATEGORY, section='screen')