Skip to content

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

Open
godotengine/godot
#87168
@Jordyfel

Description

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

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions