Merge pull request 'More 4.4 updates' (#17) from Onek8/LNXSDK:main into main
Reviewed-on: #17
This commit is contained in:
commit
6ec480930a
@ -90,7 +90,8 @@ class BlendSpaceNode(LnxLogicTreeNode):
|
||||
draw_handler_dict = {}
|
||||
modal_handler_dict = {}
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(BlendSpaceNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
if self.advanced_draw_run:
|
||||
self.add_advanced_draw()
|
||||
|
@ -8,8 +8,8 @@ class OneShotActionMultiNode(LnxLogicTreeNode):
|
||||
lnx_version = 1
|
||||
min_inputs = 10
|
||||
|
||||
def __init__(self):
|
||||
super(OneShotActionMultiNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(OneShotActionMultiNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[self.get_id_str()] = self
|
||||
|
||||
property0: HaxeStringProperty('property0', name = 'Action ID', default = '')
|
||||
|
@ -7,8 +7,8 @@ class SwitchActionMultiNode(LnxLogicTreeNode):
|
||||
lnx_version = 1
|
||||
min_inputs = 8
|
||||
|
||||
def __init__(self):
|
||||
super(SwitchActionMultiNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(SwitchActionMultiNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[self.get_id_str()] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,7 +9,8 @@ class ArrayNode(LnxLogicVariableNodeMixin, LnxLogicTreeNode):
|
||||
lnx_section = 'variable'
|
||||
min_inputs = 0
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ArrayNode, self).__init__(*args, **kwargs)
|
||||
self.register_id()
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -12,8 +12,8 @@ class ArrayAddNode(LnxLogicTreeNode):
|
||||
lnx_version = 5
|
||||
min_inputs = 6
|
||||
|
||||
def __init__(self):
|
||||
super(ArrayAddNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ArrayAddNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[self.get_id_str()] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,8 +9,8 @@ class BooleanArrayNode(LnxLogicVariableNodeMixin, LnxLogicTreeNode):
|
||||
lnx_section = 'variable'
|
||||
min_inputs = 0
|
||||
|
||||
def __init__(self):
|
||||
super(BooleanArrayNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(BooleanArrayNode, self).__init__(*args, **kwargs)
|
||||
self.register_id()
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,8 +9,8 @@ class ColorArrayNode(LnxLogicVariableNodeMixin, LnxLogicTreeNode):
|
||||
lnx_section = 'variable'
|
||||
min_inputs = 0
|
||||
|
||||
def __init__(self):
|
||||
super(ColorArrayNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ColorArrayNode, self).__init__(*args, **kwargs)
|
||||
self.register_id()
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,8 +9,8 @@ class FloatArrayNode(LnxLogicVariableNodeMixin, LnxLogicTreeNode):
|
||||
lnx_section = 'variable'
|
||||
min_inputs = 0
|
||||
|
||||
def __init__(self):
|
||||
super(FloatArrayNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(FloatArrayNode, self).__init__(*args, **kwargs)
|
||||
self.register_id()
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,8 +9,8 @@ class IntegerArrayNode(LnxLogicVariableNodeMixin, LnxLogicTreeNode):
|
||||
lnx_section = 'variable'
|
||||
min_inputs = 0
|
||||
|
||||
def __init__(self):
|
||||
super(IntegerArrayNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(IntegerArrayNode, self).__init__(*args, **kwargs)
|
||||
self.register_id()
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,8 +9,8 @@ class ObjectArrayNode(LnxLogicVariableNodeMixin, LnxLogicTreeNode):
|
||||
lnx_section = 'variable'
|
||||
min_inputs = 0
|
||||
|
||||
def __init__(self):
|
||||
super(ObjectArrayNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ObjectArrayNode, self).__init__(*args, **kwargs)
|
||||
self.register_id()
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,8 +9,8 @@ class StringArrayNode(LnxLogicVariableNodeMixin, LnxLogicTreeNode):
|
||||
lnx_section = 'variable'
|
||||
min_inputs = 0
|
||||
|
||||
def __init__(self):
|
||||
super(StringArrayNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(StringArrayNode, self).__init__(*args, **kwargs)
|
||||
self.register_id()
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,8 +9,9 @@ class VectorArrayNode(LnxLogicVariableNodeMixin, LnxLogicTreeNode):
|
||||
lnx_section = 'variable'
|
||||
min_inputs = 0
|
||||
|
||||
def __init__(self):
|
||||
super(VectorArrayNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(VectorArrayNode, self).__init__(*args, **kwargs)
|
||||
|
||||
self.register_id()
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,7 +9,8 @@ class AddTorrentNode(LnxLogicTreeNode):
|
||||
lnx_category = 'Leenkx'
|
||||
lnx_version = 1
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(AddTorrentNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
|
||||
|
@ -17,8 +17,8 @@ class CallWASMNode(LnxLogicTreeNode):
|
||||
default=False,
|
||||
)
|
||||
|
||||
def __init__(self):
|
||||
super(CallWASMNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CallWASMNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -406,8 +406,8 @@ class CreateStyleNode(LnxLogicTreeNode):
|
||||
|
||||
|
||||
|
||||
def __init__(self):
|
||||
super(CreateStyleNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CreateStyleNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -9,7 +9,8 @@ class CreateTorrentNode(LnxLogicTreeNode):
|
||||
lnx_category = 'Leenkx'
|
||||
lnx_version = 1
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CreateTorrentNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
|
||||
|
@ -88,7 +88,8 @@ class LeenkxEventNode(LnxLogicTreeNode):
|
||||
name='',
|
||||
default='onopen')
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(LeenkxEventNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
|
||||
|
@ -91,7 +91,8 @@ class LeenkxSendMessageNode(LnxLogicTreeNode):
|
||||
default='string')
|
||||
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(LeenkxSendMessageNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
|
||||
|
@ -9,7 +9,8 @@ class SeedTorrentNode(LnxLogicTreeNode):
|
||||
lnx_category = 'Leenkx'
|
||||
lnx_version = 1
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(SeedTorrentNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
|
||||
|
@ -57,7 +57,8 @@ class SetElementDataNode(LnxLogicTreeNode):
|
||||
get=get_enum)
|
||||
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(SetElementDataNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
|
||||
|
@ -9,7 +9,8 @@ class TouchPadNode(LnxLogicTreeNode):
|
||||
lnx_category = 'Leenkx'
|
||||
lnx_version = 1
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(TouchPadNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
|
||||
|
@ -21,8 +21,8 @@ class DrawCameraNode(LnxLogicTreeNode):
|
||||
|
||||
num_choices: IntProperty(default=0, min=0)
|
||||
|
||||
def __init__(self):
|
||||
super(DrawCameraNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(DrawCameraNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -26,8 +26,8 @@ class DrawPolygonNode(LnxLogicTreeNode):
|
||||
|
||||
num_choices: IntProperty(default=1, min=0)
|
||||
|
||||
def __init__(self):
|
||||
super(DrawPolygonNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(DrawPolygonNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -55,8 +55,8 @@ class OnSwipeNode(LnxLogicTreeNode):
|
||||
min_outputs = 4
|
||||
max_outputs = 12
|
||||
|
||||
def __init__(self):
|
||||
super(OnSwipeNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(OnSwipeNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -7,8 +7,8 @@ class AlternateNode(LnxLogicTreeNode):
|
||||
lnx_section = 'flow'
|
||||
lnx_version = 2
|
||||
|
||||
def __init__(self):
|
||||
super(AlternateNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(AlternateNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -10,8 +10,8 @@ class CallFunctionNode(LnxLogicTreeNode):
|
||||
lnx_version = 2
|
||||
min_inputs = 3
|
||||
|
||||
def __init__(self):
|
||||
super(CallFunctionNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CallFunctionNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -21,8 +21,8 @@ class CaseIndexNode(LnxLogicTreeNode):
|
||||
|
||||
num_choices: IntProperty(default=0, min=0)
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CaseIndexNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -11,8 +11,8 @@ class FunctionNode(LnxLogicTreeNode):
|
||||
lnx_version = 2
|
||||
min_outputs = 1
|
||||
|
||||
def __init__(self):
|
||||
super(FunctionNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(FunctionNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -38,8 +38,8 @@ class GateNode(LnxLogicTreeNode):
|
||||
update=remove_extra_inputs)
|
||||
property1: HaxeFloatProperty('property1', name='Tolerance', description='Precision for float compare', default=0.0001)
|
||||
|
||||
def __init__(self):
|
||||
super(GateNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(GateNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -41,8 +41,8 @@ class MergeNode(LnxLogicTreeNode):
|
||||
update=update_exec_mode,
|
||||
)
|
||||
|
||||
def __init__(self):
|
||||
super(MergeNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(MergeNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[str(id(self))] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
@ -8,8 +8,8 @@ class SequenceNode(LnxLogicTreeNode):
|
||||
lnx_version = 2
|
||||
min_outputs = 0
|
||||
|
||||
def __init__(self):
|
||||
super(SequenceNode, self).__init__()
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(SequenceNode, self).__init__(*args, **kwargs)
|
||||
array_nodes[self.get_id_str()] = self
|
||||
|
||||
def lnx_init(self, context):
|
||||
|
Loading…
x
Reference in New Issue
Block a user