godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.1k stars 69 forks source link

Allow searching by Node type in Group Editor dialog #10226

Open TotallyJustMagic opened 1 month ago

TotallyJustMagic commented 1 month ago

Describe the project you are working on

A 2D pixel art game with a pixel perfect setup and font switching

Describe the problem or limitation you are having in your project

I made it so UI elements I added into a group will get their font replaced by an HD one when "pixelated_font" is enabled. The issue is that there are too many nodes already that I want to have this group in. image

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

Adding a way to search for Node Classes in "Group Editor" Filter nodes bar.

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

Add an option or make the "Filter Node" react to Node Class rather than Node Name ,(yes ik Label2D doesn't exist but it's an example) image

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

It would be very annoying to make a tool or an extension to do this with, plus "Filter Nodes" prompt is rather misleading

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

It would fasten productivity to do with Grouping specific classes of nodes and make the input prompt less missleading.

Calinou commented 1 month ago

This should use the same type:/t: syntax as used in the scene tree dock for consistency. For example, t:Node2D.

Supporting groups (group:/g:) might also be possible, but I'm not sure if this information is exposed in this dialog.

TotallyJustMagic commented 1 month ago

I defo agree with that, tbh replacing the default option would be unnecessary but adding an extra button or way to search for types is more useful