From fa818602c439ebb8993016b14334ce566166df46 Mon Sep 17 00:00:00 2001 From: Onek8 Date: Fri, 19 Sep 2025 19:18:05 +0000 Subject: [PATCH] t3du - Labels for finding nodes --- leenkx/blender/lnx/logicnode/input/LN_keyboard.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/leenkx/blender/lnx/logicnode/input/LN_keyboard.py b/leenkx/blender/lnx/logicnode/input/LN_keyboard.py index 9c02db4..21f7467 100644 --- a/leenkx/blender/lnx/logicnode/input/LN_keyboard.py +++ b/leenkx/blender/lnx/logicnode/input/LN_keyboard.py @@ -7,12 +7,19 @@ class KeyboardNode(LnxLogicTreeNode): lnx_section = 'keyboard' lnx_version = 2 + def update(self): + self.label = f'{self.bl_label}: {self.property0} {self.property1}' + + def upd(self, context): + self.label = f'{self.bl_label}: {self.property0} {self.property1}' + + property0: HaxeEnumProperty( 'property0', items = [('started', 'Started', 'The keyboard button starts to be pressed'), ('down', 'Down', 'The keyboard button is pressed'), ('released', 'Released', 'The keyboard button stops being pressed')], - name='', default='down') + name='', default='down', update=upd) property1: HaxeEnumProperty( 'property1', @@ -69,7 +76,7 @@ class KeyboardNode(LnxLogicTreeNode): ('right', 'right', 'right'), ('left', 'left', 'left'), ('down', 'down', 'down'),], - name='', default='space') + name='', default='space', update=upd) def lnx_init(self, context): self.add_output('LnxNodeSocketAction', 'Out')