godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.16k stars 97 forks source link

Prevent parent node from expanding when selecting child node #1562

Open ron0studios opened 4 years ago

ron0studios commented 4 years ago

Describe the project you are working on: I am working on a 2d platformer, in which I use StaticBody2D nodes as colliders as such: image The reason I did it like this, is because my previous engine was gamemaker studio 2 and that was how we did it in that engine

Describe the problem or limitation you are having in your project: every time I select one of the nodes in order to add more colliders the parent Node2D which I used for grouping, expands and opens up its hundred's of child nodes, so when I am finished, I would have to scroll up for quite a while before collapsing the node.

Describe the feature / enhancement and how it helps to overcome the problem or limitation: I understand there is a feature that allows you to lock a node, preventing it from expanding, but it also prevents me from selecting the child nodes themselves. I am proposing an option for the parent node to be "unexpandable" perhaps in the right click menu of the node.

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams: image

If this enhancement will not be used often, can it be worked around with a few lines of script?: I don't think this can be achieved using scripts or plugins, I also believe that it won't be used quite often, so having it hidden away would be fine

Is there a reason why this should be core and not an add-on in the asset library?: Implementing this in the asset library would be difficult, and it will make it much easier for new arrivals from the gamemaker studio 2 engine to adjust to Godot.

dalexeev commented 4 years ago

The reason I did it like this, is because my previous engine was gamemaker studio 2 and that was how we did it in that engine

You can add collision shapes to the tiles you want in the TileSet editor.