from lnx.logicnode.lnx_nodes import *


class CanvasSetScaleNode(LnxLogicTreeNode):
    """Sets the scale of the given UI element."""
    bl_idname = 'LNCanvasSetScaleNode'
    bl_label = 'Set Canvas Scale'
    lnx_section = 'elements_general'
    lnx_version = 1

    def lnx_init(self, context):
        self.add_input('LnxNodeSocketAction', 'In')
        self.add_input('LnxStringSocket', 'Element')
        self.add_input('LnxIntSocket', 'Height')
        self.add_input('LnxIntSocket', 'Width')

        self.add_output('LnxNodeSocketAction', 'Out')