from lnx.logicnode.lnx_nodes import *


@deprecated('Surface')
class OnSurfaceNode(LnxLogicTreeNode):
    """Deprecated. Is recommended to use the 'Surface' node instead."""
    bl_idname = 'LNOnSurfaceNode'
    bl_label = 'On Surface'
    bl_description = "Please use the \"Surface\" node instead"
    lnx_category = 'Input'
    lnx_section = 'surface'
    lnx_version = 2

    property0: HaxeEnumProperty(
        'property0',
        items = [('Touched', 'Touched', 'Touched'),
                 ('Started', 'Started', 'Started'),
                 ('Released', 'Released', 'Released'),
                 ('Moved', 'Moved', 'Moved')],
        name='', default='Touched')

    def lnx_init(self, context):
        self.add_output('LnxNodeSocketAction', 'Out')

    def draw_buttons(self, context, layout):
        layout.prop(self, 'property0')