from arm.logicnode.arm_nodes import *

class CanvasSetSliderNode(ArmLogicTreeNode):
    """Sets the value of the given UI slider."""
    bl_idname = 'LNCanvasSetSliderNode'
    bl_label = 'Set Canvas Slider'
    arm_version = 1

    def init(self, context):
        super(CanvasSetSliderNode, self).init(context)
        self.add_input('ArmNodeSocketAction', 'In')
        self.add_input('NodeSocketString', 'Element')
        self.add_input('NodeSocketFloat', 'Float')
        self.add_output('ArmNodeSocketAction', 'Out')
