Reorganized node categories

This commit is contained in:
exectails
2024-11-26 02:59:49 +01:00
parent e8c8ad5f61
commit a5e4a57029
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ from .nodes.converter import ETATOI, ETITOA
from .nodes.formatter import ETTextFormatter2Node, ETTextFormatter5Node, ETTextFormatter10Node
from .nodes.replacer import ETReplaceTextNode
et_nodes = {
et_nodes = [
("Split Text", ETSplitTextNode),
("Join Text", ETJoinTextNode),
@@ -15,7 +15,7 @@ et_nodes = {
("Text Formatter (10 Arguments)", ETTextFormatter10Node),
("Text Replacer", ETReplaceTextNode),
}
]
NODE_CLASS_MAPPINGS = {cls.__name__: cls for display_name, cls in et_nodes}
NODE_DISPLAY_NAME_MAPPINGS = {cls.__name__: display_name for display_name, cls in et_nodes}
+2 -2
View File
@@ -16,7 +16,7 @@ class ETSplitTextNode:
RETURN_NAMES = ("text",)
OUTPUT_IS_LIST = (True,)
CATEGORY = "exectails"
CATEGORY = "exectails/Strings"
FUNCTION = "process"
def process(self, text: str, split_by: str) -> tuple:
@@ -44,7 +44,7 @@ class ETJoinTextNode:
RETURN_NAMES = ("text",)
INPUT_IS_LIST = True
CATEGORY = "exectails"
CATEGORY = "exectails/Strings"
FUNCTION = "process"
def process(self, text: list, join_with: str, prefix: str, suffix: str) -> tuple:
+2 -2
View File
@@ -14,7 +14,7 @@ class ETATOI:
RETURN_TYPES = ("INT",)
RETURN_NAMES = ("integer",)
CATEGORY = "exectails"
CATEGORY = "exectails/Strings"
FUNCTION = "process"
def process(self, text: str) -> tuple:
@@ -37,7 +37,7 @@ class ETITOA:
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("text",)
CATEGORY = "exectails"
CATEGORY = "exectails/Strings"
FUNCTION = "process"
def process(self, integer: int) -> tuple:
+1 -1
View File
@@ -7,7 +7,7 @@ class ETTextFormatterNode:
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("text",)
CATEGORY = "exectails"
CATEGORY = "exectails/Strings"
FUNCTION = "process"
def process(self, format, arg0="", arg1="", arg2="", arg3="", arg4="", arg5="", arg6="", arg7="", arg8="", arg9="") -> tuple:
+1 -1
View File
@@ -20,7 +20,7 @@ class ETReplaceTextNode:
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("text",)
CATEGORY = "exectails"
CATEGORY = "exectails/Strings"
FUNCTION = "process"
def process(self, text: str, replace: str, replacement: str, mode: str) -> tuple: