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

15 lines
447 B
Python

from arm.logicnode.arm_nodes import *
class DisplayInfoNode(ArmLogicTreeNode):
"""Display info node"""
bl_idname = 'LNDisplayInfoNode'
bl_label = 'Display Info'
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')