godotengine / godot-proposals

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

Highlight Points when editing ConvexPolygonShape2D #9424

Open CubeOfCheese opened 3 months ago

CubeOfCheese commented 3 months ago

Describe the project you are working on

I'm recreating the chrome no-internet dino game

Describe the problem or limitation you are having in your project

It is hard to tell which point I'm editing. They are just numbered, but it isn't clear which point is number one. I have to either try editing a point and see which it affects, or try to correspond the x,y coordinates to the points on the screen. image image

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

I would like to click on a point in the Inspector, or click in the x/y coordinate text box and see the point in the 2D view highlighted. The point should have a red circle drawn over it. This will make it very clear which point in the inspector corresponds to which point in the 2D view.

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

For example, if point 0 is currently selected, it will show like this image image

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

I am new to Godot, so I have no idea.

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

The quality of life improvement here would be pretty strong, so as long as it is not too difficult to implement, I believe there is enough general benefit to warrant including it for everyone.

smix8 commented 3 months ago

Meanwhile you can edit with a Polygon2D when you are done editing use inspector "Copy Value" to copy over the polygon property to the ConvexPolygonShape2D points property.