add property0 between

This commit is contained in:
t3du 2021-10-19 21:18:02 -03:00 committed by GitHub
parent 4fe8f683dc
commit 826dbd786d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,8 @@ def remove_extra_inputs(self, context):
if not any(p == self.property0 for p in ['Or', 'And']): if not any(p == self.property0 for p in ['Or', 'And']):
while len(self.inputs) > self.min_inputs: while len(self.inputs) > self.min_inputs:
self.inputs.remove(self.inputs[-1]) self.inputs.remove(self.inputs[-1])
if self.property0 == 'Between':
self.add_input('ArmDynamicSocket', 'Input 3')
class GateNode(ArmLogicTreeNode): class GateNode(ArmLogicTreeNode):
"""Logic nodes way to do "if" statements. When activated, it """Logic nodes way to do "if" statements. When activated, it
@ -28,6 +30,7 @@ class GateNode(ArmLogicTreeNode):
('Greater Equal', 'Greater Equal', 'Greater Equal'), ('Greater Equal', 'Greater Equal', 'Greater Equal'),
('Less', 'Less', 'Less'), ('Less', 'Less', 'Less'),
('Less Equal', 'Less Equal', 'Less Equal'), ('Less Equal', 'Less Equal', 'Less Equal'),
('Between', 'Between', 'Input 1 Between Input 2 and Input 3 inclusive'),
('Or', 'Or', 'Or'), ('Or', 'Or', 'Or'),
('And', 'And', 'And')], ('And', 'And', 'And')],
name='', default='Equal', name='', default='Equal',