armory/blender/arm/logicnode/canvas/LN_set_canvas_progress_bar.py
2020-10-05 14:55:56 -03:00

18 lines
619 B
Python

from arm.logicnode.arm_nodes import *
class CanvasSetPBNode(ArmLogicTreeNode):
"""Sets the value of the given UI progress bar."""
bl_idname = 'LNCanvasSetPBNode'
bl_label = 'Set Canvas Progress Bar'
arm_version = 1
def init(self, context):
super(CanvasSetPBNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_input('NodeSocketInt', 'At')
self.add_input('NodeSocketInt', 'Max')
self.add_output('ArmNodeSocketAction', 'Out')
add_node(CanvasSetPBNode, category=PKG_AS_CATEGORY)