From e0e3612588e921eb0e3e1b6377668306ba06e2fe Mon Sep 17 00:00:00 2001 From: bymyself Date: Sat, 11 Oct 2025 13:07:10 -0700 Subject: [PATCH] add accidentally deleted node back --- tools/devtools/nodes/inputs.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tools/devtools/nodes/inputs.py b/tools/devtools/nodes/inputs.py index 0f65b8ca4c..ac31056cad 100644 --- a/tools/devtools/nodes/inputs.py +++ b/tools/devtools/nodes/inputs.py @@ -280,6 +280,29 @@ class NodeWithValidation: return tuple() +class NodeWithV2ComboInput: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "combo_input": ( + "COMBO", + {"options": ["A", "B"]}, + ), + } + } + + RETURN_TYPES = ("COMBO",) + FUNCTION = "node_with_v2_combo_input" + CATEGORY = "DevTools" + DESCRIPTION = ( + "A node that outputs a combo type that adheres to the v2 combo input spec" + ) + + def node_with_v2_combo_input(self, combo_input: str): + return (combo_input,) + + NODE_CLASS_MAPPINGS = { "DevToolsLongComboDropdown": LongComboDropdown, "DevToolsNodeWithOptionalInput": NodeWithOptionalInput, @@ -294,6 +317,7 @@ NODE_CLASS_MAPPINGS = { "DevToolsSimpleSlider": SimpleSlider, "DevToolsNodeWithSeedInput": NodeWithSeedInput, "DevToolsNodeWithValidation": NodeWithValidation, + "DevToolsNodeWithV2ComboInput": NodeWithV2ComboInput, } NODE_DISPLAY_NAME_MAPPINGS = { @@ -310,6 +334,7 @@ NODE_DISPLAY_NAME_MAPPINGS = { "DevToolsSimpleSlider": "Simple Slider", "DevToolsNodeWithSeedInput": "Node With Seed Input", "DevToolsNodeWithValidation": "Node With Validation", + "DevToolsNodeWithV2ComboInput": "Node With V2 Combo Input", } __all__ = [ @@ -326,6 +351,7 @@ __all__ = [ "SimpleSlider", "NodeWithSeedInput", "NodeWithValidation", + "NodeWithV2ComboInput", "NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", ]