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

18 lines
624 B
Python

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