Skip to content

Keep last selected Class visible in Create New Node window #12736

Open
@tumblewed

Description

@tumblewed

Describe the project you are working on

A game using 2D nodes

Describe the problem or limitation you are having in your project

The 'Create New Node' window is very helpful for finding different class types when looking to see what nodes are available in the Godot node arsenal. Sometimes, though, I begin by looking for a node class by name but don't find what I need; for example, I know I want to find what's available in Node2D, so I look up Node2D. My search filter, though, makes everything except Node2D go away. So, I clear my search. As a result, the cursor is reset to highlight the top most Node class, which is the Node class itself.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

When searching / filtering for a node class by name, the appropriate class comes up. When highlighting a class, followed by clearing the search filter, the same class should still be highlighted in the window (and all of the necessary dropdowns from that class to the topmost class should be expanded to allow the user to see the selected class properly).

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Search a node class, click it, and when clearing the search let it still be highlighted (along with expanding the dropdown to show all branching child classes, if the class has any).

If this enhancement will not be used often, can it be worked around with a few lines of script?

It's a minor inconvenience if anything but there is no code workaround that I know of.

Is there a reason why this should be core and not an add-on in the asset library?

It is a core feature. It may be possible to make this an add-on to the asset library but I do not believe the necessary signals / code are exposed in editor.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions