20 lines
547 B
Python
20 lines
547 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class OnEventNode(ArmLogicTreeNode):
|
|
"""Activates the output when the given event is received.
|
|
|
|
@seeNode Send Event to Object
|
|
@seeNode Send Event"""
|
|
bl_idname = 'LNOnEventNode'
|
|
bl_label = 'On Event'
|
|
arm_version = 1
|
|
arm_section = 'custom'
|
|
|
|
property0: HaxeStringProperty('property0', name='', default='')
|
|
|
|
def arm_init(self, context):
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
|
|
|
def draw_buttons(self, context, layout):
|
|
layout.prop(self, 'property0')
|