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

Rect2 properties in the inspector should have 2 rows #2237

Closed
KoBeWi opened this issue Feb 3, 2021 · 2 comments · Fixed by godotengine/godot#45713
Closed

Rect2 properties in the inspector should have 2 rows #2237

KoBeWi opened this issue Feb 3, 2021 · 2 comments · Fixed by godotengine/godot#45713
Milestone

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Feb 3, 2021

Describe the project you are working on

2D game, I sometimes use rects (like rect region or something)

Describe the problem or limitation you are having in your project

So after the most recent inspector makeover the inspector was optimized to have more space etc. But then there are Rect2 properties, that feel really cramped. I mean, the input fields have only space for few digits. It's ok when you edit them because they expand, but when you look over these properties, you can't immediately tell the exact value.

This illustrates the problem really well:
image

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

It would be better if rect property field had 2 rows. One for x/y and one for w/h. It might take more vertical space, but it would be more readable.

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

image
The relevant code is in editor_properties_array_dict.cpp.

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

Not really, no.

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

That would require a custom inspector as an add-on.

@KoBeWi
Copy link
Member Author

KoBeWi commented Feb 4, 2021

So I just discovered that there's an editor setting horizontal_vector_types_editing that affects few types.
rabsNeH36q
Still, 2x2 would be more optimal layout IMO.

@fire
Copy link
Member

fire commented Aug 24, 2023

There's dissent in having Vector4 and Vector4i show in 2x2 layout.

godotengine/godot#80893 (comment)

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.

3 participants