Facepunch / sbox-issues

176 stars 12 forks source link

UI scaling buggy #3070

Open Redhacker1 opened 1 year ago

Redhacker1 commented 1 year ago

Describe the bug

On my 17-inch Laptop with a 4k display, the text scaling is inconsistent, some text seems to shrink others seem to grow, and some seem to largely stay relative. Nearly all of them are somewhat incorrect or the Text bounds calculation the UI elements are doing to fit in text is incorrect however, but I might make that into a seperate issue.

To Reproduce

Have a High DPI display, mine is currently a 4k display with a Scaling factor of 250%

Expected behavior

The text should be at the very least consistent in scale/size, and preferably at a readable size no matter the resolution

Media/Files

image @ 4k 250% scaling

image @ 1080p 100% scaling

Additional context

I am running windows 10 on a Gigabyte Aero 10th gen (AERO 17 XB HDR) with a

4k display RTX 2070 SUPER Max-Q 32gb RAM i7-10875h

garrynewman commented 1 year ago

Are you talking about the editor UI or the game UI?

trende2001 commented 1 year ago

it appears to be the editor

MrBrax commented 1 year ago

Definitely an annoyance in hammer, right now there seems to be a bug preventing the game from being launched with the editor but a lot of fields seem oddly scaled

Moving windows between monitors that are differently scaled also causes heavy glitches with the window sizes

Redhacker1 commented 1 year ago

Sorry, editor, I clarified that when referring talking to DevulTJ on discord, but forgot to clarify in the issue, my apologies.

Redhacker1 commented 1 year ago

Seems to be fixed with the latest update for me, if no one else is having issues anymore (please check) I would be happy to close it. Though admittedly I did not see anything about fixing it in patch notes, so I am a bit confused.

MrBrax commented 1 year ago

1680281636034

some scaling issues left in

Redhacker1 commented 1 year ago

Will keep it open then, but just to ensure, the main editor menu was fixed for you correct?

MrBrax commented 1 year ago

they seem fine to me, even though some text could be slightly bigger in general

Redhacker1 commented 1 year ago

Adjusting text size like that is in theory doable after the fact, My bigger concern was scaling being fucked in two different ways.