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

Expose the minimum/maximum size of the root window to project settings #7586

Open
Jordyfel opened this issue Aug 30, 2023 · 1 comment · May be fixed by godotengine/godot#87168
Open

Expose the minimum/maximum size of the root window to project settings #7586

Jordyfel opened this issue Aug 30, 2023 · 1 comment · May be fixed by godotengine/godot#87168

Comments

@Jordyfel
Copy link

Jordyfel commented Aug 30, 2023

Describe the project you are working on

Not currently, but I was once working on a GUI only project that would appreciate this.

Describe the problem or limitation you are having in your project

Doing get_window().min_size is not that hard, but it's also not the easiest to find for a new user, and the property makes sense for a project setting.

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

The main rationale being that minimum size is a property that is usually set once - needing to change it at runtime is rare.

It is also not that niche - it is useful in GUI heavy projects that support resizing, but making the window too small is undesired (like the project manager), and also in the case of using integer scaling with a stretch mode enabled (see #81176).

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

Trivial

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

Yes...

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

N/A

@Calinou Calinou changed the title Expose the minimum size of the root window to project settings Expose the minimum/maximum size of the root window to project settings Aug 30, 2023
@Calinou
Copy link
Member

Calinou commented Aug 30, 2023

Note: I've renamed the proposal to fully encompass the original issue.

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