Files
jammyfu 3865813a7c Refactor node mappings to include PaintingCoder namespace and enhance workflow fixer UI
- Updated NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS across multiple modules to prepend 'PaintingCoder::' to node names for better organization.
- Enhanced the workflow fixer HTML with a new layout, language toggle feature, and improved styling for better user experience.
- Added functionality for selecting fix types and path conversion options in the workflow fixer tool.
- Improved error handling and success messages in the workflow fixer script.
2025-01-21 17:48:55 +08:00

31 lines
719 B
Python

# -*- coding: utf-8 -*-
# Filename: multiline_text_input.py
# Developer: jammyfu
# Category: 🎨Painting👓Coder/📝Text
class MultilineTextInput:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"text": ("STRING", {"multiline": True}),
},
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("text",)
FUNCTION = "get_text"
CATEGORY = "🎨Painting👓Coder/📝Text"
def get_text(self, text):
return (text,)
# 更新节点映射
NODE_CLASS_MAPPINGS = {
"PaintingCoder::MultilineTextInput": MultilineTextInput,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"PaintingCoder::MultilineTextInput": "Multiline Text Input 📝",
}