armory/blender/arm/logicnode/canvas/LN_set_canvas_location.py
2020-09-24 19:49:21 -03:00

18 lines
637 B
Python

from arm.logicnode.arm_nodes import *
class CanvasSetLocationNode(ArmLogicTreeNode):
"""Use to set the location of an UI element."""
bl_idname = 'LNCanvasSetLocationNode'
bl_label = 'Set Canvas Location'
arm_version = 1
def init(self, context):
super(CanvasSetLocationNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_input('NodeSocketFloat', 'X')
self.add_input('NodeSocketFloat', 'Y')
self.add_output('ArmNodeSocketAction', 'Out')
add_node(CanvasSetLocationNode, category=PKG_AS_CATEGORY)