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

Option to resize the overlay. #27

Open
domdfcoding opened this issue Jul 4, 2024 · 6 comments
Open

Option to resize the overlay. #27

domdfcoding opened this issue Jul 4, 2024 · 6 comments

Comments

@domdfcoding
Copy link

Is there (or could there be added) an option to resize or scale the overlay? My game uses a small viewport (400x300 in an 800x600 window) but the overlay fills the whole screen (and hangs off the left hand side if not the bottom. This is what it looks like:

image

If the overlay could be scaled down it would be much more useful.

@Calinou
Copy link
Member

Calinou commented Jul 4, 2024

There isn't such an option yet, but it should be straightforward to multiply all font sizes according to a project setting.

Note that when using the viewport stretch mode, readability would suffer unless you used a font that is specifically designed to be readable at low sizes.

@jamonholmgren
Copy link

jamonholmgren commented Aug 9, 2024

Note that I have the opposite problem -- it's too small! 😅 Definitely need a resize feature. I'm running on a 5k display on mac.

CleanShot 2024-08-08 at 22 42 52@2x

@Calinou
Copy link
Member

Calinou commented Aug 9, 2024

Note that I have the opposite problem -- it's too small! 😅 Definitely need a resize feature. I'm running on a 5k display on mac.

Use the canvas_items stretch mode in the project settings, as explained in the Multiple resolutions documentation. This will also handle the rest of your UI scaling automatically.

@smedelyan
Copy link

I'm using canvas_items stretch mode + 4k viewport which renders into 1080p window. The size is way too small as well.

@Calinou
Copy link
Member

Calinou commented Sep 6, 2024

I'm using canvas_items stretch mode + 4k viewport which renders into 1080p window. The size is way too small as well.

You can increase the Stretch Scale project setting since Godot 4.2, although this will affect all 2D elements (including the ones that are unrelated to the debug menu).

@smedelyan
Copy link

although this will affect all 2D elements

Yep, I would like to avoid this :-) In fact, at the moment DebugMenu is the only thing in the project that is not scaled up properly.

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

No branches or pull requests

4 participants