forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
21
leenkx/blender/lnx/logicnode/string/LN_string_case.py
Normal file
21
leenkx/blender/lnx/logicnode/string/LN_string_case.py
Normal file
@ -0,0 +1,21 @@
|
||||
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')
|
Reference in New Issue
Block a user