simvx.editor.panels.scene_tree.type_registry¶
Scene Tree type registry: icons, categories, descriptions, inheritance chain.
Module Contents¶
Functions¶
Register a custom node type so it appears in the Add Node dialog. |
|
Return True if node is an instance of a user-defined class, not an engine builtin. |
Data¶
API¶
- simvx.editor.panels.scene_tree.type_registry.__all__¶
[‘register_addable_type’, ‘is_composed_node’, ‘_NODE_ICONS’, ‘_NODE_CATEGORIES’, ‘_DEFAULT_EXPANDED’…
- simvx.editor.panels.scene_tree.type_registry.register_addable_type(name: str, cls: type, icon: str = '⊕', category: str = 'Custom')[source]¶
Register a custom node type so it appears in the Add Node dialog.
Args: name: Display name in the dialog (e.g.
"MyCustomNode"). cls: The node class to instantiate when selected. icon: Optional text icon (default: circled plus). category: Category to place the type under (default:"Custom").
- simvx.editor.panels.scene_tree.type_registry.is_composed_node(node: simvx.core.Node) bool[source]¶
Return True if node is an instance of a user-defined class, not an engine builtin.
A composed node is one whose concrete class is defined outside the
simvx.*namespace – i.e. it comes from user/project code rather than the engine. These nodes can be “entered” in the scene tree to inspect their children.