2017-03-21 03:06:38 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-29 18:38:17 +02:00
|
|
|
class OnSurfaceNode(ArmLogicTreeNode):
|
|
|
|
"""Deprecated. Is recommended to use Surface node instead."""
|
|
|
|
bl_idname = 'LNOnSurfaceNode'
|
|
|
|
bl_label = 'On Surface'
|
|
|
|
bl_description = "Please use the \"Surface\" node instead"
|
|
|
|
bl_icon = 'ERROR'
|
|
|
|
arm_version = 2
|
2018-12-18 23:48:38 +01:00
|
|
|
property0: EnumProperty(
|
2017-04-10 21:17:17 +02:00
|
|
|
items = [('Touched', 'Touched', 'Touched'),
|
2017-04-03 22:29:46 +02:00
|
|
|
('Started', 'Started', 'Started'),
|
|
|
|
('Released', 'Released', 'Released'),
|
|
|
|
('Moved', 'Moved', 'Moved')],
|
2017-04-10 21:17:17 +02:00
|
|
|
name='', default='Touched')
|
2020-09-08 17:03:24 +02:00
|
|
|
|
2017-03-21 03:06:38 +01:00
|
|
|
def init(self, context):
|
2020-09-29 18:38:17 +02:00
|
|
|
super(OnSurfaceNode, self).init(context)
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
2017-04-03 22:29:46 +02:00
|
|
|
|
|
|
|
def draw_buttons(self, context, layout):
|
|
|
|
layout.prop(self, 'property0')
|
2017-03-21 03:06:38 +01:00
|
|
|
|
2020-09-29 18:38:17 +02:00
|
|
|
add_node(OnSurfaceNode, category=PKG_AS_CATEGORY, section='surface', is_obsolete=True)
|