Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add buttons to reorder inspector array items without dragging #7495

Closed
jmb462 opened this issue Aug 14, 2023 · 0 comments · Fixed by godotengine/godot#80617
Closed

Add buttons to reorder inspector array items without dragging #7495

jmb462 opened this issue Aug 14, 2023 · 0 comments · Fixed by godotengine/godot#80617

Comments

@jmb462
Copy link

jmb462 commented Aug 14, 2023

Describe the project you are working on

A 3D game editor using OptionButtons.

Describe the problem or limitation you are having in your project

As @markopolojorgensen explains in issue godotengine/godot#80524, array items in editor inspector can be reordered by dragging with mouse. But if the number of item is above 5, a pagination system is used. As a consequence, there is no way to move an item from a page to another via editor.

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

I propose to add two buttons in order to move an item one step up or down.

If down button is used on an item at the bottom of a page, it will send it at the top of the following page.
If top button is used on an item at the top of a page, it will send it at the bottom of the previous page.

It will allow to use drag move inside a page and button move inside and across page.

The up and down button system is already used in some part of the editor (eg. autoload panel to reorder autoload scripts/scenes) so it seems to be consistent to add one here.

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

Here is a capture of the feature proposed :

move_array

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

Used often if managing array items in inspector.

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

It's an editor inspector enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants