cleanups
This commit is contained in:
parent
e7db53cca6
commit
413951cb62
|
@ -18,8 +18,8 @@ class GetWorldNode extends LogicNode {
|
||||||
|
|
||||||
return switch (property0) {
|
return switch (property0) {
|
||||||
case "Right": object.transform.world.right();
|
case "Right": object.transform.world.right();
|
||||||
case "Look": return object.transform.world.look();
|
case "Look": object.transform.world.look();
|
||||||
case "Up": return object.transform.world.up();
|
case "Up": object.transform.world.up();
|
||||||
default: null;
|
default: null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,9 @@ class GetMouseMovementNode(ArmLogicTreeNode):
|
||||||
|
|
||||||
def init(self, context):
|
def init(self, context):
|
||||||
super(GetMouseMovementNode, self).init(context)
|
super(GetMouseMovementNode, self).init(context)
|
||||||
self.add_input('NodeSocketFloat', 'X Multiplier' , default_value=1.0)
|
self.add_input('NodeSocketFloat', 'X Multiplier' , default_value=-1.0)
|
||||||
self.add_input('NodeSocketFloat', 'Y Multiplier', default_value=-1.0)
|
self.add_input('NodeSocketFloat', 'Y Multiplier', default_value=-1.0)
|
||||||
self.add_input('NodeSocketFloat', 'Delta Multiplier', default_value=1.0)
|
self.add_input('NodeSocketFloat', 'Delta Multiplier', default_value=-1.0)
|
||||||
self.add_output('NodeSocketFloat', 'X')
|
self.add_output('NodeSocketFloat', 'X')
|
||||||
self.add_output('NodeSocketFloat', 'Y')
|
self.add_output('NodeSocketFloat', 'Y')
|
||||||
self.add_output('NodeSocketInt', 'Delta')
|
self.add_output('NodeSocketInt', 'Delta')
|
||||||
|
|
|
@ -8,7 +8,7 @@ class GetTouchMovementNode(ArmLogicTreeNode):
|
||||||
|
|
||||||
def init(self, context):
|
def init(self, context):
|
||||||
super(GetTouchMovementNode, self).init(context)
|
super(GetTouchMovementNode, self).init(context)
|
||||||
self.add_input('NodeSocketFloat', 'X Multiplier', default_value=1.0)
|
self.add_input('NodeSocketFloat', 'X Multiplier', default_value=-1.0)
|
||||||
self.add_input('NodeSocketFloat', 'Y Multiplier', default_value=-1.0)
|
self.add_input('NodeSocketFloat', 'Y Multiplier', default_value=-1.0)
|
||||||
self.add_output('NodeSocketFloat', 'X')
|
self.add_output('NodeSocketFloat', 'X')
|
||||||
self.add_output('NodeSocketFloat', 'Y')
|
self.add_output('NodeSocketFloat', 'Y')
|
||||||
|
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
||||||
class NotNode(ArmLogicTreeNode):
|
class NotNode(ArmLogicTreeNode):
|
||||||
"""Inverts the plugged-in boolean. If its input is `true` it outputs `false`."""
|
"""Inverts the plugged-in boolean. If its input is `true` it outputs `false`."""
|
||||||
bl_idname = 'LNNotNode'
|
bl_idname = 'LNNotNode'
|
||||||
bl_label = 'Invert Bool'
|
bl_label = 'Invert Boolean'
|
||||||
arm_version = 1
|
arm_version = 1
|
||||||
|
|
||||||
def init(self, context):
|
def init(self, context):
|
|
@ -6,7 +6,7 @@ class SwitchNode(ArmLogicTreeNode):
|
||||||
@output Default: Activated if the input value does not match any case.
|
@output Default: Activated if the input value does not match any case.
|
||||||
"""
|
"""
|
||||||
bl_idname = 'LNSwitchNode'
|
bl_idname = 'LNSwitchNode'
|
||||||
bl_label = 'Switch'
|
bl_label = 'Switch Output'
|
||||||
arm_version = 1
|
arm_version = 1
|
||||||
min_inputs = 2
|
min_inputs = 2
|
||||||
min_outputs = 1
|
min_outputs = 1
|
|
@ -4,7 +4,7 @@ class ToBoolNode(ArmLogicTreeNode):
|
||||||
"""Converts a signal to a boolean value. If the input signal is
|
"""Converts a signal to a boolean value. If the input signal is
|
||||||
active, the boolean is `true`; if not, the boolean is `false`."""
|
active, the boolean is `true`; if not, the boolean is `false`."""
|
||||||
bl_idname = 'LNToBoolNode'
|
bl_idname = 'LNToBoolNode'
|
||||||
bl_label = 'To Bool'
|
bl_label = 'To Boolean'
|
||||||
arm_version = 1
|
arm_version = 1
|
||||||
|
|
||||||
def init(self, context):
|
def init(self, context):
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
||||||
class TimeNode(ArmLogicTreeNode):
|
class TimeNode(ArmLogicTreeNode):
|
||||||
"""Returns the application execution time and the delta time."""
|
"""Returns the application execution time and the delta time."""
|
||||||
bl_idname = 'LNTimeNode'
|
bl_idname = 'LNTimeNode'
|
||||||
bl_label = 'Time'
|
bl_label = 'Get Application Time'
|
||||||
arm_version = 1
|
arm_version = 1
|
||||||
|
|
||||||
def init(self, context):
|
def init(self, context):
|
|
@ -4,9 +4,9 @@ from arm.logicnode.arm_nodes import *
|
||||||
|
|
||||||
|
|
||||||
class GetObjectNode(ArmLogicTreeNode):
|
class GetObjectNode(ArmLogicTreeNode):
|
||||||
"""Search for the given object by its name and returns it."""
|
"""Searches for a object that uses the given name and returns it."""
|
||||||
bl_idname = 'LNGetObjectNode'
|
bl_idname = 'LNGetObjectNode'
|
||||||
bl_label = 'Get Object'
|
bl_label = 'Get Object By Name'
|
||||||
arm_version = 1
|
arm_version = 1
|
||||||
|
|
||||||
property0: PointerProperty(
|
property0: PointerProperty(
|
|
@ -3,7 +3,7 @@ from arm.logicnode.arm_nodes import *
|
||||||
class RemoveActiveSceneNode(ArmLogicTreeNode):
|
class RemoveActiveSceneNode(ArmLogicTreeNode):
|
||||||
"""Removes the active scene."""
|
"""Removes the active scene."""
|
||||||
bl_idname = 'LNRemoveActiveSceneNode'
|
bl_idname = 'LNRemoveActiveSceneNode'
|
||||||
bl_label = 'Remove Active Scene'
|
bl_label = 'Remove Scene Active'
|
||||||
arm_version = 1
|
arm_version = 1
|
||||||
|
|
||||||
def init(self, context):
|
def init(self, context):
|
|
@ -1,7 +1,7 @@
|
||||||
from arm.logicnode.arm_nodes import *
|
from arm.logicnode.arm_nodes import *
|
||||||
|
|
||||||
class GetObjectTraitsNode(ArmLogicTreeNode):
|
class GetObjectTraitsNode(ArmLogicTreeNode):
|
||||||
"""Returns the children of the given object."""
|
"""Returns all traits from the given object."""
|
||||||
bl_idname = 'LNGetObjectTraitsNode'
|
bl_idname = 'LNGetObjectTraitsNode'
|
||||||
bl_label = 'Get Object Traits'
|
bl_label = 'Get Object Traits'
|
||||||
arm_version = 1
|
arm_version = 1
|
||||||
|
@ -11,4 +11,4 @@ class GetObjectTraitsNode(ArmLogicTreeNode):
|
||||||
self.add_input('ArmNodeSocketObject', 'Object')
|
self.add_input('ArmNodeSocketObject', 'Object')
|
||||||
self.add_output('ArmNodeSocketArray', 'Traits')
|
self.add_output('ArmNodeSocketArray', 'Traits')
|
||||||
|
|
||||||
add_node(GetObjectTraitsNode, category=PKG_AS_CATEGORY)
|
add_node(GetObjectTraitsNode, category=PKG_AS_CATEGORY)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from arm.logicnode.arm_nodes import *
|
from arm.logicnode.arm_nodes import *
|
||||||
|
|
||||||
class GetTraitNameNode(ArmLogicTreeNode):
|
class GetTraitNameNode(ArmLogicTreeNode):
|
||||||
"""Getting the name Trait."""
|
"""Returns the name and the class type of the given trait."""
|
||||||
bl_idname = 'LNGetTraitNameNode'
|
bl_idname = 'LNGetTraitNameNode'
|
||||||
bl_label = 'Get Trait Name'
|
bl_label = 'Get Trait Name'
|
||||||
arm_version = 1
|
arm_version = 1
|
||||||
|
@ -12,4 +12,4 @@ class GetTraitNameNode(ArmLogicTreeNode):
|
||||||
self.add_output('NodeSocketString', 'Name')
|
self.add_output('NodeSocketString', 'Name')
|
||||||
self.add_output('NodeSocketString', 'Class Type')
|
self.add_output('NodeSocketString', 'Class Type')
|
||||||
|
|
||||||
add_node(GetTraitNameNode, category=PKG_AS_CATEGORY)
|
add_node(GetTraitNameNode, category=PKG_AS_CATEGORY)
|
||||||
|
|
Loading…
Reference in a new issue