added node versioning information to all node classes

This commit is contained in:
niacdoial 2020-09-13 11:27:58 +02:00
parent cd730249af
commit bdc33cb419
286 changed files with 580 additions and 5 deletions

View file

@ -4,8 +4,10 @@ class AnimActionNode(ArmLogicTreeNode):
"""Anim action node"""
bl_idname = 'LNAnimActionNode'
bl_label = 'Action'
arm_version = 1
def init(self, context):
super(AnimActionNode, self).init(context)
self.add_input('ArmNodeSocketAnimAction', 'Action')
self.add_output('ArmNodeSocketAnimAction', 'Action', is_var=True)

View file

@ -4,8 +4,10 @@ class AnimationStateNode(ArmLogicTreeNode):
"""Animation state node"""
bl_idname = 'LNAnimationStateNode'
bl_label = 'Animation State'
arm_version = 1
def init(self, context):
super(AnimationStateNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('NodeSocketBool', 'Is Playing')
self.add_output('NodeSocketString', 'Action')

View file

@ -4,8 +4,10 @@ class BlendActionNode(ArmLogicTreeNode):
"""Blend action node"""
bl_idname = 'LNBlendActionNode'
bl_label = 'Blend Action'
arm_version = 1
def init(self, context):
super(BlendActionNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('ArmNodeSocketAnimAction', 'Action 1')

View file

@ -4,8 +4,10 @@ class BoneFKNode(ArmLogicTreeNode):
"""Bone Forward Kinematics node"""
bl_idname = 'LNBoneFKNode'
bl_label = 'Bone FK'
arm_version = 1
def init(self, context):
super(BoneFKNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketString', 'Bone')

View file

@ -4,8 +4,10 @@ class BoneIKNode(ArmLogicTreeNode):
"""Bone Inverse Kinematics node"""
bl_idname = 'LNBoneIKNode'
bl_label = 'Bone IK'
arm_version = 1
def init(self, context):
super(BoneIKNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketString', 'Bone')

View file

@ -4,8 +4,10 @@ class OnActionMarkerNode(ArmLogicTreeNode):
"""On action marker node"""
bl_idname = 'LNOnActionMarkerNode'
bl_label = 'On Action Marker'
arm_version = 1
def init(self, context):
super(OnActionMarkerNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketString', 'Marker')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class PauseActionNode(ArmLogicTreeNode):
"""Pause action node"""
bl_idname = 'LNPauseActionNode'
bl_label = 'Pause Action'
arm_version = 1
def init(self, context):
super(PauseActionNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class PauseTilesheetNode(ArmLogicTreeNode):
"""Pause tilesheet node"""
bl_idname = 'LNPauseTilesheetNode'
bl_label = 'Pause Tilesheet'
arm_version = 1
def init(self, context):
super(PauseTilesheetNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class PlayActionNode(ArmLogicTreeNode):
"""Play action node"""
bl_idname = 'LNPlayActionNode'
bl_label = 'Play Action'
arm_version = 1
def init(self, context):
super(PlayActionNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('ArmNodeSocketAnimAction', 'Action')

View file

@ -4,8 +4,10 @@ class PlayActionFromNode(ArmLogicTreeNode):
"""Play action from node"""
bl_idname = 'LNPlayActionFromNode'
bl_label = 'Play Action From'
arm_version = 1
def init(self, context):
super(PlayActionFromNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('ArmNodeSocketAnimAction', 'Action')

View file

@ -4,8 +4,10 @@ class PlayTilesheetNode(ArmLogicTreeNode):
"""Play tilesheet node"""
bl_idname = 'LNPlayTilesheetNode'
bl_label = 'Play Tilesheet'
arm_version = 1
def init(self, context):
super(PlayTilesheetNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketString', 'Action')

View file

@ -4,8 +4,10 @@ class ResumeActionNode(ArmLogicTreeNode):
"""Resume action node"""
bl_idname = 'LNResumeActionNode'
bl_label = 'Resume Action'
arm_version = 1
def init(self, context):
super(ResumeActionNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class ResumeTilesheetNode(ArmLogicTreeNode):
"""Resume tilesheet node"""
bl_idname = 'LNResumeTilesheetNode'
bl_label = 'Resume Tilesheet'
arm_version = 1
def init(self, context):
super(ResumeTilesheetNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class SetActionSpeedNode(ArmLogicTreeNode):
"""Set action speed node"""
bl_idname = 'LNSetActionSpeedNode'
bl_label = 'Set Action Speed'
arm_version = 1
def init(self, context):
super(SetActionSpeedNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketFloat', 'Speed', default_value=1.0)

View file

@ -4,8 +4,10 @@ class SetParentBoneNode(ArmLogicTreeNode):
"""Set parent bone node"""
bl_idname = 'LNSetParentBoneNode'
bl_label = 'Set Parent Bone'
arm_version = 1
def init(self, context):
super(SetParentBoneNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('ArmNodeSocketObject', 'Parent', default_value='Parent')

View file

@ -4,8 +4,10 @@ class SetParticleSpeedNode(ArmLogicTreeNode):
"""Set particle speed node"""
bl_idname = 'LNSetParticleSpeedNode'
bl_label = 'Set Particle Speed'
arm_version = 1
def init(self, context):
super(SetParticleSpeedNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketFloat', 'Speed', default_value=1.0)

View file

@ -4,11 +4,13 @@ class ArrayNode(ArmLogicTreeNode):
"""Array node"""
bl_idname = 'LNArrayNode'
bl_label = 'Array Dynamic'
arm_version = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(ArrayNode, self).init(context)
self.add_output('ArmNodeSocketArray', 'Array', is_var=True)
self.add_output('NodeSocketInt', 'Length')

View file

@ -4,11 +4,13 @@ class ArrayAddNode(ArmLogicTreeNode):
"""Array add node"""
bl_idname = 'LNArrayAddNode'
bl_label = 'Array Add'
arm_version = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(ArrayAddNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('NodeSocketBool', 'Unique Values')

View file

@ -4,11 +4,13 @@ class BooleanArrayNode(ArmLogicTreeNode):
"""Boolean array node"""
bl_idname = 'LNArrayBooleanNode'
bl_label = 'Array Boolean'
arm_version = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(BooleanArrayNode, self).init(context)
self.add_output('ArmNodeSocketArray', 'Array', is_var=True)
self.add_output('NodeSocketInt', 'Length')

View file

@ -4,11 +4,13 @@ class ColorArrayNode(ArmLogicTreeNode):
"""Color array node"""
bl_idname = 'LNArrayColorNode'
bl_label = 'Array Color'
arm_version = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(ColorArrayNode, self).init(context)
self.add_output('ArmNodeSocketArray', 'Array', is_var=True)
self.add_output('NodeSocketInt', 'Length')

View file

@ -4,8 +4,10 @@ class ArrayContainsNode(ArmLogicTreeNode):
"""Array contains node"""
bl_idname = 'LNArrayInArrayNode'
bl_label = 'Array Contains'
arm_version = 1
def init(self, context):
super(ArrayContainsNode, self).init(context)
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('NodeSocketShader', 'Value')
self.add_output('NodeSocketBool', 'Bool')

View file

@ -4,11 +4,13 @@ class FloatArrayNode(ArmLogicTreeNode):
"""Float array node"""
bl_idname = 'LNArrayFloatNode'
bl_label = 'Array Float'
arm_version = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(FloatArrayNode, self).init(context)
self.add_output('ArmNodeSocketArray', 'Array', is_var=True)
self.add_output('NodeSocketInt', 'Length')

View file

@ -4,8 +4,10 @@ class ArrayGetNode(ArmLogicTreeNode):
"""Array get node"""
bl_idname = 'LNArrayGetNode'
bl_label = 'Array Get'
arm_version = 1
def init(self, context):
super(ArrayGetNode, self).init(context)
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('NodeSocketInt', 'Index')
self.add_output('NodeSocketShader', 'Value')

View file

@ -4,11 +4,13 @@ class IntegerArrayNode(ArmLogicTreeNode):
"""Integer array node"""
bl_idname = 'LNArrayIntegerNode'
bl_label = 'Array Integer'
arm_version = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(IntegerArrayNode, self).init(context)
self.add_output('ArmNodeSocketArray', 'Array')
self.add_output('NodeSocketInt', 'Length')

View file

@ -4,8 +4,10 @@ class ArrayLengthNode(ArmLogicTreeNode):
"""Array length node"""
bl_idname = 'LNArrayLengthNode'
bl_label = 'Array Length'
arm_version = 1
def init(self, context):
super(ArrayLengthNode, self).init(context)
self.add_input('ArmNodeSocketArray', 'Array')
self.add_output('NodeSocketInt', 'Length')

View file

@ -5,8 +5,10 @@ class ArrayLoopNode(ArmLogicTreeNode):
"""ArrayLoop node"""
bl_idname = 'LNArrayLoopNode'
bl_label = 'Array Loop'
arm_version = 1
def init(self, context):
super(ArrayLoopNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketArray', 'Array')
self.add_output('ArmNodeSocketAction', 'Loop')

View file

@ -4,11 +4,13 @@ class ObjectArrayNode(ArmLogicTreeNode):
"""Object array node"""
bl_idname = 'LNArrayObjectNode'
bl_label = 'Array Object'
arm_version = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(ObjectArrayNode, self).init(context)
self.add_output('ArmNodeSocketArray', 'Array', is_var=True)
self.add_output('NodeSocketInt', 'Length')

View file

@ -4,8 +4,10 @@ class ArrayPopNode(ArmLogicTreeNode):
"""Array pop node"""
bl_idname = 'LNArrayPopNode'
bl_label = 'Array Pop'
arm_version = 1
def init(self, context):
super(ArrayPopNode, self).init(context)
self.add_input('ArmNodeSocketArray', 'Array')
self.add_output('NodeSocketShader', 'Value')

View file

@ -4,8 +4,10 @@ class ArrayRemoveIndexNode(ArmLogicTreeNode):
"""Removes an element from an array given by its index."""
bl_idname = 'LNArrayRemoveNode'
bl_label = 'Array Remove By Index'
arm_version = 1
def init(self, context):
super(ArrayRemoveIndexNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('NodeSocketInt', 'Index')

View file

@ -4,11 +4,13 @@ class ArrayRemoveValueNode(ArmLogicTreeNode):
"""Removes an element from an array given by its value."""
bl_idname = 'LNArrayRemoveValueNode'
bl_label = 'Array Remove By Value'
arm_version = 1
# def __init__(self):
# array_nodes[str(id(self))] = self
def init(self, context):
super(ArrayRemoveValueNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('NodeSocketShader', 'Value')

View file

@ -4,8 +4,10 @@ class ArraySetNode(ArmLogicTreeNode):
"""Array set node"""
bl_idname = 'LNArraySetNode'
bl_label = 'Array Set'
arm_version = 1
def init(self, context):
super(ArraySetNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('NodeSocketInt', 'Index')

View file

@ -4,8 +4,10 @@ class ArrayShiftNode(ArmLogicTreeNode):
"""Array shift node"""
bl_idname = 'LNArrayShiftNode'
bl_label = 'Array Shift'
arm_version = 1
def init(self, context):
super(ArrayShiftNode, self).init(context)
self.add_input('ArmNodeSocketArray', 'Array')
self.add_output('NodeSocketShader', 'Value')

View file

@ -4,8 +4,10 @@ class ArraySliceNode(ArmLogicTreeNode):
"""Array slice node"""
bl_idname = 'LNArraySliceNode'
bl_label = 'Array Slice'
arm_version = 1
def init(self, context):
super(ArraySliceNode, self).init(context)
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('NodeSocketInt', 'Index')
self.add_input('NodeSocketInt', 'End')

View file

@ -4,8 +4,10 @@ class ArraySpliceNode(ArmLogicTreeNode):
"""Array splice node"""
bl_idname = 'LNArraySpliceNode'
bl_label = 'Array Splice'
arm_version = 1
def init(self, context):
super(ArraySpliceNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('NodeSocketInt', 'Index')

View file

@ -4,11 +4,13 @@ class StringArrayNode(ArmLogicTreeNode):
"""String array node"""
bl_idname = 'LNArrayStringNode'
bl_label = 'Array String'
arm_version = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(StringArrayNode, self).init(context)
self.add_output('ArmNodeSocketArray', 'Array', is_var=True)
self.add_output('NodeSocketInt', 'Length')

View file

@ -4,11 +4,13 @@ class VectorArrayNode(ArmLogicTreeNode):
"""Vector array node"""
bl_idname = 'LNArrayVectorNode'
bl_label = 'Array Vector'
arm_version = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(VectorArrayNode, self).init(context)
self.add_output('ArmNodeSocketArray', 'Array', is_var=True)
self.add_output('NodeSocketInt', 'Length')

View file

@ -4,8 +4,10 @@ class ActiveCameraNode(ArmLogicTreeNode):
"""Get the active camera of the active scene."""
bl_idname = 'LNActiveCameraNode'
bl_label = 'Get Active Camera'
arm_version = 1
def init(self, context):
super(ActiveCameraNode, self).init(context)
self.add_output('ArmNodeSocketObject', 'Object')
add_node(ActiveCameraNode, category=PKG_AS_CATEGORY)

View file

@ -4,8 +4,10 @@ class GetCameraFovNode(ArmLogicTreeNode):
"""Get camera FOV node"""
bl_idname = 'LNGetCameraFovNode'
bl_label = 'Get Camera FOV'
arm_version = 1
def init(self, context):
super(GetCameraFovNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('NodeSocketFloat', 'FOV')

View file

@ -4,8 +4,10 @@ class SetCameraNode(ArmLogicTreeNode):
"""Set the active camera of the active scene."""
bl_idname = 'LNSetCameraNode'
bl_label = 'Set Active Camera'
arm_version = 1
def init(self, context):
super(SetCameraNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')

View file

@ -5,8 +5,10 @@ class SetCameraFovNode(ArmLogicTreeNode):
bl_idname = 'LNSetCameraFovNode'
bl_label = 'Set Camera FOV'
bl_description = 'Set the camera\'s field of view'
arm_version = 1
def init(self, context):
super(SetCameraFovNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketFloat', 'FOV', default_value=0.85)

View file

@ -4,8 +4,10 @@ class CanvasGetCheckboxNode(ArmLogicTreeNode):
"""Get canvas checkbox value"""
bl_idname = 'LNCanvasGetCheckboxNode'
bl_label = 'Canvas Get Checkbox'
arm_version = 1
def init(self, context):
super(CanvasGetCheckboxNode, self).init(context)
self.add_input('NodeSocketString', 'Element')
self.add_output('NodeSocketBool', 'Value')

View file

@ -4,8 +4,10 @@ class CanvasGetInputTextNode(ArmLogicTreeNode):
"""Get canvas input text"""
bl_idname = 'LNCanvasGetInputTextNode'
bl_label = 'Canvas Get Input Text'
arm_version = 1
def init(self, context):
super(CanvasGetInputTextNode, self).init(context)
self.add_input('NodeSocketString', 'Element')
self.add_output('NodeSocketString', 'Value')

View file

@ -4,8 +4,10 @@ class CanvasGetLocationNode(ArmLogicTreeNode):
"""Get canvas element location"""
bl_idname = 'LNCanvasGetLocationNode'
bl_label = 'Canvas Get Location'
arm_version = 1
def init(self, context):
super(CanvasGetLocationNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class CanvasGetPBNode(ArmLogicTreeNode):
"""Get canvas progress bar"""
bl_idname = 'LNCanvasGetPBNode'
bl_label = 'Canvas Get 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')

View file

@ -4,8 +4,10 @@ class CanvasGetPositionNode(ArmLogicTreeNode):
"""Get canvas radio and combo value"""
bl_idname = 'LNCanvasGetPositionNode'
bl_label = 'Canvas Get Position'
arm_version = 1
def init(self, context):
super(CanvasGetPositionNode, self).init(context)
self.add_input('NodeSocketString', 'Element')
self.add_output('NodeSocketInt', 'Value')

View file

@ -4,8 +4,10 @@ class CanvasGetRotationNode(ArmLogicTreeNode):
"""Get canvas element rotation"""
bl_idname = 'LNCanvasGetRotationNode'
bl_label = 'Canvas Get Rotation'
arm_version = 1
def init(self, context):
super(CanvasGetRotationNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class CanvasGetScaleNode(ArmLogicTreeNode):
"""Get canvas element scale"""
bl_idname = 'LNCanvasGetScaleNode'
bl_label = 'Canvas Get Scale'
arm_version = 1
def init(self, context):
super(CanvasGetScaleNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class CanvasGetSliderNode(ArmLogicTreeNode):
"""Set canvas text"""
bl_idname = 'LNCanvasGetSliderNode'
bl_label = 'Canvas Get Slider'
arm_version = 1
def init(self, context):
super(CanvasGetSliderNode, self).init(context)
self.add_input('NodeSocketString', 'Element')
self.add_output('NodeSocketFloat', 'Value')

View file

@ -7,8 +7,10 @@ class CanvasGetVisibleNode(ArmLogicTreeNode):
"""Canvas Get Visible node"""
bl_idname = 'LNCanvasGetVisibleNode'
bl_label = 'Canvas Get Visible'
arm_version = 1
def init(self, context):
super(CanvasGetVisibleNode, self).init(context)
self.inputs.new('NodeSocketString', 'Element')
self.outputs.new('NodeSocketBool', 'Visible')

View file

@ -4,8 +4,10 @@ class CanvasSetAssetNode(ArmLogicTreeNode):
"""Set canvas asset"""
bl_idname = 'LNCanvasSetAssetNode'
bl_label = 'Canvas Set Asset'
arm_version = 1
def init(self, context):
super(CanvasSetAssetNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_input('NodeSocketString', 'Asset')

View file

@ -4,8 +4,10 @@ class CanvasSetCheckBoxNode(ArmLogicTreeNode):
"""Set canvas check box"""
bl_idname = 'LNCanvasSetCheckBoxNode'
bl_label = 'Canvas Set Checkbox'
arm_version = 1
def init(self, context):
super(CanvasSetCheckBoxNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_input('NodeSocketBool', 'Value')

View file

@ -4,8 +4,10 @@ class CanvasSetLocationNode(ArmLogicTreeNode):
"""Set canvas element location"""
bl_idname = 'LNCanvasSetLocationNode'
bl_label = 'Canvas Set 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')

View file

@ -4,8 +4,10 @@ class CanvasSetPBNode(ArmLogicTreeNode):
"""Set canvas progress bar"""
bl_idname = 'LNCanvasSetPBNode'
bl_label = 'Canvas Set 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')

View file

@ -4,8 +4,10 @@ class CanvasSetRotationNode(ArmLogicTreeNode):
"""Set canvas element rotation"""
bl_idname = 'LNCanvasSetRotationNode'
bl_label = 'Canvas Set Rotation'
arm_version = 1
def init(self, context):
super(CanvasSetRotationNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_input('NodeSocketFloat', 'Rad')

View file

@ -4,8 +4,10 @@ class CanvasSetScaleNode(ArmLogicTreeNode):
"""Set canvas element scale"""
bl_idname = 'LNCanvasSetScaleNode'
bl_label = 'Canvas Set Scale'
arm_version = 1
def init(self, context):
super(CanvasSetScaleNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_input('NodeSocketInt', 'Height')

View file

@ -4,8 +4,10 @@ class CanvasSetSliderNode(ArmLogicTreeNode):
"""Set canvas text"""
bl_idname = 'LNCanvasSetSliderNode'
bl_label = 'Canvas Set 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', 'Value')

View file

@ -4,8 +4,10 @@ class CanvasSetTextNode(ArmLogicTreeNode):
"""Set canvas text"""
bl_idname = 'LNCanvasSetTextNode'
bl_label = 'Canvas Set Text'
arm_version = 1
def init(self, context):
super(CanvasSetTextNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_input('NodeSocketString', 'Text')

View file

@ -4,8 +4,10 @@ class CanvasSetTextColorNode(ArmLogicTreeNode):
"""Set canvas text color"""
bl_idname = 'LNCanvasSetTextColorNode'
bl_label = 'Canvas Set Text Color'
arm_version = 1
def init(self, context):
super(CanvasSetTextColorNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_input('NodeSocketFloat', 'R')

View file

@ -4,8 +4,10 @@ class CanvasSetVisibleNode(ArmLogicTreeNode):
"""Canvas Set Visible node"""
bl_idname = 'LNCanvasSetVisibleNode'
bl_label = 'Canvas Set Visible'
arm_version = 1
def init(self, context):
super(CanvasSetVisibleNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_input('NodeSocketBool', 'Visible')

View file

@ -4,6 +4,7 @@ class OnCanvasElementNode(ArmLogicTreeNode):
"""On canvas element node"""
bl_idname = 'LNOnCanvasElementNode'
bl_label = 'On Canvas Element'
arm_version = 1
property0: EnumProperty(
items=[('click', 'Click', 'Listen to mouse clicks'),
@ -21,6 +22,7 @@ class OnCanvasElementNode(ArmLogicTreeNode):
name='Mouse Button', default='left')
def init(self, context):
super(OnCanvasElementNode, self).init(context)
self.add_input('NodeSocketString', 'Element')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,9 +4,11 @@ class OnEventNode(ArmLogicTreeNode):
"""On event node"""
bl_idname = 'LNOnEventNode'
bl_label = 'On Event'
arm_version = 1
property0: StringProperty(name='', default='')
def init(self, context):
super(OnEventNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):

View file

@ -4,8 +4,10 @@ class OnInitNode(ArmLogicTreeNode):
"""On init node"""
bl_idname = 'LNOnInitNode'
bl_label = 'On Init'
arm_version = 1
def init(self, context):
super(OnInitNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
add_node(OnInitNode, category=PKG_AS_CATEGORY)

View file

@ -4,8 +4,10 @@ class OnTimerNode(ArmLogicTreeNode):
"""On timer node"""
bl_idname = 'LNOnTimerNode'
bl_label = 'On Timer'
arm_version = 1
def init(self, context):
super(OnTimerNode, self).init(context)
self.add_input('NodeSocketFloat', 'Duration')
self.add_input('NodeSocketBool', 'Repeat')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,6 +4,7 @@ class OnUpdateNode(ArmLogicTreeNode):
"""On update node"""
bl_idname = 'LNOnUpdateNode'
bl_label = 'On Update'
arm_version = 1
property0: EnumProperty(
items = [('Update', 'Update', 'Update'),
('Late Update', 'Late Update', 'Late Update'),
@ -11,6 +12,7 @@ class OnUpdateNode(ArmLogicTreeNode):
name='On', default='Update')
def init(self, context):
super(OnUpdateNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):

View file

@ -4,6 +4,7 @@ class OnVolumeTriggerNode(ArmLogicTreeNode):
"""On volume trigger node"""
bl_idname = 'LNOnVolumeTriggerNode'
bl_label = 'On Volume Trigger'
arm_version = 1
property0: EnumProperty(
items = [('Enter', 'Enter', 'Enter'),
('Leave', 'Leave', 'Leave'),
@ -11,6 +12,7 @@ class OnVolumeTriggerNode(ArmLogicTreeNode):
name='', default='Enter')
def init(self, context):
super(OnVolumeTriggerNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('ArmNodeSocketObject', 'Volume', default_value='Volume')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class SendEventNode(ArmLogicTreeNode):
"""Send event node"""
bl_idname = 'LNSendEventNode'
bl_label = 'Send Event'
arm_version = 1
def init(self, context):
super(SendEventNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Event')
self.add_input('ArmNodeSocketObject', 'Object')

View file

@ -4,8 +4,10 @@ class SendGlobalEventNode(ArmLogicTreeNode):
"""Send global event node"""
bl_idname = 'LNSendGlobalEventNode'
bl_label = 'Send Global Event'
arm_version = 1
def init(self, context):
super(SendGlobalEventNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Event')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,6 +4,7 @@ class GamepadNode(ArmLogicTreeNode):
"""Gamepad node"""
bl_idname = 'LNMergedGamepadNode'
bl_label = 'Gamepad'
arm_version = 1
property0: EnumProperty(
items = [('Down', 'Down', 'Down'),
@ -35,6 +36,7 @@ class GamepadNode(ArmLogicTreeNode):
name='', default='cross')
def init(self, context):
super(GamepadNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
self.add_output('NodeSocketBool', 'State')
self.add_input('NodeSocketInt', 'Gamepad')

View file

@ -4,8 +4,10 @@ class GamepadCoordsNode(ArmLogicTreeNode):
"""Gamepad coords node"""
bl_idname = 'LNGamepadCoordsNode'
bl_label = 'Gamepad Coords'
arm_version = 1
def init(self, context):
super(GamepadCoordsNode, self).init(context)
self.add_output('NodeSocketVector', 'Left Stick')
self.add_output('NodeSocketVector', 'Right Stick')
self.add_output('NodeSocketVector', 'Left Movement')

View file

@ -7,8 +7,10 @@ class GetMouseLockNode(ArmLogicTreeNode):
"""Get Mouse Lock node"""
bl_idname = 'LNGetMouseLockNode'
bl_label = 'Get Mouse Lock'
arm_version = 1
def init(self, context):
super(GetMouseLockNode, self).init(context)
self.outputs.new('NodeSocketBool', 'Lock')
add_node(GetMouseLockNode, category=PKG_AS_CATEGORY, section='mouse')

View file

@ -7,8 +7,10 @@ class GetMouseVisibleNode(ArmLogicTreeNode):
"""Get Mouse Visible node"""
bl_idname = 'LNGetMouseVisibleNode'
bl_label = 'Get Mouse Visible'
arm_version = 1
def init(self, context):
super(GetMouseVisibleNode, self).init(context)
self.outputs.new('NodeSocketBool', 'Visible')
add_node(GetMouseVisibleNode, category=PKG_AS_CATEGORY, section='mouse')

View file

@ -4,6 +4,7 @@ class KeyboardNode(ArmLogicTreeNode):
"""Keyboard node"""
bl_idname = 'LNMergedKeyboardNode'
bl_label = 'Keyboard'
arm_version = 1
property0: EnumProperty(
items = [('Down', 'Down', 'Down'),
@ -67,6 +68,7 @@ class KeyboardNode(ArmLogicTreeNode):
name='', default='space')
def init(self, context):
super(KeyboardNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
self.add_output('NodeSocketBool', 'State')

View file

@ -4,6 +4,7 @@ class MouseNode(ArmLogicTreeNode):
"""Mouse node"""
bl_idname = 'LNMergedMouseNode'
bl_label = 'Mouse'
arm_version = 1
property0: EnumProperty(
items = [('Down', 'Down', 'Down'),
('Started', 'Started', 'Started'),
@ -17,6 +18,7 @@ class MouseNode(ArmLogicTreeNode):
name='', default='left')
def init(self, context):
super(MouseNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
self.add_output('NodeSocketBool', 'State')

View file

@ -4,8 +4,10 @@ class MouseCoordsNode(ArmLogicTreeNode):
"""Mouse coords node"""
bl_idname = 'LNMouseCoordsNode'
bl_label = 'Mouse Coords'
arm_version = 1
def init(self, context):
super(MouseCoordsNode, self).init(context)
self.add_output('NodeSocketVector', 'Coords')
self.add_output('NodeSocketVector', 'Movement')
self.add_output('NodeSocketInt', 'Wheel')

View file

@ -4,6 +4,7 @@ class OnGamepadNode(ArmLogicTreeNode):
"""On gamepad node"""
bl_idname = 'LNOnGamepadNode'
bl_label = 'On Gamepad'
arm_version = 1
property0: EnumProperty(
items = [('Down', 'Down', 'Down'),
@ -35,6 +36,7 @@ class OnGamepadNode(ArmLogicTreeNode):
name='', default='cross')
def init(self, context):
super(OnGamepadNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
self.add_input('NodeSocketInt', 'Gamepad')

View file

@ -4,6 +4,7 @@ class OnKeyboardNode(ArmLogicTreeNode):
"""On keyboard node"""
bl_idname = 'LNOnKeyboardNode'
bl_label = 'On Keyboard'
arm_version = 1
property0: EnumProperty(
items = [('Down', 'Down', 'Down'),
@ -67,6 +68,7 @@ class OnKeyboardNode(ArmLogicTreeNode):
name='', default='space')
def init(self, context):
super(OnKeyboardNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):

View file

@ -4,6 +4,7 @@ class OnMouseNode(ArmLogicTreeNode):
"""On mouse node"""
bl_idname = 'LNOnMouseNode'
bl_label = 'On Mouse'
arm_version = 1
property0: EnumProperty(
items = [('Down', 'Down', 'Down'),
('Started', 'Started', 'Started'),
@ -17,6 +18,7 @@ class OnMouseNode(ArmLogicTreeNode):
name='', default='left')
def init(self, context):
super(OnMouseNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):

View file

@ -4,6 +4,7 @@ class OnSurfaceNode(ArmLogicTreeNode):
"""On surface node"""
bl_idname = 'LNOnSurfaceNode'
bl_label = 'On Surface'
arm_version = 1
property0: EnumProperty(
items = [('Touched', 'Touched', 'Touched'),
('Started', 'Started', 'Started'),
@ -12,6 +13,7 @@ class OnSurfaceNode(ArmLogicTreeNode):
name='', default='Touched')
def init(self, context):
super(OnSurfaceNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):

View file

@ -4,6 +4,7 @@ class OnVirtualButtonNode(ArmLogicTreeNode):
"""On virtual button node"""
bl_idname = 'LNOnVirtualButtonNode'
bl_label = 'On Virtual Button'
arm_version = 1
property0: EnumProperty(
items = [('Down', 'Down', 'Down'),
('Started', 'Started', 'Started'),
@ -12,6 +13,7 @@ class OnVirtualButtonNode(ArmLogicTreeNode):
property1: StringProperty(name='', default='button')
def init(self, context):
super(OnVirtualButtonNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):

View file

@ -4,8 +4,10 @@ class SensorCoordsNode(ArmLogicTreeNode):
"""Sensor coords node"""
bl_idname = 'LNSensorCoordsNode'
bl_label = 'Sensor Coords'
arm_version = 1
def init(self, context):
super(SensorCoordsNode, self).init(context)
self.add_output('NodeSocketVector', 'Coords')
add_node(SensorCoordsNode, category=PKG_AS_CATEGORY, section='sensor')

View file

@ -4,8 +4,10 @@ class SetMouseLockNode(ArmLogicTreeNode):
"""Set Mouse Lock node"""
bl_idname = 'LNSetMouseLockNode'
bl_label = 'Set Mouse Lock'
arm_version = 1
def init(self, context):
super(SetMouseLockNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketBool', 'Lock')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class ShowMouseNode(ArmLogicTreeNode):
"""Show Mouse node"""
bl_idname = 'LNShowMouseNode'
bl_label = 'Show Mouse'
arm_version = 1
def init(self, context):
super(ShowMouseNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketBool', 'Show')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,6 +4,7 @@ class SurfaceNode(ArmLogicTreeNode):
"""Surface node"""
bl_idname = 'LNMergedSurfaceNode'
bl_label = 'Surface'
arm_version = 1
property0: EnumProperty(
items = [('Touched', 'Touched', 'Touched'),
('Started', 'Started', 'Started'),
@ -12,6 +13,7 @@ class SurfaceNode(ArmLogicTreeNode):
name='', default='Touched')
def init(self, context):
super(SurfaceNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
self.add_output('NodeSocketBool', 'State')

View file

@ -4,8 +4,10 @@ class SurfaceCoordsNode(ArmLogicTreeNode):
"""Surface coords node"""
bl_idname = 'LNSurfaceCoordsNode'
bl_label = 'Surface Coords'
arm_version = 1
def init(self, context):
super(SurfaceCoordsNode, self).init(context)
self.add_output('NodeSocketVector', 'Coords')
self.add_output('NodeSocketVector', 'Movement')

View file

@ -4,6 +4,7 @@ class VirtualButtonNode(ArmLogicTreeNode):
"""Virtual button node"""
bl_idname = 'LNMergedVirtualButtonNode'
bl_label = 'Virtual Button'
arm_version = 1
property0: EnumProperty(
items = [('Down', 'Down', 'Down'),
('Started', 'Started', 'Started'),
@ -12,6 +13,7 @@ class VirtualButtonNode(ArmLogicTreeNode):
property1: StringProperty(name='', default='button')
def init(self, context):
super(VirtualButtonNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
self.add_output('NodeSocketBool', 'State')

View file

@ -4,8 +4,10 @@ class SetLightColorNode(ArmLogicTreeNode):
"""Set light color node"""
bl_idname = 'LNSetLightColorNode'
bl_label = 'Set Light Color'
arm_version = 1
def init(self, context):
super(SetLightColorNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketColor', 'Color', default_value=[1.0, 1.0, 1.0, 1.0])

View file

@ -4,8 +4,10 @@ class SetLightStrengthNode(ArmLogicTreeNode):
"""Set light strength node"""
bl_idname = 'LNSetLightStrengthNode'
bl_label = 'Set Light Strength'
arm_version = 1
def init(self, context):
super(SetLightStrengthNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketFloat', 'Strength', default_value=100)

View file

@ -5,8 +5,10 @@ class AlternateNode(ArmLogicTreeNode):
"""Alternate node"""
bl_idname = 'LNAlternateNode'
bl_label = 'Alternate'
arm_version = 1
def init(self, context):
super(AlternateNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_output('ArmNodeSocketAction', '0')
self.add_output('ArmNodeSocketAction', '1')

View file

@ -5,8 +5,10 @@ class BranchNode(ArmLogicTreeNode):
"""Branch node"""
bl_idname = 'LNBranchNode'
bl_label = 'Branch'
arm_version = 1
def init(self, context):
super(BranchNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketBool', 'Bool')
self.add_output('ArmNodeSocketAction', 'True')

View file

@ -4,12 +4,14 @@ class CallFunctionNode(ArmLogicTreeNode):
"""Call Haxe function node"""
bl_idname = 'LNCallFunctionNode'
bl_label = 'Call Function'
arm_version = 1
min_inputs = 3
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(CallFunctionNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketShader', 'Trait/Any')
self.add_input('NodeSocketString', 'Function')

View file

@ -5,12 +5,14 @@ class FunctionNode(ArmLogicTreeNode):
"""Function node"""
bl_idname = 'LNFunctionNode'
bl_label = 'Function'
arm_version = 1
min_outputs = 1
def __init__(self):
array_nodes[str(id(self))] = self
def init(self, context):
super(FunctionNode, self).init(context)
self.add_output('ArmNodeSocketAction', 'Out')
function_name: StringProperty(name="Name")

View file

@ -5,8 +5,10 @@ class FunctionOutputNode(ArmLogicTreeNode):
"""Function output node"""
bl_idname = 'LNFunctionOutputNode'
bl_label = 'Function Output'
arm_version = 1
def init(self, context):
super(FunctionOutputNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketShader', 'Value')

View file

@ -11,6 +11,7 @@ class GateNode(ArmLogicTreeNode):
"""Gate node"""
bl_idname = 'LNGateNode'
bl_label = 'Gate'
arm_version = 1
min_inputs = 3
property0: EnumProperty(
@ -30,6 +31,7 @@ class GateNode(ArmLogicTreeNode):
array_nodes[str(id(self))] = self
def init(self, context):
super(GateNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketShader', 'Value')
self.add_input('NodeSocketShader', 'Value')

View file

@ -5,8 +5,10 @@ class InverseNode(ArmLogicTreeNode):
"""Inverse node"""
bl_idname = 'LNInverseNode'
bl_label = 'Inverse'
arm_version = 1
def init(self, context):
super(InverseNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -5,8 +5,10 @@ class IsFalseNode(ArmLogicTreeNode):
"""Is False node"""
bl_idname = 'LNIsFalseNode'
bl_label = 'Is False'
arm_version = 1
def init(self, context):
super(IsFalseNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketBool', 'Value')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -5,8 +5,10 @@ class IsNoneNode(ArmLogicTreeNode):
"""Is none node"""
bl_idname = 'LNIsNoneNode'
bl_label = 'Is None'
arm_version = 1
def init(self, context):
super(IsNoneNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketShader', 'Value')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class IsNotNoneNode(ArmLogicTreeNode):
"""Is not none node"""
bl_idname = 'LNIsNotNoneNode'
bl_label = 'Is Not None'
arm_version = 1
def init(self, context):
super(IsNotNoneNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketShader', 'Value')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class IsTrueNode(ArmLogicTreeNode):
"""Is true node"""
bl_idname = 'LNIsTrueNode'
bl_label = 'Is True'
arm_version = 1
def init(self, context):
super(IsTrueNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketBool', 'Value')
self.add_output('ArmNodeSocketAction', 'Out')

View file

@ -4,8 +4,10 @@ class LoopNode(ArmLogicTreeNode):
"""Loop node"""
bl_idname = 'LNLoopNode'
bl_label = 'Loop'
arm_version = 1
def init(self, context):
super(LoopNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketInt', 'From')
self.add_input('NodeSocketInt', 'To')

View file

@ -4,8 +4,10 @@ class LoopBreakNode(ArmLogicTreeNode):
"""Loop break node"""
bl_idname = 'LNLoopBreakNode'
bl_label = 'Loop Break'
arm_version = 1
def init(self, context):
super(LoopBreakNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
add_node(LoopBreakNode, category=PKG_AS_CATEGORY, section='flow')

Some files were not shown because too many files have changed in this diff Show more