godotengine / godot-proposals

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

Add an option to display frame index / number when importing frames to SpriteFrames #6535

Open MrTanoshii opened 1 year ago

MrTanoshii commented 1 year ago

Describe the project you are working on

A 2D platformer

Describe the problem or limitation you are having in your project

When an image has many frames, the following things have to be done:

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

Add a checkbox option to display or hide frames indices

This helps with larger spritesheets

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

Screenshot 2023-03-19 162429

Indices could be numbered 1-xx going row by row, column by column

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

N\A

Reason: Too new to Godot to know better

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

This is a nice small QoL improvement that should be part of the core 2d engine

KoBeWi commented 1 year ago

Duplicate of #5679

kleonc commented 1 year ago

Duplicate of #5679

@KoBeWi AFAICT this is not a duplicate.

5679 is about showing and customizing the order in which the selected frames will be added to the edited SpriteFrames.

This proposal is about showing the frame index (within the whole frame grid) for all frames, whether they're selected or not. Just so e.g. when you have nothing selected and you want to pick specific frames by index then you wouldn't need to manually count rows/columns to find what you're looking for.

Hence reopening.


Screenshot 2023-03-19 162429

Instead of showing the index for all the frames (toggleable with a checkbox) I think it would be enough to show some info (like row, column, index) only for the hovered frame, e.g. at the bottom of the preview.