This commit is contained in:
knowledgenude 2020-11-17 14:46:14 -03:00
parent 9a29adb176
commit 4769b084d2
14 changed files with 55 additions and 47 deletions

View file

@ -8,9 +8,9 @@ class KeyboardNode(ArmLogicTreeNode):
arm_version = 1
property0: EnumProperty(
items = [('Started', 'Started', 'Started'),
('Down', 'Down', 'Down'),
('Released', 'Released', 'Released')],
items = [('Started', 'Started', 'The keyboard button starts to be pressed'),
('Down', 'Down', 'The keyboard button is pressed'),
('Released', 'Released', 'The keyboard button stops being pressed')],
name='', default='Down')
property1: EnumProperty(

View file

@ -8,9 +8,9 @@ class MouseNode(ArmLogicTreeNode):
arm_version = 1
property0: EnumProperty(
items = [('Started', 'Started', 'Started'),
('Down', 'Down', 'Down'),
('Released', 'Released', 'Released'),
items = [('Started', 'Started', 'The mouse button startes to be pressed'),
('Down', 'Down', 'The mouse button is pressed'),
('Released', 'Released', 'The mouse button stops being pressed'),
('Moved', 'Moved', 'Moved')],
name='', default='Down')
property1: EnumProperty(

View file

@ -6,7 +6,7 @@ class OnTapScreen(ArmLogicTreeNode):
@input Duration: touching time
@input Interval: interval between taps
@input Repeat: repetitions required
@input Repeat: repetitions amount to validate
@output Done: the sequence success
@output Fail: the the sequence failure

View file

@ -6,17 +6,18 @@ class SetCursorStateNode(ArmLogicTreeNode):
@seeNode Get Cursor State
@option Hide Locked: hide and lock or unhide and unlock the mouse cursor.
@output Hide: hide/unhide the mouse cursor.
@output Lock: lock/unlock the mouse cursor."""
@option Hide: hide/unhide the mouse cursor.
@option Lock: lock/unlock the mouse cursor.
"""
bl_idname = 'LNSetCursorStateNode'
bl_label = 'Set Cursor State'
arm_section = 'mouse'
arm_version = 1
property0: EnumProperty(
items = [('Hide Locked', 'Hide Locked', 'Hide Locked'),
('Hide', 'Hide', 'Hide'),
('Lock', 'Lock', 'Lock'),
items = [('Hide Locked', 'Hide Locked', 'The mouse cursor is hidden and locked'),
('Hide', 'Hide', 'The mouse cursor is hidden'),
('Lock', 'Lock', 'The mouse cursor is locked'),
],
name='', default='Hide Locked')

View file

@ -8,9 +8,9 @@ class SurfaceNode(ArmLogicTreeNode):
arm_version = 1
property0: EnumProperty(
items = [('Started', 'Started', 'Started'),
('Down', 'Down', 'Down'),
('Released', 'Released', 'Released'),
items = [('Started', 'Started', 'The screen surface starts to be touched'),
('Down', 'Down', 'The screen surface is touched'),
('Released', 'Released', 'The screen surface stops being touched'),
('Moved', 'Moved', 'Moved')],
name='', default='Down')

View file

@ -8,9 +8,9 @@ class VirtualButtonNode(ArmLogicTreeNode):
arm_version = 1
property0: EnumProperty(
items = [('Started', 'Started', 'Started'),
('Down', 'Down', 'Down'),
('Released', 'Released', 'Released')],
items = [('Started', 'Started', 'The virtual button starts to be pressed'),
('Down', 'Down', 'The virtual button is pressed'),
('Released', 'Released', 'The virtual button stops being pressed')],
name='', default='Down')
property1: StringProperty(name='', default='button')

View file

@ -17,9 +17,9 @@ class OnContactNode(ArmLogicTreeNode):
arm_version = 1
property0: EnumProperty(
items = [('Begin', 'Begin', 'Begin'),
('End', 'End', 'End'),
('Overlap', 'Overlap', 'Overlap')],
items = [('Begin', 'Begin', 'The contact between the rigid bodies starts'),
('Overlap', 'Overlap', 'The contact between the rigid bodies is happening'),
('End', 'End', 'The contact between the rigid bodies ends')],
name='', default='Begin')
def init(self, context):

View file

@ -8,9 +8,9 @@ class OnContactArrayNode(ArmLogicTreeNode):
arm_version = 1
property0: EnumProperty(
items = [('Begin', 'Begin', 'Begin'),
('End', 'End', 'End'),
('Overlap', 'Overlap', 'Overlap')],
items = [('Begin', 'Begin', 'The contact between the rigid bodies starts'),
('Overlap', 'Overlap', 'The contact between the rigid bodies is happening'),
('End', 'End', 'The contact between the rigid bodies ends')],
name='', default='Begin')
def init(self, context):

View file

@ -1,15 +1,20 @@
from arm.logicnode.arm_nodes import *
class OnVolumeTriggerNode(ArmLogicTreeNode):
"""Activates the output when the given rigid body enter, overlap or leave the given trigger."""
"""Activates the output when the given rigid body enter, overlap or leave the given trigger.
@input RB: this object is taken as the entering object
@input Trigger: this object is used as the volume trigger
"""
bl_idname = 'LNOnVolumeTriggerNode'
bl_label = 'On Volume Trigger'
arm_version = 1
property0: EnumProperty(
items = [('Enter', 'Enter', 'Enter'),
('Leave', 'Leave', 'Leave'),
('Overlap', 'Overlap', 'Overlap')],
name='', default='Enter')
items = [('Begin', 'Begin', 'The contact between the rigid bodies starts'),
('Overlap', 'Overlap', 'The contact between the rigid bodies is happening'),
('End', 'End', 'The contact between the rigid bodies ends')],
name='', default='Begin')
def init(self, context):
super(OnVolumeTriggerNode, self).init(context)

View file

@ -1,16 +1,17 @@
from arm.logicnode.arm_nodes import *
class SetActivationStateNode(ArmLogicTreeNode):
"""Sets the activation state of the given rigid body."""
"""Sets the rigid body simulation state of the given object."""
bl_idname = 'LNSetActivationStateNode'
bl_label = 'Set RB Activation State'
bl_icon = 'NONE'
arm_version = 1
property0: EnumProperty(
items = [('Inactive', 'Inactive', 'Inactive'),
('Active', 'Active', 'Active'),
('Always Active', 'Always Active', 'Always Active'),
('Always Inactive', 'Always Inactive', 'Always Inactive'),
items = [('Inactive', 'Inactive', 'The rigid body simulation is desactivated'),
('Active', 'Active', 'The rigid body simulation is activated'),
('Always Active', 'Always Active', 'The rigid body simulation is never desactivated'),
('Always Inactive', 'Always Inactive', 'The rigid body simulation is never activated'),
],
name='', default='Inactive')

View file

@ -4,18 +4,19 @@ class VolumeTriggerNode(ArmLogicTreeNode):
"""Returns `true` if the given rigid body enters, overlaps or leaves the
given volume trigger.
@input Object: this object is taken as the entering object
@input Volume: this object is used as the volume"""
@input RB: this object is taken as the entering object
@input Trigger: this object is used as the volume trigger
"""
bl_idname = 'LNVolumeTriggerNode'
bl_label = 'Volume Trigger'
arm_section = 'misc'
arm_version = 1
property0: EnumProperty(
items = [('Enter', 'Enter', 'Enter'),
('Leave', 'Leave', 'Leave'),
('Overlap', 'Overlap', 'Overlap')],
name='', default='Enter')
items = [('Begin', 'Begin', 'The contact between the rigid bodies starts'),
('Overlap', 'Overlap', 'The contact between the rigid bodies is happening'),
('End', 'End', 'The contact between the rigid bodies ends')],
name='', default='Begin')
def init(self, context):
super(VolumeTriggerNode, self).init(context)

View file

@ -8,9 +8,9 @@ class GetWorldNode(ArmLogicTreeNode):
arm_version = 1
property0: EnumProperty(
items = [('Right', 'Right', 'Right'),
('Look', 'Look', 'Look'),
('Up', 'Up', 'Up')],
items = [('Right', 'Right', 'The object right (X) direction'),
('Look', 'Look', 'The object look (Y) direction'),
('Up', 'Up', 'The object up (Z) direction')],
name='', default='Look')
def init(self, context):

View file

@ -1,7 +1,7 @@
from arm.logicnode.arm_nodes import *
class LookAtNode(ArmLogicTreeNode):
"""TO DO."""
"""Converts the two given coordinates to a quaternion rotation."""
bl_idname = 'LNLookAtNode'
bl_label = 'Look At'
arm_section = 'rotation'

View file

@ -32,9 +32,9 @@ class VectorFromTransformNode(ArmLogicTreeNode):
layout.prop(self, 'property0')
property0: EnumProperty(
items = [('Up', 'Up', 'Up'),
('Right', 'Right', 'Right'),
('Look', 'Look', 'Look'),
items = [('Right', 'Right', 'The transform right (X) direction'),
('Look', 'Look', 'The transform look (Y) direction'),
('Up', 'Up', 'The transform up (Z) direction'),
('Quaternion', 'Quaternion', 'Quaternion')],
name='', default='Look',
update=on_property_update)