armory/blender/arm/logicnode/canvas/LN_get_canvas_input_text.py

15 lines
501 B
Python
Raw Normal View History

2019-09-29 15:37:18 +02:00
from arm.logicnode.arm_nodes import *
class CanvasGetInputTextNode(ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Returns the input text of the given UI element."""
2019-09-29 15:37:18 +02:00
bl_idname = 'LNCanvasGetInputTextNode'
2020-09-25 00:49:21 +02:00
bl_label = 'Get Canvas Input Text'
arm_version = 1
2019-09-29 15:37:18 +02:00
def init(self, context):
super(CanvasGetInputTextNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_input('NodeSocketString', 'Element')
2020-09-25 00:49:21 +02:00
self.add_output('NodeSocketString', 'Text')
2019-09-29 15:37:18 +02:00
add_node(CanvasGetInputTextNode, category=PKG_AS_CATEGORY)