from lnx.logicnode.lnx_nodes import * class CaseStringNode(LnxLogicTreeNode): """Changes the given string case.""" bl_idname = 'LNCaseStringNode' bl_label = 'String Case' lnx_version = 1 property0: HaxeEnumProperty( 'property0', items = [('Upper Case', 'Upper Case', 'Upper Case'), ('Lower Case', 'Lower Case', 'Lower Case'), ], name='', default='Upper Case') def lnx_init(self, context): self.add_input('LnxStringSocket', 'String In') self.add_output('LnxStringSocket', 'String Out') def draw_buttons(self, context, layout): layout.prop(self, 'property0')