Skip to content

Indicate nodes not supported by current event + node folders#1156

Open
Lwmte wants to merge 15 commits into
developfrom
unsupported_nodes
Open

Indicate nodes not supported by current event + node folders#1156
Lwmte wants to merge 15 commits into
developfrom
unsupported_nodes

Conversation

@Lwmte
Copy link
Copy Markdown
Collaborator

@Lwmte Lwmte commented Mar 15, 2026

Adds an indication that a node is not supported by the current event type:

Clipboard-2

To define whether node is supported or not supported by a particular event type, define new metadata entries:

-- !Unsupported "OnLoop" "OnLevelStart"
-- !Supported "OnVolumeEnter"

Additionally, adds support for folders in the node list.

@Lwmte Lwmte added this to the Version 2.0 milestone Mar 15, 2026
@Lwmte Lwmte added enhancement A task which adds something new or improves on existing features. Tomb Editor Nodes Task specific to TEN Nodes. labels Mar 15, 2026
@Lwmte Lwmte requested review from Nickelony and TrainWrack March 17, 2026 08:01
Nickelony
Nickelony previously approved these changes Mar 22, 2026
Copy link
Copy Markdown
Collaborator

@Nickelony Nickelony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I'll poke Copilot as well to review just in case.

@Nickelony Nickelony requested a review from Copilot March 22, 2026 21:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds metadata-driven support/unsupported event type tagging for visual scripting nodes, and surfaces a UI warning when a node is used under an incompatible event type.

Changes:

  • Parse new !Supported / !Unsupported metadata tags into NodeFunction definitions.
  • Add support checks (IsUnsupported) to NodeFunction and propagate current event type into the node editor UI.
  • Document the new metadata tags in the TEN node catalog Readme.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
TombLib/TombLib/Utils/ScriptingUtils.cs Parses !Supported / !Unsupported tags into event type lists.
TombLib/TombLib/LevelData/VisualScripting/TriggerNodeEnumerations.cs Stores per-node supported/unsupported event lists and exposes IsUnsupported.
TombLib/TombLib/Catalogs/TEN Node Catalogs/Readme.md Documents the new metadata tag syntax and available event types.
TombLib/TombLib.Forms/Controls/VisualScripting/NodeEditor.cs Displays a warning indicator/message when a node is incompatible with the current event type.
TombEditor/Forms/FormEventSetEditor.cs Propagates event type changes into TriggerManager.
TombEditor/Controls/TriggerManager.cs Exposes EventType and forwards it to the embedded node editor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread TombLib/TombLib.Forms/Controls/VisualScripting/NodeEditor.cs Outdated
Comment thread TombLib/TombLib/Utils/ScriptingUtils.cs Outdated
Comment thread TombLib/TombLib/Catalogs/TEN Node Catalogs/Readme.md Outdated
Comment thread TombLib/TombLib/Utils/ScriptingUtils.cs Outdated
@Lwmte Lwmte changed the title Indicate nodes not supported by current event Indicate nodes not supported by current event + node folders Apr 11, 2026
Copy link
Copy Markdown
Collaborator

@TrainWrack TrainWrack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested multi level folders. They saved and reloaded ok.

Tested nodes event support. Worked as described.

Image

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 15 changed files in this pull request and generated 4 comments.

Files not reviewed (1)
  • TombEditor/Forms/FormEventSetEditor.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread TombEditor/Forms/FormEventSetEditor.cs Outdated
Comment thread TombEditor/Forms/FormEventSetEditor.cs Outdated
Comment thread DarkUI/DarkUI/Controls/DarkTreeView.cs
Comment thread TombLib/TombLib/LevelData/LevelSettings.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A task which adds something new or improves on existing features. Tomb Editor Nodes Task specific to TEN Nodes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants