Reorganized node categories
This commit is contained in:
+2
-2
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user