Files

69 lines
2.8 KiB
Python

# IMGNR Utils / __init__.py
# Import constants
from . import IMGNR_constants as C
# Import Catch Edit Text
from .catch_edit_text import NODE_CLASS_MAPPINGS as catch_edit_mappings, NODE_DISPLAY_NAME_MAPPINGS as catch_edit_display_mappings
# Import Preview Image
from .preview_image_base64 import NODE_CLASS_MAPPINGS as preview_b64_mappings, NODE_DISPLAY_NAME_MAPPINGS as preview_b64_display_mappings
# Import umhanft nodes
from .umhanft_logic import NODE_CLASS_MAPPINGS as umhanft_mappings, NODE_DISPLAY_NAME_MAPPINGS as umhanft_display_mappings
# Import DIY Nodes
from .diy_nodes import NODE_CLASS_MAPPINGS as diynodes_mappings, NODE_DISPLAY_NAME_MAPPINGS as diynodes_display_mappings
# Import DIY Reconstructor
from .diy_reconstructor import NODE_CLASS_MAPPINGS as diyreconstructor_mappings, NODE_DISPLAY_NAME_MAPPINGS as diyreconstructor_display_mappings
# Import ABBA Switch
from .abba_switch import NODE_CLASS_MAPPINGS as abbaswitch_mappings, NODE_DISPLAY_NAME_MAPPINGS as abbaswitch_display_mappings
# Import Loaders
### DEV ### from .IMGNR_loaders import NODE_CLASS_MAPPINGS as loaders_mappings, NODE_DISPLAY_NAME_MAPPINGS as loaders_display_mappings
# Location of Javascript files
WEB_DIRECTORY = "./js"
# --- Structure for Merging Mappings ---
ALL_NODE_CLASS_MAPPINGS = {}
ALL_NODE_DISPLAY_NAME_MAPPINGS = {}
# Update with mappings from catch_edit_text
ALL_NODE_CLASS_MAPPINGS.update(catch_edit_mappings)
ALL_NODE_DISPLAY_NAME_MAPPINGS.update(catch_edit_display_mappings)
# Update with mappings from preview_image_base64
ALL_NODE_CLASS_MAPPINGS.update(preview_b64_mappings)
ALL_NODE_DISPLAY_NAME_MAPPINGS.update(preview_b64_display_mappings)
# Update with mappings from umhanft_logic
ALL_NODE_CLASS_MAPPINGS.update(umhanft_mappings)
ALL_NODE_DISPLAY_NAME_MAPPINGS.update(umhanft_display_mappings)
# Update with mappings from diy_nodes
ALL_NODE_CLASS_MAPPINGS.update(diynodes_mappings)
ALL_NODE_DISPLAY_NAME_MAPPINGS.update(diynodes_display_mappings)
# Update with mappings from diy_reconstructor
ALL_NODE_CLASS_MAPPINGS.update(diyreconstructor_mappings)
ALL_NODE_DISPLAY_NAME_MAPPINGS.update(diyreconstructor_display_mappings)
# Update with mappings from abba_switch
ALL_NODE_CLASS_MAPPINGS.update(abbaswitch_mappings)
ALL_NODE_DISPLAY_NAME_MAPPINGS.update(abbaswitch_display_mappings)
# Update with mappings from IMGNR_loaders
### DEV ### ALL_NODE_CLASS_MAPPINGS.update(loaders_mappings)
### DEV ### ALL_NODE_DISPLAY_NAME_MAPPINGS.update(loaders_display_mappings)
__all__ = ['ALL_NODE_CLASS_MAPPINGS', 'ALL_NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']
# Use the final merged dict names
NODE_CLASS_MAPPINGS = ALL_NODE_CLASS_MAPPINGS
NODE_DISPLAY_NAME_MAPPINGS = ALL_NODE_DISPLAY_NAME_MAPPINGS
# Print statement
print(f"{C.LOG_PREFIX} Loaded: Split Screen, CatchEditText, PreviewImage, UMightHaveANodeForThat, DIY Nodes, ABBA Switch")